-
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
Unactionable warning: "Given search preference for ... will change." #22153
Comments
I don't juggle implicits, but I appreciate the need to make warnings progressive and useful. I think this warning has the force of deprecation. In this case, trivially, it should "I spent hours getting my house of implicit cards just right and you broke it" is more annoying. Lukas invented m-w.com has synonyms for actionable: functional, applicative, pragmatic. |
Yes, in functional programming it's entirely conceivable, even pragmatic to define a tower of typeclasses like functor, apply, applicable, and monad. The change to summon the closest type like
At least in this context, of JsonReader vs JsonFormat I'm not too concerned which one gets picked, but what I do care about is summoning the right typeclass, in this case JsonReader.
I'd love to not take action, but with
I just discovered https://scala-lang.org/2024/08/19/given-priority-change-3.7.html from reading https://scala-lang.org/news/3.6.2, and it seems like I can take one of the tree actions:
If we put in numbers to error messages, we could do |
Here's my PR for this - #22189 |
Compiler version
3.6.4-RC1-bin-20241204-a67dbb0-NIGHTLY
Minimized code
You can grab sbt/sbt develop branch
fdc03b782a40ce1f04bcefcd7eb3dc45fa7927d0
.I'm guessing that the minimized repro is basically https://github.com/scala/scala3/blob/c61897d7e78bfea283f5a2e37215c3b528e7684f/tests/warn/i21036a.scala
Output
Currently the compile fails because I have
-Xfatal-warnings
and there's a warning about a given search:Expectation
I expect all warnings to be actionable. This type of "FYI" message should go into the release note or
-Xmigration 3.5.0
.The text was updated successfully, but these errors were encountered: