Replies: 2 comments 2 replies
-
My one consideration is performance. It's not unrealistic to imagine that a single source file in a modern Scala library (sic!) will belong to a combination of:
And if you edit the file and it triggers this matrix of 9 projects re-compiling, that can be problematic. (if they're recompiled in parallel) On the other hand, if my edit breaks the file for even 1 target, I would like to know it (a common scenario was when I was adding Scala 3 to libraries and knowing what cross-compiles and what doesn't was very good). With the nature of things how they are (multi-platform, multi-scala versions, and possibly more axes), I would love if matrix-like projects and their sources were normalised and weren't ignored by Metals. |
Beta Was this translation helpful? Give feedback.
-
A way for the end user to hint to metals what the most relevant one is would be great. |
Beta Was this translation helpful? Give feedback.
-
It is possible for a source file to belong to many build targets (e.g. multiple scala versions have the same sources)/ However, Metals store information about only one build target - see
DependencySources
. BothsetBuildTarget
andgetBuildTarget
methods operates only on a single build target. Because of that:Beta Was this translation helpful? Give feedback.
All reactions