-
Notifications
You must be signed in to change notification settings - Fork 277
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
Config loader methods removed in 1.6.0-RC1 #1204
Comments
Hei, thanks for reporting and thanks for spotless :) It's a great project. The library compatibility story is that only
The website contains examples how to load configuration this API https://scalameta.org/scalafmt/#Standalonelibrary I'm sorry for the change, I was not aware this method was being used. |
FYI @nedtwigg I opened #1212 to add back the |
Dunno if or when migating to |
That's totally fair, I'll be sure to keep the old method around 😉 |
FYI v1.6.0-RC2 is out https://github.com/scalameta/scalafmt/releases/tag/v1.6.0-RC2 Please let me know if that fixes the issue. |
@joan38 can you check that |
I will do tomorrow when I have access to a laptop. |
It didn't work at the end. Not sure why. |
@joan38 what is the error? I don't see what the problem is in the linked Spotless PR 🤔 |
Problem
Up until
0.6.8
, you could load configuration withorg.scalafmt.config.Config::fromHocon
. From then until1.6.0-rc1
, you could useorg.scalafmt.config.Config::fromHoconString
. It seems these methods have been removed in1.6.0-rc1
, which causes breakage in downstream projects:diffplug/spotless#252
Expectation
The transition from
1.5
to1.6
won't have breaking API changes.Workaround
We can find the new method names, and use those. Not a big deal :)
The text was updated successfully, but these errors were encountered: