Hi, I'm trying to get the hello world maven application to work. I have plugin 0.6.1558 and IC 12.1.6 . I had the same results with plugin 0.6.605 2 days ago.
I downloaded the example from here https://codeload.github.com/JetBrains/kotlin-examples/zip/master and imported <…>kotlin-examples-mastermavenhello-world as maven project. I get an error in the notification bar:
[…] kotlin-stdlib-0.1-20131128-266.jar has an unsupported format […]
(An aside: why, oh why, is it not possible to select and copy the text from the notification bar?).
When I try to build I get the following output:
Kotlin: Class ‘kotlin/KotlinPackage’ was compiled with an incompatible version of Kotlin. Its ABI version is 12, expected ABI version is 11
I looked at the repositories and it it looks like the runtime ends in 267 but the std-lib in 266. I’m guessing this might be the source of the error, but I wasn’t able to hardwire maven to get the 266 version of the runtime. Also it wouldn’t have been a very satisfactory solution, having to manually mainpulate every kotlin release
Things look better when I change the Pom to use kotlin version 0.6.+ instead of the snapshot (This did not work for plugin 0.6.605). Now I can run the application and the test successfully. However the IDE complains about things being missing from the stdlib.
In Hello.kt println is red and when I hover over it, the error popup says (also not able to select and copy… grrr!):
Unresolved reference: println
In HelloTest.kt assertEquals is red both in the code and in the import statement with the same error>
As I can build, this is just an annoyance, but a pretty major one