For an sbt project matrix spanning JS, JVM, and Native, IntelliJ IDEA is capable of fully indexing sources within src/main. Any types defined within the sources can be used by tests within src/test. In other words, sbt test works just fine.
However, the types defined within src/main are seemingly unnavigable from src/test. If you select Navigate > GoTo (i.e., ⌘-click) on a type defined in the sources, an alert says "Cannot find declaration to go to".
Workaround: If the JS & Native axes are removed from the project matrix, navigation to source files works.
It's unclear whether this is an issue with sbt-projectmatrix or the IntelliJ IDEA Scala plugin. It could also easily be user error (apologies, if so). Please let me know if this is a known issue or there is a more appropriate workaround.
For an sbt project matrix spanning JS, JVM, and Native, IntelliJ IDEA is capable of fully indexing sources within src/main. Any types defined within the sources can be used by tests within src/test. In other words,
sbt test
works just fine.However, the types defined within src/main are seemingly unnavigable from src/test. If you select Navigate > GoTo (i.e., ⌘-click) on a type defined in the sources, an alert says "Cannot find declaration to go to".
Workaround: If the JS & Native axes are removed from the project matrix, navigation to source files works.
It's unclear whether this is an issue with sbt-projectmatrix or the IntelliJ IDEA Scala plugin. It could also easily be user error (apologies, if so). Please let me know if this is a known issue or there is a more appropriate workaround.
Versions: