-
Notifications
You must be signed in to change notification settings - Fork 287
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
Dev Container Configuration '.devcontainer/devcontainer.json' file already exists. #9303
Comments
I am using Ubuntu 22.04. I had VSCode installed previously, today it updated itself. I have a .devconatiner file, which I have developed in Windows. Getting the same errors. The config file do work on WIndows. |
Same. It just stopped working. Killed all dev progress. Trying extension version rollback. |
Is this still ongoing? I'm opening a fresh github repo on a container and I'm experiencing the same issue. |
I'm experiencing the same, specifically on mac. Windows is working smoothly. Just started recently. |
Try this hack. I resolved, anyway. |
Thank you for this, but it did not work for me. However, it made me go down a path where I found the solution that worked for me (on Mac): microsoft/vscode#202096 Hope this helps anyone else! |
Not sure why but the latest pre-release version (v0.331) still does not work for me. I downgraded the version to v0.321 and it works well for now. Hope that this info could help. |
For me this gave me the error that a This is the error log after adding the
|
The warning dialog ( Could everyone seeing this give Dev Containers 0.334.0-pre-release a try and if it still fails post the log output here? Thanks! @BMMevius Your log shows an issue with a missing env file:
|
Switching to that pre-release version fixed the issue for me. |
Adding a Version: 1.85.2 |
@JackCaster Could you open a new issue with the complete log and the steps you took to get there? Thanks! I should have mentioned: Currently the latest Dev Containers versions need VS Code Insiders. Please make sure you are giving the latest version a try (currently Dev Containers 0.336.0-pre-release). |
Still experiencing the issue, I don't know how to solve this. Adding an .env file nor switching to pre-release helps for me. EDIT: from the logs I'm seeing this error:
When removing this line, it fixes the issue. So the error we're seeing, the title of this issue, is just very confusing and incorrect! |
Linked to devcontainers/features#221 |
@jaques-sam Make sure to try with VS Code Insiders (https://code.visualstudio.com/insiders/) and the latest pre-release version of Dev Containers (currently 0.338.0). (The current pre-release version only installs with VS Code Insiders, this will change when VS Code 1.86 is released and alongside it a new Dev Containers stable version later this week.) |
In Ubuntu 22.04, and VSCode in 1.86.0, switching the devcontainer extension only to pre-release version fixes the issue for me. |
I confirm that on macOS 14.3 (Sonoma) going for the pre-release version also fixed the issue. It has started for me when updating vscode to 1.86.0. |
If you still see this, make sure you have the latest Dev Containers extension version installed. For any remaining problems please open new issues. Thanks! |
Logs:
Steps to Reproduce:
docker-compose.yml
Does this issue occur when you try this locally?: Yes
Does this issue occur when you try this locally and all extensions are disabled?: No
Notes
This would not be a problem if you start project from scratch and create devcontainer.json, cause at some point you would install Compose plugin for
docker
but when someone will start using project on new machine he will get misleading error message:Other part of the UX problem is that related log is not opened and you have to find it via:
Which is confusing for new users.
Tasks
The text was updated successfully, but these errors were encountered: