Repository navigation
Bump tree-sitter to 0.25.1 so the extension loads under Bun - #33
Merged
yonilerner merged 1 commit intoAug 11, 2026
Merged
Conversation
pi runs on Bun, and tree-sitter's entry point takes a Bun-specific branch that requires prebuilds/<platform>-<arch>/tree-sitter.node. The lockfiles pinned 0.25.0, which publishes no prebuilds, so npm's install script built the binding at build/Release/tree_sitter_runtime_binding.node instead and the require failed: Failed to load extension .../extensions/pi-auto.ts: Cannot find module './prebuilds/darwin-arm64/tree-sitter.node' pi-auto did not load at all on a fresh install. 0.25.1 publishes prebuilds for all six platform/arch pairs, and tree-sitter-bash already shipped its own, which is why only the core package was affected. Both lockfiles are edited by hand rather than regenerated. A regen pulled in unrelated churn: npm added libc metadata fields and dropped entries, and pnpm bumped pi-ai and pi-coding-agent. Note that pnpm install --frozen-lockfile already fails on main from devDependency drift, before and after this change. Verified with npm ci followed by a clean load of the extension in pi 0.83.0 on darwin-arm64.
yonilerner
enabled auto-merge (squash)
August 6, 2026 19:51
yonilerner
disabled auto-merge
August 6, 2026 20:25
yonilerner
enabled auto-merge (squash)
August 6, 2026 20:25
yonilerner
disabled auto-merge
August 11, 2026 19:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pi runs on Bun, and tree-sitter's entry point takes a Bun-specific branch that requires
prebuilds/<platform>-<arch>/tree-sitter.node. The lockfiles pinned 0.25.0, which publishes no prebuilds, so npm's install script built the binding atbuild/Release/tree_sitter_runtime_binding.nodeinstead and the require failed:pi-auto did not load at all on a fresh install.
0.25.1publishes prebuilds for all six platform/arch pairs, and tree-sitter-bash already shipped its own, which is why only the core package was affected.Both lockfiles are edited by hand rather than regenerated. A regen pulled in unrelated churn: npm added libc metadata fields and dropped entries, and pnpm bumped pi-ai and pi-coding-agent.
Note that
pnpm install --frozen-lockfilealready fails on main from devDependency drift, before and after this change.Verified with
npm cifollowed by a clean load of the extension in pi 0.83.0 on darwin-arm64.