my .scalafmt.conf file content is:
version = 3.5.4
Intellij downloaded scalafmt for this version:
but when I want to format file I have error saying literally nothing:
IntelliJ Version:
IntelliJ IDEA 2022.1.1 (Community Edition)
Build #IC-221.5591.52, built on May 10, 2022
Any ideas how to solve this issue ?
thanks
You should explicitly specify runner.dialect
In case of Scala 3 add runner.dialect = scala3
See https://scalameta.org/scalafmt/docs/configuration.html#scala-dialects
As for non-descriptive error message see https://youtrack.jetbrains.com/issue/SCL-20123