[PR #1546] [MERGED] Fix: Error [ERR_DLOPEN_FAILED] #9968

Closed
opened 2026-02-16 18:14:28 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1546
Author: @CaffeeLake
Created: 8/2/2025
Status: Merged
Merged: 8/13/2025
Merged by: @thdxr

Base: devHead: fix-err_dlopen_failed


📝 Commits (1)

  • fbd0b78 Fix: Error [ERR_DLOPEN_FAILED]

📊 Changes

7 files changed (+79 additions, -35 deletions)

View changed files

📝 .github/workflows/deploy.yml (+1 -1)
📝 .github/workflows/publish-vscode.yml (+1 -1)
📝 bun.lock (+6 -0)
📝 package.json (+5 -2)
📝 packages/opencode/package.json (+1 -0)
📝 packages/opencode/src/tool/bash.ts (+22 -5)
📝 packages/opencode/src/tool/test.ts (+43 -26)

📄 Description

Fix: Error [ERR_DLOPEN_FAILED]

  • Fixes: #1509

  • Fixes: #1670

  • In arm64 environments, tree-sitter and tree-sitter-bash may not work properly, and the following error may occur when executing commands.

Error [ERR_DLOPEN_FAILED]: /tmp/.3bd968e1bc3ef7f7-00000001.node: cannot open shared object file: No such file or directory

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1546 **Author:** [@CaffeeLake](https://github.com/CaffeeLake) **Created:** 8/2/2025 **Status:** ✅ Merged **Merged:** 8/13/2025 **Merged by:** [@thdxr](https://github.com/thdxr) **Base:** `dev` ← **Head:** `fix-err_dlopen_failed` --- ### 📝 Commits (1) - [`fbd0b78`](https://github.com/anomalyco/opencode/commit/fbd0b78f4f05166052a37ca159ea0e86f76c8f32) Fix: Error [ERR_DLOPEN_FAILED] ### 📊 Changes **7 files changed** (+79 additions, -35 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/deploy.yml` (+1 -1) 📝 `.github/workflows/publish-vscode.yml` (+1 -1) 📝 `bun.lock` (+6 -0) 📝 `package.json` (+5 -2) 📝 `packages/opencode/package.json` (+1 -0) 📝 `packages/opencode/src/tool/bash.ts` (+22 -5) 📝 `packages/opencode/src/tool/test.ts` (+43 -26) </details> ### 📄 Description # Fix: Error [ERR_DLOPEN_FAILED] - Fixes: #1509 - Fixes: #1670 - In arm64 environments, `tree-sitter` and `tree-sitter-bash` may not work properly, and the following error may occur when executing commands. ```shell Error [ERR_DLOPEN_FAILED]: /tmp/.3bd968e1bc3ef7f7-00000001.node: cannot open shared object file: No such file or directory ``` - This is binary issue on the library side <https://github.com/sst/opencode/pull/1546#issuecomment-3149871705>, so ~this patch temporarily avoids the error by skipping the use of the library and reverting to the previous behavior in environments where `tree-sitter` does not work~ ~<https://github.com/sst/opencode/pull/1546#issuecomment-3150645656>~<https://github.com/sst/opencode/pull/1546#issuecomment-3166653767>. - Since opencode is completely unusable in environments where this problem occurs and the urgency is high, I am submitting a PR in this format, but if you know of a better solution I would appreciate your information. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:28 -05:00
yindo closed this issue 2026-02-16 18:14:28 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9968