Repository navigation
Closed
Closed
Copy link
Labels
bugIssue identified by VS Code Team member as probable bugconfirmedIssue has been confirmed by VS Code Team memberhelp wantedIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code InsiderstasksTask system issuesverifiedVerification succeeded
Milestone
Description
Type: Bug
Steps
- Run a task (e.g. a custom test task) configured with
"runOptions": { "reevaluateOnRerun": false }. - Run the command "Tasks: Rerun Last Task"
- Run the command "Tasks: Rerun Last Task" a second time
Expected
The task is rerun for a second time (third execution of the task overall).
Actual
Task begins executing then fails to launch with message:
The terminal process failed to launch: Path to shell executable "\usr\bin\zsh" does not exist.
Additional context
This likely has something to do with running VSCode on Windows remotely connected to Ubuntu-20.04 via WSL2. Evidence of this is the use of backslashes in the path: "\usr\bin\zsh". It seems that, for some reason, the second re-run tries to execute the task using the host filesystem instead of the remote filesystem.
VS Code version: Code 1.75.1 (441438a, 2023-02-08T21:32:34.589Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Sandboxed: Yes
Remote OS version: Linux x64 5.15.79.1-microsoft-standard-WSL2
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i5-4690K CPU @ 3.50GHz (4 x 3506) |
| GPU Status | 2d_canvas: enabled canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled 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 vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: disabled_off |
| Load (avg) | undefined |
| Memory (System) | 31.94GB (18.85GB free) |
| Process Argv | --folder-uri=vscode-remote://wsl+Ubuntu-20.04/home/z/dev/mneme --remote=wsl+Ubuntu-20.04 --crash-reporter-id 0befafd8-3898-4c21-9e05-b7204c2b3f66 |
| Screen Reader | no |
| VM | 0% |
| Item | Value |
|---|---|
| Remote | WSL: Ubuntu-20.04 |
| OS | Linux x64 5.15.79.1-microsoft-standard-WSL2 |
| CPUs | Intel(R) Core(TM) i5-4690K CPU @ 3.50GHz (4 x 3506) |
| Memory (System) | 15.59GB (13.74GB free) |
| VM | 0% |
Extensions (36)
| Extension | Author (truncated) | Version |
|---|---|---|
| jsonl | Alp | 0.0.1 |
| vsc-material-theme | Equ | 33.6.0 |
| vsc-material-theme-icons | equ | 2.5.0 |
| vscode-graphql-syntax | Gra | 1.0.6 |
| endwise | kai | 1.5.1 |
| jupyter-keymap | ms- | 1.0.0 |
| remote-containers | ms- | 0.275.1 |
| remote-ssh | ms- | 0.96.0 |
| remote-ssh-edit | ms- | 0.84.0 |
| remote-wsl | ms- | 0.75.3 |
| remote-explorer | ms- | 0.2.0 |
| surface | msa | 0.7.0 |
| language-liquid | nei | 0.1.1 |
| phoenix | pho | 0.1.2 |
| vim | vsc | 1.24.3 |
| vscode-zipfs | arc | 3.0.0 |
| chronicler | arc | 0.1.16 |
| procfile | ben | 1.1.7 |
| vscode-tailwindcss | bra | 0.9.7 |
| solargraph | cas | 0.24.0 |
| vscode-eslint | dba | 2.4.0 |
| gitlens | eam | 13.2.0 |
| EditorConfig | Edi | 0.16.4 |
| prettier-vscode | esb | 9.10.4 |
| vscode-graphql | Gra | 0.8.5 |
| vscode-graphql-syntax | Gra | 1.0.6 |
| elixir-ls | Jak | 0.13.0 |
| vscode-language-babel | mgm | 0.0.36 |
| vscode-docker | ms- | 1.23.3 |
| react-proptypes-intellisense | OfH | 1.0.3 |
| vscode-versionlens | pfl | 1.5.0 |
| prisma | Pri | 4.10.1 |
| trailing-spaces | sha | 0.4.1 |
| stately-vscode | sta | 1.11.3 |
| even-better-toml | tam | 0.19.0 |
| simple-ruby-erb | vor | 0.2.1 |
(7 theme extensions excluded)
Reacted by mlishans and Jeff Fendley
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugconfirmedIssue has been confirmed by VS Code Team memberhelp wantedIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code InsiderstasksTask system issuesverifiedVerification succeeded
Activity
jtcurlin commentedon Jun 2, 2023
Update? Same Issue.
zachallaun commentedon Jun 2, 2023
Thanks for posting Jacob Curlin (@jtcurlin)! I’m not sure how prioritization works on such a large project, but hopefully having another person confirming the issue helps move things forward.
meganrogge commentedon Jun 2, 2023
Due to the number of issues I oversee, it's unlikely I'll look into this soon. It would be helpful if you could identify the first version in which this started happening w git bisect
zachallaun commentedon Jun 2, 2023
Thank you for responding and for your honesty! I’ll try to find time to identify the culprit commit.
dimethylzinc commentedon Aug 25, 2023
Same issue here in 1.81.1. Also using Ubuntu via WSL2
Jerph commentedon May 1, 2024
I'm still getting this issue in 1.88.1, Ubuntu on WSL2. I've used portable VS Code downloads to identify the version this first occurred. It works in v1.60.2 and is broken in v1.61.0. Hope that helps find the source of the issue.
The practical issue I'm facing with this is being unable to run a single test multiple times, e.g.:
command: "rspec ${relativeFile}:${lineNumber}"I've tried other ways of expressing this with explicit arg escape options and command wrapping with no change. It would be great to have even a workaround.
zachallaun commentedon May 1, 2024
Thank you Jeff Fendley (@Jerph) for finding where it was introduced! I just ran into this again the other day and was planning to circle back to it. Hopefully it can be resolved!
Jerph commentedon May 1, 2024
Looking at the commits that went into 1.61, this commit seems like a likely culprit.
zachallaun commentedon May 10, 2024
Megan Rogge (@meganrogge) I know you have a lot on your plate and I apologize for the ping, but I wanted to just make sure you saw Jeff Fendley (@Jerph)'s comments above where he narrowed it down to the version and possibly commit that introduced this regression.
meganrogge commentedon May 10, 2024
Would take a PR for this
dobbydobap commentedon Jul 6, 2026
opened a PR for this. it's a regression from dccb659 , rerun re-resolves the shell now instead of reusing the cached config, but
_reexecuteCommandnever copiessystemInfoonto the current task the way_executeCommanddoes, so the second rerun falls back to the local platform (\usr\bin\zsh). carrying systemInfo forward fixes it without reverting.