-
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
java.lang.NoSuchMethodError: fastparse.all$.CharsWhileIn$default$2()I #1200
Comments
Thanks for reporting! Can you check what version of fastparse is in your sbt classpath? Scalameta and scalafmt are on fastparse v1.0.0, which is the latest release. If another plugin is bringing in fastparse v0.4.2 or older then this might be causing problems. |
oh joy (using ensime to generate a build definition file to debug this...)
looks like sbt itself depends on fastparse. And it is not shading it... |
Looks like zinc needs to update it's ScalaPB dependency, in sbt/zinc
Reported in sbt/zinc#546 |
I guess there will be no scalafmt or scalafix in sbt for a while then... |
Not sure if this works, but worth a try in
|
ScalaPB uses fastparse to parse text format protobuf messages, which zinc does not use so this should be safe |
that doesn't work because the groupId is wrong... it's renamed to But since it's the boot jars, that might not work either... |
Ticket moved to scalameta/scalameta#1573 seems better to fix it on our front instead of waiting for sbt 2. |
Is there a short-term work-around for this? |
I've been trying to convince @olafurpg to just shade or fork fastparse 😛 |
Forking won't happen. I'm not aware of any user land workaround except to
the the command line interface or IntelliJ plugin.
…On Thu, 31 May 2018 at 18:19, Sam Halliday ***@***.***> wrote:
I've been trying to convince @olafurpg <https://github.com/olafurpg> to
just shade or fork fastparse 😛
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1200 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABV8XQo_TlZwNtBn7WRB_gPFyYgQ8GVzks5t4BfygaJpZM4URMTt>
.
|
I ended up just excluding the problematic source file |
or just downgrade your version to that used by sbt... |
Besides the migration cost to downgrade, that would be a breaking change force all scalameta users on a ~2 year old dependency of fastparse. |
scalameta users should all be scala tooling authors, who'll almost certainly have to deal with the sbt storm anyway... |
I've been convinced that it is a good idea to shade sbt-scalafmt dependencies to avoid binary conflicts with sbt/zinc and other sbt plugins. |
Just merged #1218 where I added a new module |
sbt-scalafmt v1.6.0-RC3 is out with a shaded version of fastparse and scalameta. Please let me know if this issue has been resolved :) |
Got a confirmation in #1218 (comment) that this issue has been fixed. Please reopen if you encounter binary incompatibilities in sbt! |
in 1.6.0-RC1 I'm getting this...
I figure this is a configuration / dependency version problem that can probably be eyeballed and creating a minimisation would be a lot of work for little benefit.
The text was updated successfully, but these errors were encountered: