vscode: CLI script not executed in WSL in Windows 1809
- VSCode Version: 1.29.1 user setup
- OS Version: Windows 10 x64 1809 build
Steps to Reproduce:
- Open WSL
- run
code .
or any flags withcode
Does this issue occur when all extensions are disabled?: Yes
When I run code .
it will always run in the foreground.
When I try to run code --list-extensions
, it exits with a error code of 0
and has no output.
I added set -x
to the code batch entrypoint and ran code -v
code -v
+ NAME=Code
++++ realpath '/mnt/c/Users/me/AppData/Local/Programs/Microsoft VS Code/bin/code'
+++ dirname '/mnt/c/Users/me/AppData/Local/Programs/Microsoft VS Code/bin/code'
++ dirname '/mnt/c/Users/me/AppData/Local/Programs/Microsoft VS Code/bin'
+ VSCODE_PATH='/mnt/c/Users/me/AppData/Local/Programs/Microsoft VS Code'
+ ELECTRON='/mnt/c/Users/me/AppData/Local/Programs/Microsoft VS Code/Code.exe'
+ grep -q Microsoft /proc/version
+ '[' -x /bin/wslpath ']'
+ export WSLENV=ELECTRON_RUN_AS_NODE/w:DOCKER_MACHINE_NAME:DOCKER_TLS_VERIFY:DOCKER_HOST:DOCKER_CERT_PATH/p
+ WSLENV=ELECTRON_RUN_AS_NODE/w:DOCKER_MACHINE_NAME:DOCKER_TLS_VERIFY:DOCKER_HOST:DOCKER_CERT_PATH/p
++ wslpath -m '/mnt/c/Users/me/AppData/Local/Programs/Microsoft VS Code/resources/app/out/cli.js'
+ CLI='C:/Users/me/AppData/Local/Programs/Microsoft VS Code/resources/app/out/cli.js'
+ ELECTRON_RUN_AS_NODE=1
+ '/mnt/c/Users/me/AppData/Local/Programs/Microsoft VS Code/Code.exe' 'C:/Users/me/AppData/Local/Programs/Microsoft VS Code/resources/app/out/cli.js' -v
+ exit 0
This was definitely working before the 1809 update.
Edit: This is the windows version of vscode, not the linux version. I am trying to launch the windows build via wsl, which was working consistently before the 1809 build of windows 10.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (7 by maintainers)
will do