-
In Tapir I'm using sbt-projectmatrix for cross-building, and many projects are enabled for multiple java versions/platforms. However, in the IDE I'd like to have a specific version+platform combination imported, so that I can work with a given source set etc. Can I do this with metals? I've got:
But still the IDE seems to import the Scala 2 version of the code. Is there some SBT setting which I'm missing? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
There is no way to do it currently and I actually wanted to work on that. I moved #6782 to the repo and will try to figure out a way for it there. The manual way when using Bloop is to do remove the json file corresponding to the targets you don't want to use or there is similar workaround in the compiler https://github.com/scala/scala3/blob/65a53b5d98a84ffbc2b4e7a734639dc64c1a5b39/project/NoBloopExport.scala#L6 When using sbt BSP bspEnabled should be enough. |
Beta Was this translation helpful? Give feedback.
-
So ... there is no way to do it, or |
Beta Was this translation helpful? Give feedback.
-
Btw. this scalacenter/bloop#2446 should make it work with just bspEnabled set |
Beta Was this translation helpful? Give feedback.
Btw. this scalacenter/bloop#2446 should make it work with just bspEnabled set