posit-dev / positron

Positron, a next-generation data science IDE
Other
1.83k stars 52 forks source link

jupyter-adapter: Show environment when language runtime fails to start #579

Open jmcphers opened 1 year ago

jmcphers commented 1 year ago

Currently, we show the terminal output from a language runtime that fails to start, like this.

image

However, every single time I have tried to debug a startup failure, I have wanted to know what the environment variables were set to when the kernel was launched (as well as the exact launch command), and have wound up hacking print statements into kernel-wrapper.sh so I can see them. We should log these somewhere so that they can be brought up for debugging.

They don't need to be front-and-center, since showing all the environment variables at once creates a wall of text that makes the actual startup error hard to find, but they should be accessible somewhere.

petetronic commented 5 months ago

This will be useful for debugging customer issues. We should include it in the release.