unhelpful error when TASTy version is not compatible #18427
Labels
area:reporting
Error reporting including formatting, implicit suggestions, etc
area:tasty-format
issues relating to TASTy as a portable standard
better-errors
Issues concerned with improving confusing/unhelpful diagnostic messages
itype:bug
Compiler version
3.x
Minimized code
Use cats-effect 3.5 or 3.4 with Scala 3.0.
Output
Expectation
It would be helpful if the error message linked to the currently canonical explanation, which is currently the blog at https://www.scala-lang.org/blog/2022/08/17/long-term-compatibility-plans.html
Even better would be instructions that said plainly that the artifact is not "broken" but I must upgrade the compiler to some version V.
I understand, to some extent, how class files work.
This directive is surprisingly ambiguous:
You mean my compiler version or something that produced the jar file or what?
Wikipedia lists how class file format versions are associated with spec versions, but nothing tells me what tool understands 28.2 tasty.
Noticed at:
https://discord.com/channels/632150470000902164/632628489719382036/1142924560325423246
Although I was specifically testing Scala x Cats versions, it's easy to imagine someone has been happily using Scala 3.n and then wants to try Lib m.p and it breaks obscurely.
The text was updated successfully, but these errors were encountered: