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.

Enabling `devcontainer` does not add `.devcontainer.json`

See original GitHub issue

Setting the devContainer: true, on the project works and creates entries in .gitignore, files.json, but the actual .devcontainer.json isn’t created.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
moltarcommented, Mar 8, 2022
1reaction
moltarcommented, Jan 3, 2022

This works:

new vscode.DevContainer(turbo, {
  dockerImage: {
    image: 'node',
  },
})

I guess when setting devContainer: true on the project, it doesn’t set any defaults and then because of that, the file is not rendered, as it’s set to omitEmpty: true.

https://github.com/projen/projen/blob/e5899dd04a575209424a08fe90bde99e07ac6c7b/src/vscode/devcontainer.ts#L72

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add to devcontainer.json function not work #6173 - GitHub
Click the gearwhell on the right of install/uninstall button. Cick Add to devcontainer.json. Does this issue occur when you try this locally?:
Read more >
Developing inside a Container - Visual Studio Code
After picking the starting point for your container, VS Code will add the dev container configuration files to your project ( .devcontainer/devcontainer.json )....
Read more >
Supporting tools and services - Development containers
This page outlines tools and services that currently support the development container specification, including the devcontainer.json format.
Read more >
Setting up a VS Code Dev Container - Ben Selby
For example, you could base it on node:latest and add some extra packages if you wish. A devcontainer.json . This helps configure the...
Read more >
Developing inside a Container - vscode-docs-arc
After picking the starting point for your container, VS Code will add the dev container configuration files to your project ( .devcontainer/devcontainer.json )....
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