Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install plug-in into WSL #703

Closed
yurnov opened this issue Jun 17, 2023 · 1 comment
Closed

Can't install plug-in into WSL #703

yurnov opened this issue Jun 17, 2023 · 1 comment

Comments

@yurnov
Copy link

yurnov commented Jun 17, 2023

Type: Bug

  • VS Code Version:
    Version: 1.79.2 (system setup)
    Commit: 695af097c7bd098fbf017ce3ac85e09bbc5dda06
    Date: 2023-06-14T08:57:04.379Z
    Electron: 22.5.7
    Chromium: 108.0.5359.215
    Node.js: 16.17.1
    V8: 10.8.168.25-electron.0
    OS: Windows_NT x64 10.0.19042
  • OS Version:
    Edition Windows 10 Enterprise
    Version 20H2
    Installed on ‎8/‎13/‎2022
    OS build 19042.1889
    Experience Windows Feature Experience Pack 120.2212.4180.0
  • Plug-ins installed:
    Visual Studio Code Remote Development Extension Pack that include ms-vscode-remote.remote-wsl v0.79.5
  • WSL:
    wsl version 1 (as virtualization is not supported)
uname -a && cat /etc/os-release
Linux seliiwvdec51893 4.4.0-19041-Microsoft #1237-Microsoft Sat Sep 11 14:32:00 PST 2021 x86_64 x86_64 x86_64 GNU/Linux
NAME="Ubuntu"
VERSION="20.04 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

Steps to Reproduce:

  1. Freshly installed WSL and VSCode with a Visual Studio Code Remote Development Extension Pack
  2. Trying to install plugins that require installation is vscode-server (WSL in my particular case) and got a message This extension is disabled in this workspace because it is defined to run in the Remote Extension Host. Please install the extension in 'WSL: Ubuntu' to enable. Learn More, even plug-in ms-vscode-remote.remote-wsl v0.79.5 is installed
    Screenshot 2023-06-17 141601

In my case it's a eamodio.gitlens

  1. Trying to rm -rf ~/.vscode-server, disable and enable again ms-vscode-remote.remote-wsl plug-in, remove and reinstall plug-in, completely remove and reinstall VSCode. Result is the same.

VS Code version: Code 1.79.2 (695af097c7bd098fbf017ce3ac85e09bbc5dda06, 2023-06-14T08:57:04.379Z)
OS version: Windows_NT x64 10.0.19042
Modes:
Remote OS version: Linux x64 4.4.0-19041-Microsoft
Remote OS version: Linux x64 4.4.0-19041-Microsoft

@yurnov
Copy link
Author

yurnov commented Jun 19, 2023

During debug session I found following error in logs:

EACCES: permission denied, rename '/home/<username>/.vscode-server/extensions/.1b8a525e-e32f-4abd-b021-c376c1351a6e' -> '/home/<username>/.vscode-server/extensions/eamodio.gitlens-2023.6.1705'

I used WA from here microsoft/WSL#3395 (comment) and add a line "remote.WSL.fileWatcher.polling": true into my setting.json and restart VSCode, than plug-in installed successfully.

Going to close this issue

@yurnov yurnov closed this as completed Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant