microsoft / microsoft/vscode-remote-release
Node file changes not detected running in docker container in vs code
Open
@chrmarti is already working on this.
Since Dec 8, 2022.
bug
containers
- Dominant language
- Dockerfile
- Stars
- 4.2k
- Forks
- 470
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
- VSCode Version: 1.71.2
- Local OS Version: Windows 10 21H2 (19044.2251)
- Remote OS Version: mcr.microsoft.com/devcontainers/base:jammy
- Remote Extension/Connection Type: WSL / Docker container
- Logs: blah.txt
Steps to Reproduce:
- Clone https://github.com/NotoriousPyro/containers-windows-watch-no-worky
- Try to run in container (CTRL + SHIFT + P) -> Dev Containers: Rebuild container
- Try to run the project in terminal with
npm ithennpm run devand make a change inapps/transactionwatcher/src/index.ts - Notice how no changes are detected.
- Reopen the folder in cmd prompt/VS Code locally, run step 3 again above... notice how changes are detected...
Does this issue occur when you try this locally?: No
Does this issue occur when you try this locally and all extensions are disabled?: No
I'm not sure where the fault lies, I have tried running the process with ts-node-dev, concurrently nodemon and tsc/tsup combination and none of them detect the file changes while running in container.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.