julia-vscode / julia-vscode

Julia extension for Visual Studio Code
https://www.julia-vscode.org/
Other
1.28k stars 203 forks source link

crashes on nixos because environment variables are somehow removed when starting the julia process #3711

Open schlichtanders opened 19 hours ago

schlichtanders commented 19 hours ago

I have a hard time getting the vscode julia extension back to work.

concretely my NixOS requires the NIX_LD environment variable to be set, which usually should be the case, even when starting vscode from kde plasma application manager (I set the export inside a file ~/.config/plasma-workspace/env/env.sh), but it still fails to find the environment variable.

Hence I guess, the julia-vscode extension does something special to actually remove environment variables from starting the julia process for the language server. It would be great if environment variables starting with NIX_ could be passed through

schlichtanders commented 19 hours ago

the only workaround I could find is to create a bash script which sets these environment variables and starts julia afterwards, and point vscode-julia extension to this wrapper instead