Using ktor 0.9.4 on Windows, upon Ktor startup I g...
# ktor
r
Using ktor 0.9.4 on Windows, upon Ktor startup I get a
java.lang.VerifyError: Bad type on operand stack
, but only when run from within IJ. When run outside of IJ via gradle, there is no issue. Also running the same app on my Linux box is fine. Anyone have any ideas?
d
Which version of the Kotlin plugin are you using inside idea?
r
Let me check, I'm debugging for a coworker...
Aha, seems he is not using the 1.2.61 plugin...
Yup, that fixed it. So I guess when run from IJ the runtime uses classes from the Kotlin plugin rather than the ones on the classpath?
d
I don’t know for sure. But when I had similar errors in the past, were related to that
r
Thanks. That is a terrible failure mode though...
d
Agree. Not sure about the complete rationale tbh
b
I’ve experienced this before, but I don’t have the issue when I have IJ configured to delegate to the gradle runner (without updating the Kotlin plugin)
r
@bdawg.io You mean the
Delgate IDE build/run actions to gradle
setting?
b
Yes