question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

the PowerShell's devcontainer.json is invalid

See original GitHub issue

https://github.com/microsoft/vscode-dev-containers/blob/dfba31dbeee27378ce3beced5e5004462a2c6311/containers/powershell/.devcontainer/devcontainer.json#L7

pwsh does not seem accepted.

Value is not accepted. Valid values: “sh”, “bash”, “bash (2)”, “rbash”, “rbash (2)”, “dash”, “dash (2)”, “tmux”, “screen”, “fish”, “JavaScript Debug Terminal”.(1)

This seems to be a schema issue rather than a definition issue, but I didn’t know where to report it. Please transfer if necessary.

  • VSCode Version: 1.66.2
  • Local OS Version: WSL2
  • Local chip architecture: x86
  • Reproduces in: Remote - Containers
  • Name of Dev Container Definition with Issue: PowerShell

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
eitsupicommented, May 3, 2022

Note that, the warning did not occur on the container. The warning occurs before the container is built. devcontainer.json is a file to edit before creating the container.

1reaction
Tyriarcommented, May 3, 2022

I feel like this warning is by design on my end since the setting has some advanced validation. I’d recommend @meganrogge’s approach to workaround.

Read more comments on GitHub >

github_iconTop Results From Across the Web

devcontainer\devcontainer.json - PowerShell Gallery
json values on container create. "settings": { "terminal.integrated.shell.linux": "/usr/bin/pwsh" }, / ...
Read more >
Developing inside a Container - Visual Studio Code
A devcontainer.json file in your project tells VS Code how to access (or create) a development container with a well-defined tool and runtime...
Read more >
ConvertFrom-Json (Microsoft.PowerShell.Utility)
The ConvertFrom-Json cmdlet converts a JavaScript Object Notation (JSON) formatted string to a custom PSObject or Hashtable object that has a property for ......
Read more >
docker - Error when opening a VSCode remote-container from ...
I modified the devcontainer.json to set the vscode user to "remoteUser": "root", . This seems wrong. The container runs now. I referenced ...
Read more >
PowerShell Universal VS Code devcontainer.json
PowerShell Universal VS Code devcontainer.json ... 7.2.0-preview.5 #See: https://hub.docker.com/_/microsoft-powershell ARG PWSHVERSION=lts ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found