Common Errors: Scalafmt
Pat Brisbin edited this page Jul 18, 2023
·
1 revision
org.scalafmt.cli.FailedToFormat: /code/.scalafmt.conf
Caused by: org.scalafmt.interfaces.ScalafmtException: [...] failed to download
If the version of scalafmt
doesn't match the version
key in .scalafmt.conf
, it will dynamically download the correct version. This behavior cannot be disabled. We don't allow restylers to make network requests, so that attempt fails with the above error.
You can either change your version
configuration to match our image, or use a different image that is the correct version through a Restyler Override. You can see what images are available on on Docker Hub.
- Getting Started
- What to Expect
- Supported Languages
- Configuring
- Excluding Files
- Disabling
- Common Errors
- Reference
- Development
- Policies