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 Dev Container Configuration '.devcontainer/devcontainer.json' file already exists #10593

Open
tianjianchn opened this issue Dec 25, 2024 · 0 comments
Assignees
Labels
containers Issue in vscode-remote containers

Comments

@tianjianchn
Copy link

tianjianchn commented Dec 25, 2024

  • VSCode Version: 1.94, 1.96.2
  • Local OS Version: macOS 10.15.7
  • Remote OS Version: Ubuntu 24.04.1
  • Remote Extension/Connection Type: Dev Containers 0.394.0, I have also tried pre-release version
  • Logs:

Steps to Reproduce:

I don't know how to reproduce it, because it's OK before this error.

After I debug dev container extension, I found the following lines are the problem:

 ...t.map((o) =>
      Nt.workspace.findFiles(
        new Nt.RelativePattern(
          o.with({ path: sd.posix.join(o.path, '.devcontainer') }),
          '{devcontainer.json,*/devcontainer.json}'
        )
      )
    ),

When I changed it to

...t.map((o) =>
      Nt.workspace.findFiles(
        new Nt.RelativePattern(
          o,
          '.devcontainer/devcontainer.json'
        )
      )
    ),

It's working then.

Anyway, the error message prompted is misleading, since the real problem is the extension cannot find the devcontainer.json.

@vs-code-engineering vs-code-engineering bot added the containers Issue in vscode-remote containers label Dec 25, 2024
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

2 participants