Home > Software design >  Issue when typing 'code .' in Ubuntu/WSL on Windows 10
Issue when typing 'code .' in Ubuntu/WSL on Windows 10

Time:03-11

When running code . from Ubuntu/WSL in Windows 10, I receive the following error:

/mnt/c/Users/Agrock/.vscode/extensions/ms-vscode-remote.remote-wsl-0.63.13/scripts/wslCode.sh: 69: /home/helloagrock/.vscode-server-server/bin/f80445acd5a3dadef24aa209168452a3d97cc326/bin/code: not found

Here's the screenshot:

Screenshot

How can I resolve this?

CodePudding user response:

Try removing the WSL/VSCode server. Since code is clearly in your path, it should be automatically reinstalled the next time you use it:

rm -rf .vscode-server/

Tested on my system to make sure there were no ill-effects.

CodePudding user response:

Hello Agrock and welcome!

I too was experiencing this issue, I attempted NotTheDro01ds solution, but I also had to open VSCode in windows and then update the "Remote - WSL" extension manually in the vs code extensions marketplace.

  • Related