weird. Try a clean build
# arrow
p
weird. Try a clean build
r
Did not help. Maybe it helps you to know that the exception is inside a library I use in another project? That is why I am wondering about dependencies. Using a fat jar doesn't fix it, though.
p
check with gradle whether it’s bringing an arrow version that’s binary incompatible with your
./gradlew dependencies
r
All arrow-related deps that shows are version
0.11.0
https://pastebin.com/BmzktUJZ
Hmm, I can't reproduce it in a test but I can reproduce it in the main code if I write this
IO { }.attempt()
. Maybe this has something to do with using arrow inside the IntelliJ plugin code (this project is an IntelliJ plugin). JetBrains only documents needed to declare dependencies in
plugin.xml
for other plugins, though; not for every single dependency.
p
you got me here
check the bytecode target maybe?
java 6?
s
Probably a transitive dependency... Kotest maybe?
r
@pakoito The bytecode target is 8. I verified by looking at the class files. @stojan I am not sure what you mean. Can you please elaborate?
Looks like this has nothing to do with Arrow. I can replicate it with my own code in the same project. Thanks for the help anyway.
p
¿?¿?¿?
so weird
r
If you are curious as to the minimum reproducible example or the tracking of the issue, I opened this post https://intellij-support.jetbrains.com/hc/en-us/community/posts/360009914060-ClassCastException-during-runIde-but-not-during-tests
s
I was thinking it might involve kotest (as kotest depends on arrow) A similar program happened to me, in tests only and it was related to an older arrow version coming from kotest.
The solution was to explicitly specify arrow for tests (this was using gradle)