opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Ktlint goes into a infinite loop

Open einarno opened this issue 1 year ago • 3 comments

When trying to change Kotlin files it goes into a infinite loop complaining about it not being able to run Ktlint:

Image

Can share the conversation over DM if needed.

OS: mac Terminal: Warp Version: 174 Model: Gemini Pro

I have Ktlint working in Intellij, so setting it up for the terminal should fix it. Bit still not wanted behavior

einarno avatar Jul 02 '25 12:07 einarno

can you run this? BUN_BE_BUN=1 opencode -e 'console.log(Bun.which("ktlint"))'

i'm curious why we're detecting ktlint when it's not accessible

thdxr avatar Jul 02 '25 15:07 thdxr

This may have been fixed by: https://github.com/sst/opencode/pull/625 btw

rekram1-node avatar Jul 03 '25 00:07 rekram1-node

BUN_BE_BUN=1 opencode -e 'console.log(Bun.which("ktlint"))' returns null.

Can also confirm that this is not fixed in 181

einarno avatar Jul 03 '25 08:07 einarno