Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show scalafmt configuration errors #837

Closed
loveleif opened this issue Apr 8, 2021 · 1 comment · Fixed by #836
Closed

Show scalafmt configuration errors #837

loveleif opened this issue Apr 8, 2021 · 1 comment · Fixed by #836

Comments

@loveleif
Copy link
Contributor

loveleif commented Apr 8, 2021

Errors in scalafmt configuration files cause an exception in spotless that does does not contain any information about what went wrong. Scalafmt provides this information and this is a request to bubble it up in spotless.

For example, a scalafmt configuration that contains an invalid field will result in an exception in spotless like this:

java.lang.reflect.InvocationTargetException
   ...
Caused by: java.util.NoSuchElementException: Either.right.value on Left
   at scala.util.Either$RightProjection.get(Either.scala:453
   ...
@nedtwigg
Copy link
Member

Released in plugin-maven 2.10.0 and plugin-gradle 5.12.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants