For the past month + I've been experiencing an iss...
# intellij
g
For the past month + I've been experiencing an issue where all of my
*.gradle.kts
files completely fail in regards to symbol resolution within the IDE but are perfectly valid and execute within Gralde itself. It will fully finish configuration take a second and then all symbols will say they are not resolved. It's very frustrating. Has anyone else seen behavior like this?
m
Are you using Gradle isolated projects by any chance?
I had to remove
org.gradle.unsafe.isolated-projects
because of this (youtrack)
Other cases where I've seen this is a "wrong" JDK. In that case, you will see a bunch of
Cannot access Serializable, which is a superclass of ...
. Usually going to "Project Structure" and then changing the Java SDK there fixes it.
g
So I don't know if I could have set isolated somewhere this happens for existing projects and new projects and this happens on all Gradle files settings, build, and convention plugin files. It occurs on both KMP projects and JVM projects. It's happened over 2025.2 and 2025.2.2. I believe it was also occurring on 2025.1 but I don't remember
j
I get this all the time, haphazardly - I find that reloading/refreshing the file usually works
g
It's never seemed to work
Reconfiguring, reloading from disk, restarting type checking, restarting the IDE, none of them seem to work
m
@Gat Tag if you don't know, you probably don't have it, isolated projects are quite experimental and other things would likely break 🙃
What is the error you have if you hover one of the red lines?
g
image.png
image.png
🤕 1
m
Yikes, that's a lot of red
It's been a very long time I haven't seen it like this. Usually my top level blocks are "OK"
g
Yeah this is a brand new project I made an hour ago, but it is for all of my projects
m
What you can try is disabling all plugins, then try to see if anything stands out in idea.log
If nothing works, file a YouTrack
a
cc @Vladislav Koshkin
g
I figured it out, it was an interaction with a specific version of Gradle
8.14
. Moving to
8.14.3
resolved it. While I'm not very confident in my ability to understand IDEA's logs, in saw no errors or odd messages related to Gradle or Kotlin when using
8.14
.