Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jixiuf opened this issue Mar 28, 2024 · 4 comments
Open

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

jixiuf opened this issue Mar 28, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@jixiuf
Copy link

jixiuf commented Mar 28, 2024

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

@svaante
Copy link
Owner

svaante commented Mar 31, 2024

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

@jixiuf
Copy link
Author

jixiuf commented Apr 1, 2024

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
Copy link
Author

jixiuf commented Apr 1, 2024

@svaante
Copy link
Owner

svaante commented Apr 15, 2024

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 svaante added the enhancement New feature or request label Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants