So Pants' Scala support seems to use Scalameta to ...
# general
l
So Pants' Scala support seems to use Scalameta to do dependency inference
l
https://www.pantsbuild.org/docs/reference-scalafmt You can configure the version in your
pants.toml
l
That's for Scalafmt though, not for ScalaMeta, right?
l
Is it not a artifact of scalafmt? And can be configured via the
artifacts
field. Sorry I have no clue about scala. Just checked the pants doc.
l
Scalafmt is a code formatter, ScalaMeta is a Scala library to parse Scala code
Simply updating ScalaMeta might fix the
fewerBraces
problem (assuming ScalaMeta is binary compatible), but it's not going to fix the enum problem.
I think I've figured out the cause of the
enum
problem. in
ScalaParser.scala
there's a big-ass
match
expression that does things for all the symbols you can declare in a Scala program, like traits, classes, objects, vals, defs etc.
But the case for enum is missing.