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

Extensions not installed in devcontainer when using VPN #9997

Closed
tomj-99 opened this issue Jun 22, 2024 · 1 comment
Closed

Extensions not installed in devcontainer when using VPN #9997

tomj-99 opened this issue Jun 22, 2024 · 1 comment
Assignees
Labels
containers Issue in vscode-remote containers

Comments

@tomj-99
Copy link

tomj-99 commented Jun 22, 2024

  • VSCode Version: 1.90.1
  • Local OS Version: Happens on Rocky Linux 9 and Windows 10 22H2
  • Remote OS Version: docker centos:stream9 image
  • Remote Extension/Connection Type: DevContainer

I am trying to set up my devcontainer but some extensions (~half of them) that are listed are not installed. Here is a list of all extensions that I want to install:

"customizations": {
        // Configure properties specific to VS Code.
        "vscode": {
            // Add the IDs of extensions you want installed when the container is created.
            "extensions": [
                "donjayamanne.githistory",
                "jeff-hykin.better-cpp-syntax",
                "mhutchie.git-graph",
                "ms-vscode.cmake-tools",
                "ms-vscode.cpptools",
                "ms-vscode.cpptools-extension-pack",
                "ms-vscode.cpptools-themes",
                "ms-vsliveshare.vsliveshare",
                "njpwerner.autodocstring",
                "shardulm94.trailing-spaces",
                "SonarSource.sonarlint-vscode",
                "TabNine.tabnine-vscode",
                "twxs.cmake",
                "VisualStudioExptTeam.intellicode-api-usage-examples",
                "VisualStudioExptTeam.vscodeintellicode"
            ]
        }
    }

Some are installed successfully, some are not. I get this log:

2024-06-22 18:07:17.294 [error] Error: Failed Installing Extensions: jeff-hykin.better-cpp-syntax, donjayamanne.githistory, mhutchie.git-graph, njpwerner.autodocstring, ms-vsliveshare.vsliveshare, sonarsource.sonarlint-vscode, shardulm94.trailing-spaces, twxs.cmake, tabnine.tabnine-vscode, visualstudioexptteam.vscodeintellicode, visualstudioexptteam.intellicode-api-usage-examples
    at a.installExtensions (/vscode/vscode-server/bin/linux-x64/611f9bfce64f25108829dd295f54a6894e87339d/out/vs/server/node/server.main.js:145:9966)

For the extensions that are not installed, I also get something like:

2024-06-22 18:07:12.162 [info] Getting Manifest... twxs.cmake
2024-06-22 18:07:12.350 [info] Skipping the packed extension as it cannot be installed twxs.cmake self-signed certificate in certificate chain

After opening my project in the container and navigating to the extensions tab, I can manually install (by clicking Install in Dev Container) all the extensions successfully that failed previously while creating the devcontainer which is very strange. Also on my host machine, I can install all of them without any issues. It only fails while creating the container.

I am using the VPN of my company without the VPN everything works fine and all extensions are installed successfully but deactivating the VPN is not an option.

There clearly seems to be an issue in installing the extensions from devcontainer.json as they can be installed manually or am I missing any config?

@VSCodeTriageBot VSCodeTriageBot added the containers Issue in vscode-remote containers label Jun 22, 2024
@chrmarti
Copy link
Contributor

Continuing in #9994. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
containers Issue in vscode-remote containers
Projects
None yet
Development

No branches or pull requests

3 participants