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

Compatibility with sbt 1.2.8 and earlier #92

Closed
rtimush opened this issue Apr 10, 2020 · 1 comment · Fixed by #93
Closed

Compatibility with sbt 1.2.8 and earlier #92

rtimush opened this issue Apr 10, 2020 · 1 comment · Fixed by #93

Comments

@rtimush
Copy link

rtimush commented Apr 10, 2020

Hi,

The latest sbt-scalafmt release (2.3.3) doesn't work with sbt 1.2.8 and earlier anymore, because of sbt/sbt#5049:

sbt:scalafmt-test> scalafmtAll
[error] java.lang.NoSuchMethodError: sbt.package$.singleFileJsonFormatter()Lsjsonnew/JsonFormat;
[error] 	at org.scalafmt.sbt.ScalafmtPlugin$ScalafmtAnalysis$.<init>(ScalafmtPlugin.scala:68)
[error] 	at org.scalafmt.sbt.ScalafmtPlugin$ScalafmtAnalysis$.<clinit>(ScalafmtPlugin.scala)
[error] 	at org.scalafmt.sbt.ScalafmtPlugin$.trackSourcesAndConfig(ScalafmtPlugin.scala:259)
...

The simplest fix would be to revert #89.

@poslegm
Copy link
Collaborator

poslegm commented Apr 10, 2020

Sorry for this confusion. I will cut 2.3.4 with fix ASAP

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

Successfully merging a pull request may close this issue.

2 participants