Hello Everyone
I cannot get the scala-cli fmt with .scalafmt.conf file working correctly … I have …
$ scala-cli --version
Scala CLI version 1.3.2
Scala version (default):3.4.2
I have two files in a test directory
- An empty Test.scala file.
- .scalafmt.conf (simplified to try and isolate problem) which is this…
version = “3.8.0”
project.git = true
runner.dialect = scala3
rewrite.scala3.convertToNewSyntax = true
runner.dialectOverride.withAllowToplevelTerms = true
project.excludeFilters = [ “.*/build\.sc” ]
At a command prompt in the test directory I do …
scala-cli fmt Test.scala
… I get …
scala.meta.Dialect.withAllowToplevelTerms(boolean)
… which I believe is “Error 8”.
Also a new directory is created “.scala-build” containing a copy of .scalafmt.conf
I get the same problem with “proper scala files”, so I don’t think the empty test file is relevant. I get the same problem with other “runner.dialectOverride options”.
Q1) Are there any debugging techniques I can use to find my problem ?
Q2) Does anyone have an example .scalafmt.conf file that might help me ?
Q3) Any other suggestions ?