Skip to content

๐Ÿ‹๐Ÿ”ง๏ผšstop pointing dprint extension at path nothing installs - #1779

Merged
OpenINFbot merged 1 commit into
livefrom
fix/dprint-vscode-path
Aug 9, 2026
Merged

๐Ÿ‹๐Ÿ”ง๏ผšstop pointing dprint extension at path nothing installs#1779
OpenINFbot merged 1 commit into
livefrom
fix/dprint-vscode-path

Conversation

@DerekNonGeneric

@DerekNonGeneric DerekNonGeneric commented Aug 9, 2026

Copy link
Copy Markdown
Member

๐Ÿ‹ dev container
๐Ÿ”ง bug fix

Why

The dprint VS Code extension has been dead since #1775, failing at launch
on every attach:

[ERROR] Problem launching /home/node/.dprint/bin/dprint. /bin/sh: 1:
/home/node/.dprint/bin/dprint: not found
[ERROR] Error initializing dprint. Ensure it is globally installed on the
path (see https://dprint.dev/install) or specify a "dprint.path" setting
to the executable.

~/.dprint/bin/dprint was populated by the old fish-based
tools/devcontainer/post-start.fish, which ran dprint's curl installer
and added that directory to PATH. #1775 replaced that script with the
current bash post-create.sh/post-start.sh and dropped the install
step, but the dprint.path override in .vscode/settings.json still
points there -- at a location nothing populates anymore.

What this does

Removes the dprint.path override rather than restoring the global
install. Re-adding the curl installer would fix the symptom while undoing
what #1777 just settled: dprint is already a pinned devDependency
(currently 0.55.2) that pnpm installs to node_modules/.bin/dprint, and
a second, separately-versioned global copy would drift from that pin
instead of tracking it. The extension auto-resolves
node_modules/.bin/dprint when no dprint.path is set, and
devcontainer.json's remoteEnv already puts that directory on PATH,
so deleting the setting is the whole fix. A comment is left in its place
so the next person doesn't helpfully re-add it.

Test plan

  • node_modules/.bin/dprint --version reports 0.55.2, matching the
    package.json pin.
  • node_modules/.bin/dprint check --config dprint.json runs clean.
  • nps verify.json (biome) clean on the edited settings.json.
  • Confirmed against the extension's own docs that dprint.path has no
    ${workspaceFolder} substitution, and that node_modules resolution
    is the supported path for a project-local binary.
  • Extension output pane shows no launch error after a window reload
    (needs a reattach to confirm on your side).

๐Ÿค– Generated with Claude Code

The dprint VS Code extension has been failing to launch since #1775:

    [ERROR] Problem launching /home/node/.dprint/bin/dprint. /bin/sh: 1:
    /home/node/.dprint/bin/dprint: not found

That path came from the devcontainer's old fish-based
tools/devcontainer/post-start.fish, which ran dprint's own curl installer
and put $HOME/.dprint/bin on PATH. #1775 replaced that script with the
current bash post-create.sh/post-start.sh and dropped the install step,
but .vscode/settings.json's "dprint.path" override was never updated to
match, so it still points at a location nothing populates.

Reinstalling dprint globally via that same curl script would fix the
symptom while re-litigating what #1777 just settled: dprint is already a
pinned devDependency (currently 0.55.2) that pnpm installs to
node_modules/.bin/dprint, and a second global copy would drift from that
pin rather than track it. The extension auto-resolves
node_modules/.bin/dprint when no "dprint.path" is set, and
devcontainer.json's remoteEnv already puts that directory on PATH, so
removing the override is the fix rather than replacing it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@netlify

netlify Bot commented Aug 9, 2026

Copy link
Copy Markdown

โœ… Deploy Preview for gh-pages-openinf ready!

Name Link
๐Ÿ”จ Latest commit 4ccac20
๐Ÿ” Latest deploy log https://app.netlify.com/projects/gh-pages-openinf/deploys/6a7815054bfeae0008c66815
๐Ÿ˜Ž Deploy Preview https://deploy-preview-1779--gh-pages-openinf.netlify.app
๐Ÿ“ฑ Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@OpenINFbot OpenINFbot changed the title ๐Ÿ‹๐Ÿ”ง๏ผšstop pointing the dprint extension at a path nothing installs ๐Ÿ‹๐Ÿ”ง๏ผšstop pointing dprint extension at path nothing installs Aug 9, 2026
@OpenINFbot
OpenINFbot merged commit 17fdd13 into live Aug 9, 2026
13 checks passed
@OpenINFbot
OpenINFbot deleted the fix/dprint-vscode-path branch August 9, 2026 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants