Anyone know how to get rid of this IDE error for 1...
# intellij
j
Anyone know how to get rid of this IDE error for 1.9? Code compiles and runs fine, but the IDE error flag stays around. No option to hide it in "More Actions".
e
What is the IDE plugin version?
Let me try similar
a
@Jason Robinson can you simplify the project, make sure the issue is reproduced, and send it to me? Thank you!
p.s. I unable to reproduce the issue with a simple project with added data object.
j
Sure, might be later this afternoon or evening (10:30AM locally atm)
🙏 1
thank you color 1
@Eugen Martynov plugin version is 231-1.9.0-Beta-release-209-IJ8770.65.
e
I still didn’t run my test - will try tomorrow
👍 1
b
I doubt it's this simple, but did you Gradle sync?
j
Yeah. I've been on 1.9 for a few days at this point.
a
Maybe try checking if the language version is set to >=1.9 in your IDE settings. I've had similar issues with this before
j
they were already set to 1.9 (assuming the kotlin plugin set it automatically)
here's an example project that reproduces the error: https://github.com/jrobinson3k1/problem-example I actually had to create a new project 3 times before I was able to reproduce. To repro, I had to use the Compose Multiplatform generator with "Multiple platforms" configuration selected (same one used for my actual project). The error went away when doing KMP JVM project and Compose Multiplatform with "Single platform" selected. One interesting thing with this configuration is that the gradle code inserted when using the quick fix from the error balloon will cause gradle sync to fail. That's why my screenshots show I was using a slightly different route compared to the quick fix code, because that syncs and runs fine. So that's potentially a clue to what is wrong. Here's the sync error:
Copy code
Task with name 'compileKotlin' not found in project ':common'.
thank you color 1
@Anton Mefodichev ^^
a
Big thanks! Created 2 bugs (for compiler error and for plugin quickfix): https://youtrack.jetbrains.com/issue/KT-59043 https://youtrack.jetbrains.com/issue/KTIJ-25700
💯 1
@Jason Robinson, can you please try this?
j
Yes. Switching to that method for setting the language version fixed it! I'm not at all versed in gradle configuration so I'm not surprised it was just a matter of setting the value properly. Thanks for the help!
thank you color 1