tree-sitter-bash icon indicating copy to clipboard operation
tree-sitter-bash copied to clipboard

no executable found for arm64 devices on releases later than v0.23.1

Open hawkaii opened this issue 4 months ago • 3 comments

opencode fails to run for arm64 devices due to no executable found on arm64 devices. a detailed explanation is given here https://github.com/sst/opencode/pull/1546#issuecomment-3149871705

hawkaii avatar Aug 04 '25 16:08 hawkaii

Use tree-sitter 0.25 and tree-sitter-bash 0.25

ObserverOfTime avatar Aug 04 '25 19:08 ObserverOfTime

i used it and it still gives the following error

packages/opencode/test/tool/edit.test.ts:

# Unhandled error between tests
-------------------------------
14 |
15 | export namespace ToolRegistry {
16 |   const ALL = [
17 |     InvalidTool,
18 |     BashTool,
19 |     EditTool,
         ^
ReferenceError: Cannot access 'EditTool' before initialization.
      at <anonymous> (/home/hawkaii/code/projects/opencode/packages/opencode/src/tool/registry.ts:19:5)
      at /home/hawkaii/code/projects/opencode/packages/opencode/src/tool/registry.ts:177:12
-------------------------------


packages/opencode/test/tool/bash.test.ts:
error: Cannot find module './prebuilds/linux-arm64/tree-sitter.node' from '/home/hawkaii/code/projects/opencode/node_modules/tree-sitter/index.js'
✗ tool.bash > basic [13.54ms]
39 |             command: "cd ../",
40 |             description: "Try to cd to parent directory",
41 |           },
42 |           ctx,
43 |         ),
44 |       ).rejects.toThrow("This command references paths outside of")
                     ^
error: expect(received).toThrow(expected)

Expected substring: "This command references paths outside of"
Received message: "Cannot find module './prebuilds/linux-arm64/tree-sitter.node' from '/home/hawkaii/code/projects/opencode/node_modules/tree-sitter/index.js'"

      at <anonymous> (/home/hawkaii/code/projects/opencode/packages/opencode/test/tool/bash.test.ts:44:17)
      at <anonymous> (/home/hawkaii/code/projects/opencode/packages/opencode/test/tool/bash.test.ts:35:45)
      at <anonymous> (/home/hawkaii/code/projects/opencode/packages/opencode/src/app/app.ts:92:30)
      at <anonymous> (/home/hawkaii/code/projects/opencode/packages/opencode/src/app/app.ts:90:29)
      at run (node:async_hooks:62:22)
✗ tool.bash > cd ../ should fail outside of project root [8.88ms]

packages/opencode/test/tool/tool.test.ts:
✓ tool.glob > truncate [49.71ms]
✓ tool.glob > basic [8.46ms]
✓ tool.ls > basic [4.13ms]

it can't find prebuilds for linux-arm64 i think the .github/workflow only builds for the arch64

hawkaii avatar Aug 04 '25 19:08 hawkaii

Oh yeah, that's tree-sitter/node-tree-sitter#248

ObserverOfTime avatar Aug 04 '25 19:08 ObserverOfTime