What can be the reason that I can’t start tests fr...
# intellij
a
What can be the reason that I can’t start tests from common Kotlin code anymore in the IDE? I’ve updated the IDE, I’ve invalidated caches and reimported the project, however IntelliJ fails to recognize the Test annotations I’ve added the proper dependencies and I can run the test from the command line.
e
Is the source set marked as test sources? 🤔
a
Yes, it is the default MPP project setup with a common test module
It also has problems auto importing annotations, not only Test, but also Serializable. Manually adding the imports works
c
did you try “repair IDE”?
a
Alas, that also didn’t work. This is strange. On another Pc in IntelliJ it works correctly
c
if you have time file an issue.
a
Yea I think I will
Thanks for helping!
a
Do you need to “enable annotation processing” in the IDE settings?
image.png
a
Yes that is also on. It works in all other projects except this one on this computer.
a
@Arjan van Wieringen does it look the same as this issue? https://youtrack.jetbrains.com/issue/KTIJ-22322
a
Yes it is exactly the same
I solved it by reinstalling IntelliJ last evening btw