gitpod-io / openvscode-server

Run upstream VS Code on a remote machine with access through a modern web browser from any device, anywhere.
https://www.gitpod.io/
MIT License
5.1k stars 440 forks source link

Extensions possibly don't inherit PATH/environment correctly? #545

Open colemickens opened 10 months ago

colemickens commented 10 months ago

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

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 commented 10 months ago

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 commented 10 months ago

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.