-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Command line option aliases ("abbreviations") not understood by scalac #10810
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
Comments
This is particularly important, because recently the semanticdb flag was changed from Please, let us know when something might change that is related either to Metals or syntax, as it would help us avoid any kind of surprise as we had with the 3.0.0-M3 release. |
Also hit this in MiMa, where I found |
@tgodzik the best way to avoid regressions like this would be to get metals in our community build: https://github.com/lampepfl/dotty/tree/master/community-build, it's a bit trickier than other projects since I assume only some of the subprojects can be compiled with dotty and the rest have to be compiled with scala 2 due to dependencies on scalameta, but it should be doable. |
We've been actually talking with @romanowski about it and we would also need to at least run a subset of tests related to Scala 3. We'll probably look into it next year. |
I take full blame for this one. I apologize for how it happened. I was the one to perform the changes, and blindly trusted the abbreviation mechanism not to break tools, including Metals. Then I didn't make a particular effort to communicate the change nor to make sure it appeared in the release notes. I'm sorry. |
We gave misleading diagnostic before in the case where no extension method was found since a TypeError was thrown.
We gave misleading diagnostic before in the case where no extension method was found since a TypeError was thrown.
fix #10810: pass aliases to setting constructor
We gave misleading diagnostic before in the case where no extension method was found since a TypeError was thrown.
The aliases ("abbreviations") given to command line options in
dotty/compiler/src/dotty/tools/dotc/config/ScalaSettings.scala
bywithAbbreviation
do not appear to be understood when specified on the command line.I believe this is the cause of the community build test failures in #10733.
This also means that any such aliases added for backward compatibility as part of the recent compiler flags cleanup (#10236) may not be functional.
A couple of examples:
https://github.com/lampepfl/dotty/blob/bbd092b7f6ceeb7959e304a16219a040a4db1001/compiler/src/dotty/tools/dotc/config/ScalaSettings.scala#L27
https://github.com/lampepfl/dotty/blob/bbd092b7f6ceeb7959e304a16219a040a4db1001/compiler/src/dotty/tools/dotc/config/ScalaSettings.scala#L103
The text was updated successfully, but these errors were encountered: