inellij keeps on komplaining, that i am using a fe...
# intellij
t
inellij keeps on komplaining, that i am using a feature not available on jvm 1.6 and i dont know how to get rid of it. Background: Of course the project still builds using gradle on the commandline. also i set the target jvm in the build.gradle. BUT the project is a multiplatform project. the target jvm is set in the kotlin facet for the jvm* sourcesets. so far so good. but the facets for the projects are build like a tree. on the "root node" of the facet tree, which is just called "Kotlin" i can set the target jvm version, too, and when i do, the jsMain-code gets red (yet the problem in jvmMain disappears)
n
t
Unfortunately no. changing it to false doesnt change anything. also the kotlin-facet on this very sourceset is configured correctly, but still inellij complains
a
On the root Kotlin Facet for your module settings, what’s the version of Target Platform, Language Version and API Version? They should be
JVM 1.8
,
1.3
,
1.3
respectively. Also, Is your
Use project settings
checked? We recently had a similar issue, and it turned out to be those settings that caused the issue.
t
on the root facet no target platform is set. when i set it to jvm 1.8 the error in the
jvmMain
code disappears, but therefore all of the code in
jsMain
is considered bad by intellij