Skip to content
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

Fix repeatable compiler options handling from the command line #2666

Merged

Conversation

Gedochao
Copy link
Contributor

Fixes #2653

Repeatable compiler options (-P:*:* and -Xplugin:*, specifically) were being filtered out on some code paths.
This was happening as we do treat them differently, as they can't be shadowed. We have special handling for compiler options with keys which can be passed multiple times, as those cannot be overridden from the CLI when they're also being declared in a using directive.

@sequencer This may already be enough to cover your usecase from #2621. It still doesn't seem to work correctly with Bloop, but I can no longer replicate the problem with --server=false (although it may be more complicated in your mill build, so let's verify it after this gets merged).

@Gedochao Gedochao merged commit 077dbad into VirtusLab:main Jan 12, 2024
58 checks passed
@Gedochao Gedochao deleted the maintenance/compiler-plugin-related-fixes branch January 12, 2024 14:00
@sequencer
Copy link

Thank you @Gedochao, is possible to release a new minor version of scala-cli for this bug fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

scalac -P option is not passed to scalac from the CLI
3 participants