0

When I tried to open vscode in WSL bash on Ubuntu 20.04 using command code ., it failed and the following message was logged:

/mnt/c/Users/john/.vscode/extensions/ms-vscode-remote.remote-wsl-0.50.1/scripts/wslCode.sh: 57: /home/john/.vscode-server/bin/d2e414d9e4239a252d1ab117bd7067f125afd80a/bin/code: not found

I would like to ask how to fix this problem? Thx a lot!

1 Answer 1

4

I found the solution. Even though I think that you've already know it.

You need to delete the folder /home/john/.vscode-server/ with sudo rm -rf /home/john/.vscode-server.

Then, you just run code . or try to open any project that you want it.

Then a script will load and will install a new .vscode-server in your machine with the right files.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.