Skip to content

Devcontainer runtimes have some missing files if the mounted path inside devcontainer is not exactly the same as in the host #3709

Description

@LazyGeniusMan

Devcontainer complain some files are missing if the mounted location of the workspace inside the devcontainer is not exactly the same as in the hosts

Workaround

This fields in devcontainer.json make the mount location inside the devcontainer the same as in the host and fixes the issue

"workspaceFolder": "${localWorkspaceFolder}",
"workspaceMount": "source=${localWorkspaceFolder},target=${localWorkspaceFolder},type=bind",

Maybe this could at least mentioned in the docs?

Screenshot (happen if workaround is not applied) :

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions