Skip to content

Formatting doesn't work for sbt files #4193

@mihaisoloi

Description

@mihaisoloi

Version(s)
1.12.4

Describe the bug
scalafmt formats the sbt file just fine

To Reproduce

❯ scala-cli fmt build.sbt
[error]  build.sbt: unrecognized source type (expected .scala or .sc extension, or a directory).
If build.sbt is meant to be treated as a script, add a shebang header in its top line.
  #!/usr/bin/env -S scala-cli shebang
When a shebang header is provided, the script can then be run with the 'shebang' sub-command, even if no file extension is present.
  scala-cli shebang build.sbt

Expected behaviour
I'm expecting to have the sbt file formatted, or if it's not supported to be mentioned somewhere

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestfmtIssues tied to the fmt sub-command

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions