-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin crashes with IntelliJ compiler #4
Comments
We also tried this and got the error. This is caused by the fact that this compiler plugin is built against the If we switch to the Jacoco recently landed support for recognizing Kotlin-generated code, so I would suggest using one of their snapshots builds (0.8.2-SNAPSHOT+) instead if possible. It has the advantage of not polluting your code with In Gradle, you can do that as follows: repositories {
// This repository is needed to get the latest snapshot of Jacoco
maven { url = "https://oss.sonatype.org/content/repositories/snapshots" }
}
jacoco {
toolVersion = '0.8.2-SNAPSHOT'
} |
Thanks for the fast reply, we're going to to give the snapshot version a try, will let you know. I hope you're having a good time at the Delft University of Technology, I've studied there too :) |
@fabianishere JaCoCo 0.8.2-SNAPSHOT works like a charm, thanks for the advice! |
Awesome! I will keep the issue open for future visitors |
Ah, sure, sorry |
I have Kotlin 1.2.51 with my IntelliJ and I am getting same error:
Suggestions? |
@x0a1b This plugin cannot support IntelliJ at the moment due to limitations on their platform. I suggest using a snapshot version of JaCoCo if possible or using Gradle to build the project instead. |
I've reported this issue to the Kotlin issue tracker. See https://youtrack.jetbrains.com/issue/KT-25596 |
@fabianishere thanks for proactively jump onto this 👍 hopefully they will fix it sooner than later. |
@fabianishere @josdejong Any progress on this? I'm seeing the same with https://github.com/henrik242/kotlin-really-allopen and updating to jacoco 0.8.3 doesn't seem to help. |
@henrik242 I think in order to make it work, you need to build an IntelliJ plugin (see https://github.com/JetBrains/kotlin/tree/master/plugins/kotlin-serialization/kotlin-serialization-ide). However, it seems like some of the libraries they use for this are not published on Maven. As a workaround, you could delegate the build in IntelliJ to Gradle ( |
This change adds a plugin for IntelliJ that replaces the Gradle plugin jar with its own shaded compiler plugin in order to support the Kotlin compiler within IntelliJ. Fixes #4
This change adds a plugin for IntelliJ that replaces the Gradle plugin jar with its own shaded compiler plugin in order to support the Kotlin compiler within IntelliJ. Fixes #4
Thanks for writing and sharing this plugin Fabian!
Running our application using gradle on the command line works fine, but we have an issue running the plugin inside IntelliJ IDEA, using kotlin version 1.2.41 and
nl.fabianm.kotlin.plugin.generated
version 1.0:Any ideas how to get it working in IntelliJ?
The text was updated successfully, but these errors were encountered: