dape icon indicating copy to clipboard operation
dape copied to clipboard

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

Open jixiuf opened this issue 1 year ago • 4 comments

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

jixiuf avatar Mar 28 '24 06:03 jixiuf

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

svaante avatar Mar 31 '24 12:03 svaante

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 avatar Apr 01 '24 02:04 jixiuf

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

jixiuf avatar Apr 01 '24 06:04 jixiuf

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

svaante avatar Apr 15 '24 20:04 svaante