Skip to content

Cannot find devcontainer.json when using jeanp413/open-remote-wsl #28

Description

@Marc-Pierre-Barbier

Description

A clear and concise description of the problem.

Environment

  • Editor: VSCodium
  • Extension version: 0.3.1
  • OS: Linux (wsl)
  • Docker version: 29.4.1

devcontainer config

Paste relevant parts of .devcontainer/devcontainer.json (image, remoteUser, post*Command):

{
	"image": "buildenv",
	"postStartCommand": "/sbin/entrypoint.sh true",
	"remoteUser": "builder",
}

Steps to Reproduce

  1. Open folder in WSL with the open-remote-wsl by jeanp413
  2. create the .devcontainer/devcontainer.json
  3. use any command like "Open Devcontainer Configuration" or "Rebuild and Open"

Expected Behavior

I would expect for the extension to behave as if i was in a native linux environment

Actual Behavior

it complains that it doesn't find the json

Logs

From the "Codium Devcontainer" output channel:

Running postStartCommand in remote terminal...
postStartCommand: /sbin/entrypoint.sh true
Error: No devcontainer.json found
Error: No devcontainer.json found
Error: No devcontainer.json found
Error: No devcontainer.json found

Additional Context

I used to use this very configuration on Microsoft's VSC but using the proprietary implementation by Microsoft.
I also noticed that when I open the folder it does find the postStartCommand and log it. This means that for a brief moment it is able to find the right path.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions