cbeust / kobalt

A Kotlin-based build system for the JVM.
Apache License 2.0
428 stars 60 forks source link

JVM target error mark in IDEA doesn't go away after setting target in Build.kt and reimporting #480

Closed dilbernd closed 6 years ago

dilbernd commented 6 years ago

IDEA shows an error marker on calling public defender methods, e.g. on Stream.concat(): "Calls to static methods in Java interfaces are prohibited in JVM target 1.6. Recompile with '-jvm-target 1.8".

As indicated by #422, I have

    kotlinCompiler {
        args("-jvm-target", "1.8")
    }

set in build.kt. My project compiles from Kobalt CLI without issue.

The error marker persists after explicitly refreshing the Kobalt project in IDEA.

Versions:

cbeust commented 6 years ago

Sounds like this should be filed for https://github.com/cbeust/kobalt-intellij-plugin ?

dilbernd commented 6 years ago

True.