Fail fast when devcontainer.json
uses unsupported variables
#5547
Labels
bug
Issue identified by VS Code Team member as probable bug
containers
Issue in vscode-remote containers
plan-review
PM-highlighted item determined to be P1 or P2
volume
Dev Container mounting a Docker volume
Relates to #2888
As described by https://code.visualstudio.com/docs/remote/devcontainerjson-reference#_variables-in-devcontainerjson some variables (currently
${localWorkspaceFolder}
and${localWorkspaceFolderBasename}
) are not available indevcontainer.json
when cloning a repository (instead of opening a local folder).It appears the Remote Containers extension does not detect this and passes the variable strings literally to Docker which then results in cryptic errors such as:
Since one of the main purposes of this extension is to simplify starting development on a new project, having such an error is pretty awful.
Could the extension please detect usage of such unsupported variables and fail fast, with a proper error message, before trying to start docker?
The text was updated successfully, but these errors were encountered: