Closed mdedetrich closed 4 months ago
@mdedetrich where is this syntax defined as valid (i.e., specifying multiple enumerators without semicolons within parens)? i tried it in scastie, and the compiler complains: https://scastie.scala-lang.org/BzMsTlvTQsOIY6dG3ITRSA
my earlier fix for your reported problem is causing a regression: scalameta/scalameta#3715.
ok, looks like this is a matter of incorrect bug report :(
your code DOES have the semicolon: https://github.com/slick/slick/blob/main/doc/code/SqlToSlick.scala#L280
Configuration (required)
Please paste the contents of your
.scalafmt.conf
file here:Command-line parameters (required)
When I run scalafmt via CLI like this:
scalafmt
Steps
Given code like this:
Problem
Scalafmt fails with
Expectation
I would expect scalafmt to not fail
Workaround
Turning the formatting off with
// format: off
worksNotes
Changing the dialect with different dialects using
fileOverride { "glob:**/doc/**.scala" = scala212 }
doesn't have any effect, so it seems unrelated to dialect.See original PR at https://github.com/slick/slick/pull/2909