-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow multiple build targets for cross built project #2287
Comments
Is there any progress on this? Currently working on projects that use 2.X and 3.X macros (via cross compile) is reminding me of the old days when I used vim and gcc ;) |
@froth no progress currently, but using project-matrix can work around it. |
Thanks, for the info. I will have a look if project-matrix makes my life easier :) |
Must I modify my |
I guess I can go to the Metals tab, click on "Terminal", then run If there's a better way, lmk. |
For sbt that's probably the best way, we would need an additional endpoint for BSP to change it on the fly 🤔 |
Describe the bug
Currently when a workspace is imported in sbt we only support one scala version, which might be problematic if we use different sources for each scala version. This becomes especially important for Scala 3, which can differ much from the Scala 2 code. In Metals we did a workaround by creating an additional non-publishable module. This however should not be needed.
We should be able to fix it possibly by:
sbt +bloopInstall
in case cross plugin is detected in the workspace (we could also make it an optional command)To Reproduce
Steps to reproduce the behavior:
Expected behavior
Metals works in all sources in the workspace.
Installation:
Additional context
This came up as a follow up to scalacenter/scala-3-migration-guide#111
Search terms
cross build targets
The text was updated successfully, but these errors were encountered: