Steps to reproduce
Run the "Evaluate..." code lens on the following code
or
-- >>> hPutStrLn stderr "Hello"
Expected behaviour
It should put
in a comment below, just like it would do with normal return values.
Actual behaviour
In the stderr case, the output is sent to the debug output together with the logs.
In the stdout case I believe the output is sent in the LSP channel directly to the editor as is. If you're lucky, the editor's LSP parser will handle the error gracefully instead of just crashing or something.
Steps to reproduce
Run the "Evaluate..." code lens on the following code
or
Expected behaviour
It should put
in a comment below, just like it would do with normal return values.
Actual behaviour
In the
stderrcase, the output is sent to the debug output together with the logs.In the
stdoutcase I believe the output is sent in the LSP channel directly to the editor as is. If you're lucky, the editor's LSP parser will handle the error gracefully instead of just crashing or something.