'Issue when typing 'code .' in Ubuntu/WSL on Windows 10
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:
How can I resolve this?
Solution 1:[1]
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.
Solution 2:[2]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | NotTheDr01ds |
| Solution 2 | Archangel33 |

