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

NoSuchMethodError running release candidate #1206

Closed
aninhumer opened this issue Jun 1, 2018 · 3 comments
Closed

NoSuchMethodError running release candidate #1206

aninhumer opened this issue Jun 1, 2018 · 3 comments
Labels
Milestone

Comments

@aninhumer
Copy link

aninhumer commented Jun 1, 2018

Using versions:

  • sbt version 0.13.16
  • neo-sbt-scalafmt version 1.15 (coursier version sbt-scalafmt-coursier)
  • scalafmt version 1.6.0-RC1 (set in scalafmtVersion sbt setting)

When I run scalafmt like this:

sbt scalafmt

Scalafmt fails with the following error message:

[error] (compile:scalafmt::scalafmtter) com.google.common.util.concurrent.ExecutionError: java.lang.NoSuchMethodError: org.scalafmt.config.Config$.fromHoconString(Ljava/lang/String;Lscala/Option;)Lmetaconfig/Configured;

Using scalafmt version 1.5.1 this does not occur.

@olafurpg olafurpg added the bug label Jun 3, 2018
@olafurpg olafurpg added this to the v1.6.0-RC2 milestone Jun 3, 2018
@olafurpg
Copy link
Member

olafurpg commented Jun 3, 2018

Thanks for reporting! I admit I removed this method too eagerly, it was previously not well documented that only org.scalafmt.Scalafmtis protected by binary compatibility. Docs on integrating with scalafmt as a standalone library are here https://scalameta.org/scalafmt/#Standalonelibrary

Given this is the second ticket on the same issue (see #1204) I think it's best to re-introduce the old method

@olafurpg
Copy link
Member

olafurpg commented Jun 5, 2018

Opened #1212 to fix this issue

@olafurpg
Copy link
Member

olafurpg commented Jun 5, 2018

Note that neo-scalafmt is using internal APIs which are subject to binary and source breaking changes between any release. Docs on using scalafmt as a library can be seen here https://scalameta.org/scalafmt/#Standalonelibrary

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

No branches or pull requests

2 participants