When model uses edit tool it returns status 126
When the model wants to edit my files it returns status 136. But the actual file is edited.
what model is this?
oh this maybe is related to a formatter? what kind of file is this
Elixir and does not matter what model I use, they all have it
@thdxr sorry to bother you again but could you maybe give me some guidance how to fix. Could not find it in the docs?
I'm having this same issue.
@objectuser are you only having it w/ elixir?
@objectuser are you only having it w/ elixir?
It is with Elixir and yes only with Elixir but that's also only how I'm using it.
I'm suspicious that it's asdf.
Really new to opencode but found:
ERROR 2025-08-20T13:41:37 +324ms service=default e=Failed with exit code 126 rejection
But also:
INFO 2025-08-20T13:56:06 +0ms service=format command=["mix","format","$FILE"] running
No errors around ☝️ . 🤔
sweet, I will try to fix this for ya when I get a second later tonight
🍻
@objectuser looking into this more I think it is probably something specific to you? not sure if there is anything for us to do on our end maybe formatters shouldn't send errors to context but idk what else?
OK thanks, @rekram1-node. I wonder if everyone using Elixir is getting the same error. opencode is completing Elixir tasks (code modifications, etc.) successfully.
I'll continue to look around, maybe ask in some Elixir venues.
i could be mistaken here btw, just out of curiosity what is your mix path? like where is it located, does it require something custom from your .zshrc or something to get loaded properly?
we are running the mix … command but we arent sourcing your zshrc etc, but if mix is resolved through PATH properly it shouldnt be an issue
I'm using mix through asdf which is in my path.
I just found out I get improved results when I disable elixir-ls.
"lsp": {
"elixir-ls": {
"disabled": true
}
},
No error is generated and for the first time I see a diff of the edits.
ahh elixir lsp separate issue that makes more sense, for some reason I was thinking formatter
haven't seen activity on this one in a while closing unless more people have this issue