Description
I'm working on a plugin and during development I'm using just local version of the plugin by placing it to .opencode/plugins/my-plugin.ts. The issue is that if there is some error in the plugin (e.g. incompatibility between node and bun) the error is just swallowed.
I believe it is because of this line
|
pkg ?? (source === "npm" ? await readPluginPackage(target) : await readPluginPackage(target).catch(() => undefined)) |
where error is swallowed in case of local plugin.
Plugins
No response
OpenCode version
1.4.0
Steps to reproduce
- import
drizzle-orm/node-sqlite in your plugin and use it to create a database
- opencode loads the plugin but then it behaves like the plugin doesn't exist and there are no error logs
Screenshot and/or share link
No response
Operating System
macOS 26.3.1
Terminal
Ghostty
Description
I'm working on a plugin and during development I'm using just local version of the plugin by placing it to
.opencode/plugins/my-plugin.ts. The issue is that if there is some error in the plugin (e.g. incompatibility between node and bun) the error is just swallowed.I believe it is because of this line
opencode/packages/opencode/src/plugin/shared.ts
Line 139 in 489f579
Plugins
No response
OpenCode version
1.4.0
Steps to reproduce
drizzle-orm/node-sqlitein your plugin and use it to create a databaseScreenshot and/or share link
No response
Operating System
macOS 26.3.1
Terminal
Ghostty