Some extensions in devcontainer are not installing correctly. For example pylance, my current solution is to manually install it and reload the window.
I do have similar problems, some extensions are not installed even if they are listed in devcontainer.json. They can be manually installed but by default they are not there.
The problem seems to be only in Cursor, VSCode installs them all automatically
Same problem here. yy0931.vscode-sqlite3-editor
is listed in the devcontainer file but I still have to install it manually. VSCode still installs it without issue
Improvements coming to dev containers hopefully, which may fix some bugs and improve stability. Keep an eye out for an update in the near future on this.
I am also having similar problems, can install the extensions from the sidebar, but it does not load them from the devcontainer json.
I have also had issues sshing inside a linux box from the devcontainer, it previously worked but after doing it over an ngrok tunnel to the same box, I can no longer do it locally. Is this behaviour related to any dev container fixes that are being rolled out?
Problem is still there on 0.45.2. Lot of extension in devcontainer.json doesn’t install. I was hoping 0.45 would fix this.
To be clear, the issue here is that extensions are not automatically installed in DevContainers?
yes, they are listed in the devcontainer.json, but they don’t get installed when building the container. Some does, and some doesn’t (not sure why). In VS Code, they all install fine.
Are the ones that dont install imported from VSCode when you first downloaded Cursor?
It’s possible the imported extensions do not have compatibility with the devcontainers server that gets installed, so you have to manually click install, which gets the latest compatible version.
I may be wrong, but try delete and reinstall an extension that isn’t installing automatically on your local machine, then try to connect and see if its installed then!
Yes, you are, that’s not how it works. The extension in devcontainer.json are installed inside the container, not on the local machine. Still not solved in 0.45.4
You should not mark a thread as “Solved” if a fix is coming, that’s not what solved mean.
Can confirm that in cursor 0.45.4 the issue is not solved.
Here’s more information that could maybe help fix the issue :
-
when I search the extension “task runner” in the extension tab, it work (id:
SanaAjani.taskrunnercode
) and I can install it in devcontainer, I can also add it in my devcontainer.json. -
When re-opening my devcontainer, the startup script fail to install the extension automatically (
SanaAjani.taskrunnercode
) here’s some log :
[5816 ms] [09:42:45] [127.0.0.1][4822f07a][ExtensionHostConnection] New connection established.
[5818 ms] [09:42:45] [127.0.0.1][4822f07a][ExtensionHostConnection] <584> Launched Extension Host Process.
[7395 ms] [09:42:47] Extension 'sanaajani.taskrunnercode' not found.
Make sure you use the full extension ID, including the publisher, e.g.: ms-dotnettools.csharp
I found out that, some extensions get installed correctly and when it’s the case they are available on open-vsx.org, and when it fail they are not on open-vsx.org, so that could probably be the issue ?
Any help on this? Super annoying that some extensions have to be install “manually”.
[195224 ms] [16:12:42] Extension 'ms-vscode.cpptools-extension-pack' not found.
Make sure you use the full extension ID, including the publisher, e.g.: ms-dotnettools.csharp
[16:12:42] Extension 'wraith13.zoombar-vscode' not found.
Make sure you use the full extension ID, including the publisher, e.g.: ms-dotnettools.csharp
[16:12:42] Extension 'zachflower.uncrustify' not found.
Make sure you use the full extension ID, including the publisher, e.g.: ms-dotnettools.csharp
Still not fixed in 0.45.9
[102416 ms] [19:42:28] Extension installed successfully: hbenl.vscode-test-explorer file:///root/.cursor-server/extensions/extensions.json
[19:42:28] Extension installed successfully: actboy168.tasks file:///root/.cursor-server/extensions/extensions.json
[19:42:28] Extension installed successfully: aaron-bond.better-comments file:///root/.cursor-server/extensions/extensions.json
[19:42:28] Extension installed successfully: ms-azuretools.vscode-docker file:///root/.cursor-server/extensions/extensions.json
[19:42:28] Extension installed successfully: ms-vscode.test-adapter-converter file:///root/.cursor-server/extensions/extensions.json
[19:42:28] Extension installed successfully: bradlc.vscode-tailwindcss file:///root/.cursor-server/extensions/extensions.json
[19:42:28] Extension installed successfully: eamodio.gitlens file:///root/.cursor-server/extensions/extensions.json
[102423 ms] [19:42:28] Extension 'hbenl.vscode-test-explorer' v2.22.1 was successfully installed.
[19:42:28] Extension 'actboy168.tasks' v0.16.0 was successfully installed.
[19:42:28] Extension 'aaron-bond.better-comments' v3.0.2 was successfully installed.
[19:42:28] Extension 'ms-azuretools.vscode-docker' v1.29.4 was successfully installed.
[19:42:28] Extension 'ms-vscode.test-adapter-converter' v0.2.1 was successfully installed.
[19:42:28] Extension 'bradlc.vscode-tailwindcss' v0.10.2 was successfully installed.
[19:42:28] Extension 'eamodio.gitlens' v16.2.1 was successfully installed.
[102424 ms] [19:42:28] Error: Failed Installing Extensions: jakebecker.elixir-ls, phoenixframework.phoenix, adamzapasnik.elixir-test-explorer, ms-vscode.vscode-websearchforcopilot, ms-vscode.vscode-commander, github.copilot, github.copilot-chat
at Kc.installExtensions (file:///vscode/cursor-server/bin/linux-arm64/cce0110ca40ceb61e76ecea08d24210123895320/out/server-main.js:71:35452)
Still not fixed in 0.45.11
Thanks for the detailed logs!
You’re right, there does seem to be an issue regarding extension installation here. I’m hopeful we can improve the experience around DevContainers soon.
Hello! Just to give more traction to this here. I see this happening on my setup also, but something else i noticed, Python and Python Debugger for example are never installed, but if i search python on the extensions list, it starts installing them and offers to reload the window, without me having to click on install
The problem persists
Same here