-
Notifications
You must be signed in to change notification settings - Fork 459
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
Add support for scalafmt >= v0.7.0-RC1 #124
Conversation
Hi @alexvetter, thanks for the PR! Would you kindly run |
Hi @jbduncan! Sorry, my bad. It should have been obvious to run |
No worries! Thanks for doing it so quickly. :) |
|
||
Object configured = fromHocon.invoke(null, configStr, fromHoconEmptyPath); | ||
either = invokeNoArg(configured, "toEither"); | ||
} catch (Exception e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm... is it possible to reduce the scope from Exception
to a specific subclass?
|
Thanks @alexvetter! Unless @nedtwigg has anything else to say, this would probably be safe to merge in. @nedtwigg, do you have any thoughts? |
LGTM, thanks for the contribution! I'll be turning the release crank shortly. |
Released in 3.4.1 |
Thanks, that was fast! |
In scalafmt v0.7.0-RC1 the configuration API has been changed a little bit. This PR adds a pourman's switch (
try... catch...
) to support both older and new versions.