Error message after each write #1793

Closed
opened 2026-02-16 17:32:38 -05:00 by yindo · 3 comments
Owner

Originally created by @wzhdemu on GitHub (Sep 22, 2025).

Originally assigned to: @rekram1-node on GitHub.

Hi, first of all i want to thank you for wonderful and very cool project. :)

i have small issue probably misconfiguration on my side, after each write i am getting an error message:

Image

file is written correctly.

What can it be?

Configuration:

{ "$schema": "https://opencode.ai/config.json", "agent": { "build": { "mode": "primary", "description": "Editing-enabled agent", "permission": { "edit": "allow", "bash": "ask" }, "tools": { "edit": true, "bash": true, "webfetch": true } }, }, "lsp": { "clojure": { "command": [ "/opt/clojure-lsp/clojure-lsp" ] } }, "permission": { "edit": "allow", "bash": { "git status": "allow", "git diff": "allow", "npm run build": "allow", "ls": "allow", "pwd": "allow" } } }

And small question, i added clojure lsp but how it is used by the opencode? is it used at all?

Big thanks!

Denis.

Originally created by @wzhdemu on GitHub (Sep 22, 2025). Originally assigned to: @rekram1-node on GitHub. Hi, first of all i want to thank you for wonderful and very cool project. :) i have small issue probably misconfiguration on my side, after each write i am getting an error message: <img width="1734" height="182" alt="Image" src="https://github.com/user-attachments/assets/03e18490-b2c1-4c3e-9239-e1b039fa0380" /> file is written correctly. What can it be? Configuration: `{ "$schema": "https://opencode.ai/config.json", "agent": { "build": { "mode": "primary", "description": "Editing-enabled agent", "permission": { "edit": "allow", "bash": "ask" }, "tools": { "edit": true, "bash": true, "webfetch": true } }, }, "lsp": { "clojure": { "command": [ "/opt/clojure-lsp/clojure-lsp" ] } }, "permission": { "edit": "allow", "bash": { "git status": "allow", "git diff": "allow", "npm run build": "allow", "ls": "allow", "pwd": "allow" } } }` And small question, i added clojure lsp but how it is used by the opencode? is it used at all? Big thanks! Denis.
yindo closed this issue 2026-02-16 17:32:38 -05:00
Author
Owner

@rekram1-node commented on GitHub (Sep 22, 2025):

@wzhdemu this is because of your lsp, you need to add extensions:

"lsp": {
    "clojure": {
      "command": [
        "/opt/clojure-lsp/clojure-lsp"
      ],
      "extensions": [".clj"]
    }
  }

the lsp is used when the llm edits files and the diagnostics are added to context

@rekram1-node commented on GitHub (Sep 22, 2025): @wzhdemu this is because of your lsp, you need to add extensions: ``` "lsp": { "clojure": { "command": [ "/opt/clojure-lsp/clojure-lsp" ], "extensions": [".clj"] } } ``` the lsp is used when the llm edits files and the diagnostics are added to context
Author
Owner

@rekram1-node commented on GitHub (Sep 22, 2025):

@wzhdemu I pushed a fix to dev (for that undefined thing you had invalid lsp definition but we didn't throw error) but if you update your lsp definition as I recommend above^^ this should be fixed for you

@rekram1-node commented on GitHub (Sep 22, 2025): @wzhdemu I pushed a fix to dev (for that undefined thing you had invalid lsp definition but we didn't throw error) but if you update your lsp definition as I recommend above^^ this should be fixed for you
Author
Owner

@wzhdemu commented on GitHub (Sep 23, 2025):

@rekram1-node thanks a lot!

@wzhdemu commented on GitHub (Sep 23, 2025): @rekram1-node thanks a lot!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1793