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

Misleading error message when project folder is moved and vscode tries to open it #7164

Open
rapgenic opened this issue Sep 6, 2022 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug containers Issue in vscode-remote containers

Comments

@rapgenic
Copy link

rapgenic commented Sep 6, 2022

  • VSCode Version: 1.70.2
  • Local OS Version: Windows 10
  • Remote OS Version: Ubuntu
  • Remote Extension/Connection Type: Docker container (with WSL backend)
  • Logs:
[44 ms] Remote-Containers 0.245.2 in VS Code 1.70.2 (e4503b30fc78200f846c62cf8091b76ff5547662).
[43 ms] Start: Resolving Remote
[65 ms] Setting up container for folder or workspace: [project folder]
[71 ms] Start: Check Docker is running
[72 ms] Start: Run: docker version --format {{.Server.APIVersion}}
[104 ms] spawn C:\Program Files\Docker\Docker\resources\bin\docker.exe ENOENT
[107 ms] Docker returned an error code ENOENT, message: spawn C:\Program Files\Docker\Docker\resources\bin\docker.exe ENOENT

Steps to Reproduce:

  1. Open project in dev container
  2. Close vscode
  3. Rename/move the project folder
  4. Reopen vscode (automatically tries to open the previous project)
  5. The following message is shown:
    immagine Which suggests in a very misleading way that there is a problem with the docker executable, and gives no clue that the problem is that the project folder has been moved
@github-actions github-actions bot added the containers Issue in vscode-remote containers label Sep 6, 2022
@chrmarti
Copy link
Contributor

chrmarti commented Sep 7, 2022

We need to distinguish between ENOENT indicating that either the executable or the working directory for the execution does not exist.

@chrmarti chrmarti self-assigned this Sep 7, 2022
@chrmarti chrmarti added the bug Issue identified by VS Code Team member as probable bug label Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug containers Issue in vscode-remote containers
Projects
None yet
Development

No branches or pull requests

2 participants