Is anyone else getting a ton of IDE errors from 22...
# eap
e
Is anyone else getting a ton of IDE errors from 221-1.7.0-Beta? My project is pretty heavy on new features and complicated structures so it's always pretty unstable from the IDE. But it feels extra bad.
They seem to mostly be like this: https://srcb.in/PvLaAL78Ps https://sourceb.in/TxYoNrk7oe https://sourceb.in/6LPNbWnU22 https://sourceb.in/i0b51EuY5R After like an hour of work I have like easily 500 of them.
s
Hi! We have a few issues related to your case. For example, https://youtrack.jetbrains.com/issue/KTIJ-6117/UpToDateStubIndexMismatch-PSI-and-index-do-not-match-exceptions- Could you try Repair IDE action, please?
e
Just tried repair again and it does not fix it, it also happens on every other computer I've used this project on. It also happens whenever analysis runs: https://drive.google.com/uc?id=1jStt8bO5QO9fRpg6jI2C54wCZmT2guRY But there are a few other errors I more rarely get there too, I'll try to catch them as they come.
s
I’ve created https://youtrack.jetbrains.com/issue/KTIJ-21832/UpToDateStubIndexMismatch-PSI-and-index-do-not-match-when-analys Please: • share project or, if it’s not possible, as many details as possible: how many modules, is it multiplatform project or not, do you use experimental feature, etc. • As I understand it works well with other versions IDEA and Kotlin plugin? Try as many combinations as possible. Thanks for your help!
e
Ok I'll clean up the project, test things and submit ASAP. Thank you!
m
Hi, I'm almost sure that the root problem is in using context-receivers in one of your libraries: https://gitlab.com/ballysta/architecture/-/blob/snapshot/src/main/kotlin/com/gitlab/ballysta/architecture/Subjects.kt#L88 So it's https://youtrack.jetbrains.com/issue/KTIJ-21243 Could you please try changing version to one where there are no context-receivers? At the same time, I'll try to fix the original issue
e
Sorry for the delay, I have confirmed that the error only happens when depending on the library from another project. https://sourceb.in/Sx3byTS21K https://sourceb.in/UAnBbms8Vc https://sourceb.in/n7KfYfk0pL https://sourceb.in/mmtcoIQLWK https://srcb.in/80aNB4latZ https://pastebin.com/kXYMBXd6 I also sometimes get errors like this ^ I just tried an older version of the project that does not use context receivers and does not create IDE errors. However, it does still once in a while say "syntax highlighting was disabled" or show syntax errors as existing where there are none. I will try to remove context receivers from the current version of the project to make sure it's not another new feature or something to do with continuations. One other error that doesn't seem to be tied to a specific version of the project or compiler plugin: https://srcb.in/gLPtStulzM I think it comes from bypassing platform declaration clashes using default parameters like this: https://gitlab.com/ballysta/architecture/-/blob/snapshot/src/main/kotlin/com/gitlab/ballysta/architecture/Toggled.kt#L71 It causes both the declaration and places that use it to show up as syntax errors briefly (few minutes). But doesn't always show up in IDE errors list. Hopefully, some of this information helps, thank you very much.
🙏 1