-
Notifications
You must be signed in to change notification settings - Fork 620
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[contributing] Completion error in intellij after 2.0.0-RC3 #2725
Comments
Do you mean that when you open the |
I've totally removed the lib folder and re-cloned it, after removing the system directory, enabled K2 mode, re-imported the root |
You shouldn't enable K2 mode in IDE, it doesn't support MPP projects for now. Regular mode works fine with Kotlin 2.0 projects |
Unfortunately, I'm not able to reproduce the problem even on a freshly cloned project :( |
Yes, gradle compiles well and execute well the tests
AFAIK, no weird env var, the only changed config is All my other projects are working well 😅 |
To be honest, I don't know what else to recommend to you except trying to take your colleague's computer and/or VM and see what happens there :( |
Did you try install another instance of intellij via JetBrains Toolbox, or other version like 2024.2 EAP, or clean all IDE cache by removing directory in |
@xiaozhikang0916 yes I already cleaned this folder (that is the system directory) and also already cleaned all the caches. Today I tried with a brand new clean IDE (IntelliJ community), but still having the same issue: all the standard library is not found by the IDE |
Ok, I've tested all the commits on the fresh IntelliJ. The error appears when moving from kotlin |
It works when using Kotlin 2.0.20-Beta1 |
Works with the last master commit (kotlin 2.0.20). |
Describe the bug
Since kotlinx.serialization 1.7.0, I'm unable to contribute as all the kotlin standard library is missing the completion, and/or have the standard library missing from the classpath, which makes all the
listOf
,apply
,to
and more to be red. No issue when going back to 1.6.3. I don't know if it's a misconfiguration of the library or my computer, but this is the only project having issues (regarding 10-15 other projects), that's why I'm opening the issue here.I tried everything, even reinstalling intellij, emptying gradle's cache, remove shared indexes, etc. Also tried with multiple Java runtimes from 17 to 21.
Do you already had this issue?
To Reproduce
Just checkout 1.7.0 or master.
Environment
The text was updated successfully, but these errors were encountered: