You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Scala: 3
sbt: 1.10.1
sbt-projectmatrix: 0.10.0
IntelliJ IDEA: 2024.2 Beta
The text was updated successfully, but these errors were encountered:
Metals (using SBT BSP) imported project fine and go to definition works, so sbt-projectmatrix doesn't screw with BSP configuration it seems.
Perhaps IntelliJ is making incorrect assumptions on the position of the target folder – not taking that information from the buildtool, but instead using some pre-defined location.
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:
The text was updated successfully, but these errors were encountered: