Skip to content

Build Ruff VS Code extension from source to drop binary-lookup modal#178

Draft
samestep wants to merge 1 commit into
mainfrom
ruff-no-popup
Draft

Build Ruff VS Code extension from source to drop binary-lookup modal#178
samestep wants to merge 1 commit into
mainfrom
ruff-no-popup

Conversation

@samestep

@samestep samestep commented Jul 8, 2026

Copy link
Copy Markdown
Owner

No description provided.

The prebuilt `charliermarsh.ruff` extension pops a modal error whenever its
interpreter probe throws. That happens in non-Python projects where direnv has
leaked the Nix SDK's `DEVELOPER_DIR`, which shadows Apple's `/usr/bin/python3`
shim (`error: tool 'python3' not found`). The extension already falls back to
the bundled ruff and works fine, so the modal is pure noise.

nixpkgs ships the prebuilt Marketplace VSIX, so patch cleanly by building from
source instead: fetch astral-sh/ruff-vscode, apply a 10-line patch removing the
`showErrorMessage` modal (keeping the log line), run the webpack build, and ship
only `dist/` plus the ruff binary at `bundled/libs/bin/ruff`. The deprecated
`ruff-lsp` Python stack under `bundled/libs` is dropped -- it's only used by
`nativeServer: off`, and we run the native server.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant