svaante / dape

Debug Adapter Protocol for Emacs
GNU General Public License v3.0
448 stars 25 forks source link

how to direct the stderr(like the stdout) to *dape-repl* #99

Open jixiuf opened 4 months ago

jixiuf commented 4 months ago

I can see the output of stdout in dape-repl, how about add an option to show stderr output in dape-reple

svaante commented 4 months ago

What adapter are you using? And what configuration? Dape should output stdout and stderr to dape-repl if the adapter sends these events.

jixiuf commented 4 months ago

What adapter are you using? And what configuration? Dape should output stdout and stderr to dape-repl if the adapter sends these events.

go + dlv

jixiuf commented 4 months ago

https://github.com/svaante/dape/blob/master/dape.el#L1949 related

svaante commented 4 months ago

Go dlv is an special beast as it's the only adapter I know of which outputs its not with the DAP protocol events but with stdout of the dlv process.

https://github.com/svaante/dape/blob/master/dape.el#L1949 related As you pointed out dape eats stderr from dlv process, it would be quite easy to enable stderr for dlv, but the problem is that other adapters can be quite liberal with stderr output which makes this not something that can be enable for all adapters.

Maybe it should be an custom or an key in dape configs, not really sure what the best option is