kotlin-jlink-examples icon indicating copy to clipboard operation
kotlin-jlink-examples copied to clipboard

IntelliJ wrongly detects module errors in test sources

Open carltonwhitehead opened this issue 5 years ago • 1 comments

In the Maven project, in Test.kt, IntelliJ displays a lint error on references to junit:

Symbol is declared in module 'kotlin.test' which current module does not depend on

This doesn't affect builds, just developer experience in IntelliJ. I suspect it might even be a local configuration issue or an IntelliJ bug, but I wanted to raise this here first to see if anyone else is seeing this and/or knows how to resolve it before investigating further.

carltonwhitehead avatar Jun 11 '20 01:06 carltonwhitehead

Thanks for noticing this. It looks like a problem in Kotlin plugin, I've reported it as https://youtrack.jetbrains.com/issue/KT-41317

ilya-g avatar Aug 22 '20 22:08 ilya-g