Devcontainer does not run `postCreateCommand` for some users

Open
#243 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python, vscode

Research direction

Start by reproducing the reported devcontainer flow and inspect the VS Code lifecycle or container logs around the build-complete message and postCreateCommand. Done means the container reliably runs postCreateCommand and reaches the ready message without requiring a window reload across the affected environments.

Written by the indexing model from the issue text.

Description

bug devcontainer

We've noticed this with a couple of users, I have noticed it on my laptop but not my Diamond workstation. The expected flow is:

  1. Container builds
  2. Displays a message saying build is complete
  3. Runs postCreateCommand and begins installing dependencies etc.
  4. Displays a message saying devcontainer is ready and that the user should press any key to continue

The observed symptoms are vscode getting stuck at step 2. reloading the window usually gets it unstuck and it executes step 3. and 4. more investigation is needed

Dominant language
Jinja
Stars
28
Forks
10
Avg merge
3d 4h
Merged PRs (30d)
4

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DiamondLightSource/python-copier-template

All issues in DiamondLightSource/python-copier-template

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.