openvscode-server icon indicating copy to clipboard operation
openvscode-server copied to clipboard

Extensions possibly don't inherit PATH/environment correctly?

Open colemickens opened this issue 1 year ago • 2 comments

Does this issue occur when all extensions are disabled?: n/a

  • VS Code Version: Version: 1.84.0
  • OS Version: nixos linux 6.6.8

Steps to Reproduce:

  1. use openvscode-server with systemd
  2. use nix-environment-selector and select a shell.nix that includes rust-analyzer
  3. note that rust-analyzer can't find the binary, even if you tell it to look for rust-analyzer (aka in PATH)

this works in desktop vscodium.

colemickens avatar Jan 13 '24 04:01 colemickens

Oh, I left out the most interesting part, terminals launched after restarting seem to have inherited PATH though. I don't have rust-analyzer installed system wide, yet I can use it in a OVSCS Terminal after using nix-env-selector.

colemickens avatar Jan 13 '24 04:01 colemickens

I suspect this may have to do with how systemd is running/managing the process, since I'm running it as a service. When I run it by hand from the command line, things seem to work as expected.

colemickens avatar Jan 15 '24 21:01 colemickens