-
Notifications
You must be signed in to change notification settings - Fork 265
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
Working with multiple devcontainers cannot start one devcontainer: SyntaxError: Unexpected end of JSON input #9849
Comments
When i deleted the containers and started again setting up the project, I have no problem with the first devcontainer i choose to run, I mean, after delete and rebuild and open the frontcontainer it runs without problem but the backcontainer fails; and the same when i start the backcontainer first the frontcontainer fails. |
Downgrade the VSCode from version 1.89 (April 2024) to version 1.88 (March 2024) and both devcontainers starts. |
There is a typo in this, it should be Make sure you remove the existing containers before retrying. |
I had to use .vscode-server/ because i don't have vscode folder and inside bin folder and got this error when try ls -l
|
Is there a |
It seems that devcontainers copy the .vscode-server folder from host to /home/vscode/ folder in the container. |
Keep downgraded version 1.89 (April 2024) and worked fine, now updated to 1.90 and got a Segmentation fault problem when try to open the second container: |
@juanboterotech Could you use https://github.com/microsoft/vscode-bisect to find the first VS Code Insiders version that has the segmentation fault? That tool will start one VS Code Insiders version at a time and you can then check if the segmentation fault occurs and tell the tool the result. /cc @deepak1556 |
Was about to try that @chrmarti , before, removed again the vscode-server folder from wsl user home and restart vscode. Thank you. |
Trying to use two devcontainers (React and Django) for one project and got an error with each container, found the error previously reported here #8624
I applied that solution, in my case just changed the local volume in the docker command:
docker run -it --rm -v ~/.vscode-server:/vscode ubuntu rm -rf /vscode/bin/b58957e67ee1e712cebf466b995adf4c5307b2bd/
That works for React devcontainer for a moment, the Django container still shows the error when try to reopen:
My enviroment is:
I have a docker-compose.yml file which define the containers with some services.
Also, there is a folder called .devcontainer and inside there is two folders, one called backcontainer which has the devcontainer.json file, the same with the other folder called frontcontainer.
.devcontainer/backcontainer/devcontainer.json
.devcontainer/frontcontainer/devcontainer.json
The text was updated successfully, but these errors were encountered: