-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Unknown -language
option yields an error
#20419
Comments
We should make a decision what behaviour we want for this kind of flags. |
As a warning,
|
@noti0na1 agreed, we'll discuss this behaviour on the next core meeting. |
In the last OpenCB there are 434 failures, seems like all of this failures are caused by |
@noti0na1
|
@Gedochao Do we also accept |
Fix #20419 * Accept legacy language features (from Scala 2), * For other unknown features, it will still fail.
Before 3.5 passing
-language:higherKinds
was simply ignored without any mesage, now, it's yielding a compilation error. This conflicts with handling of other unknown scalac options, which emit warnings.The new behaviour is problematic when project use utilities to set common
scalacOptions
like https://github.com/typelevel/sbt-tpolecat - it requires to modify the upstream project and release it or to introduce a special exclusion rules in the build.Compiler version
Last good release: 3.5.0-RC1-bin-20240512-99c4c00-NIGHTLY
First bad release: 3.5.0-RC1-bin-20240514-7c9aae3-NIGHTLY
Bisect points to: f6345c6
Minimized code
Output
Expectation
Unknown variant of option should yield warning instead of error.
The text was updated successfully, but these errors were encountered: