Hi, I’m using kotlin-js w/ IR compiler and my kotlin gradle scripts in Intellij Community are all re...
a
Hi, I’m using kotlin-js w/ IR compiler and my kotlin gradle scripts in Intellij Community are all red and not supporting auto complete. The project builds just fine, does anyone have a solution to this? Seems to happen in any of my kotlin-js projects.
v
Which file exactly is that? What is the error on
plugins
that is red underlined? Did you properly import / refresh the Gradle project? Maybe try to close the project, delete
.idea/
and import it freshly.
a
That's my top level build.gradle.kts. I'll check the error from plugins in a bit but the project does build correctly. I'm tried refreshing and deleting .idea folder as well and no luck. This is the community version of Intellij that's having issues, on my machine with Ultimate I didn't see any errors. Is it possible this is only supported in Ultimate?
v
No
Depending on the error it shows you could maybe also try to invalidate caches and restart and manually deleting the cache folders, I know of at least one bug where invalidate caches and restart did not help bug needed a manual deletion of the cache folders.
a
Ok, I'll try that. It's working perfectly on another machine w/ community. Thanks for your help.
f
Are you on EAP or current beta? It does that pretty much daily to me these days. I suspect the new shared index feature because it's mentioned so often in the exceptions I have.
a
No I'm on stable.
t
I had similar problem Looks like manual cache clean required
m
I had the same minutes ago 😁 (on stable) Fixed it by changing
Project Structure > Project SDK
temporarily (1.8 -> 15 and then back)
f
That's exactly what I've witnessed together with the shared indices. They somehow get broken and doing something like this fixes them again.
m
I’ve just noticed that running Gradle Sync again with Java 1.8 breaks it again…
x
looks like this is a common occurrence - so much so, i clear my cache every morning now
😞 1