vscode-remote-release
vscode-remote-release copied to clipboard
$PATH variable wrong
Issue Type: Bug
- Launch VSCode
- Connect to remote development machine using Extension: Remote - SSH v0.84.0
- Open integrated terminal
Expected: $PATH matches $PATH I get when connecting via ssh outside of VSCode (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin)
Actual: $PATH contains one entry: /home/matt/.vscode-server/bin/3b889b090b5ad5793f524b5d1d39fda662b96a2a/bin/remote-cli
Outcome: Integrated terminal does not work, extensions that need to use $PATH for things like git do not work
VS Code version: Code 1.69.2 (3b889b090b5ad5793f524b5d1d39fda662b96a2a, 2022-07-18T16:32:39.000Z) OS version: Darwin arm64 21.5.0 Restricted Mode: No Remote OS version: Linux x64 5.15.0-41-generic Remote OS version: Linux x64 5.15.0-1014-azure
System Info
| Item | Value |
|---|---|
| CPUs | Apple M1 (8 x 24) |
| GPU Status | 2d_canvas: enabled canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled metal: disabled_off multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_renderer: enabled_on video_decode: enabled video_encode: enabled webgl: enabled webgl2: enabled |
| Load (avg) | 2, 2, 2 |
| Memory (System) | 16.00GB (0.07GB free) |
| Process Argv | --crash-reporter-id 1ce41452-6874-4c5a-ae58-e4324fca77e4 |
| Screen Reader | no |
| VM | 0% |
| Item | Value |
|---|---|
| Remote | SSH: tailscale-home |
| OS | Linux x64 5.15.0-41-generic |
| CPUs | AMD Ryzen 7 3700X 8-Core Processor (16 x 2200) |
| Memory (System) | 31.26GB (6.08GB free) |
| VM | 0% |
| Item | Value |
|---|---|
| Remote | SSH: devbox |
| OS | Linux x64 5.15.0-1014-azure |
| CPUs | Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz (8 x 2800) |
| Memory (System) | 31.35GB (20.54GB free) |
| VM | 0% |
Extensions (3)
| Extension | Author (truncated) | Version |
|---|---|---|
| remote-containers | ms- | 0.241.3 |
| remote-ssh | ms- | 0.84.0 |
| remote-ssh-edit | ms- | 0.80.0 |
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
vscscmwlcmt:30465135
cppdebug:30492333
vscaac:30438847
pylanb8912cf:30529770
vsclangdc:30486549
Seems like if I do the following, it works (but I have to re-do this every day):
- Close vscode on local
- ssh to remote
- kill all vscode processes
- rm -rf ~/.vscode-server/
I'm seeing the exact same thing, on 1.70.0-insider
Note: My remote machine is running tailscale as an ssh server
Similar issue: vscode remove /usr/bin from my PATH, while preserving /usr/condabin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/home/youjiacheng/.local/bin:/home/youjiacheng/bin.
This only happens on one server. My /home is NFS, so all servers sharing the same .vscode-server, but only one has this problem.
I have the same issue using vscode and tailscale, seems to happen after tailscale key expiry, to fix uninstall vscode server ssh directly (not through tailscale ) then you can remote via tailscale
Hello! My name is Eleanor and I am in the new Remote-SSH maintainer! Are people still seeing this error?
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!