Zulip Chat Archive

Stream: lean4

Topic: Logging from `initialize`


Eric Wieser (Oct 28 2024 at 17:44):

Is it possible to log warnings from initialize? As far as I can tell this always runs in IO, and my foolish attempt to log with IO.println results in the Lean vscode extension hanging, presumably due to malformed output from the server.

𝚠𝚘𝚓𝚌𝚒𝚎𝚌𝚑 𝚗𝚊𝚠𝚛𝚘𝚌𝚔𝚒 (Oct 28 2024 at 17:50):

IO.eprintln! (Server stdout goes to LSP, whereas stderr is forwarded to the editor output window.)


Last updated: May 02 2025 at 03:31 UTC