-
Notifications
You must be signed in to change notification settings - Fork 278
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
2.3.3-RC1 always crashes with "classpath is corrupted" #1628
Comments
As a follow-up: I cleaned out my coursier cache and tried again. I also tried limiting concurrency like in #1399 and only running on a single project. None of it helped :( |
@adampauls Thank you for reporting! Which version of sbt scalafmt are you using? |
@tanishiking It reproduces with Intellij integration. So I guess that it is not sbt-scalafmt problem |
Thanks for your input!. But, it might be better to emit the original error message of
|
Without this implementation, the reporter discard the error information of the `cause` like [CorruptedClassPath](https://github.com/scalameta/scalafmt/blob/dee798a99e16dcf32fea37cdc05d694b76647ada/scalafmt-dynamic/src/main/scala/org/scalafmt/dynamic/ScalafmtDynamic.scala#L96) scalameta/scalafmt#1628
I was using sbt-scalafmt 2.0.2. I just tried upgrading to 2.3.0 (sorry, I forgot that was an option), but that did not resolve the issue. |
@tanishiking now that you've merged the |
I just cut a new release of sbt-scalafmt v2.3.1, which will show an additional error message for that error. @kitbellew
I think we can release 2.3.3 without fixing this :) , because
Anyway, I hope we can figure out the root problem of this problem... |
ah, that's great to hear. p.s. by the way, what is the process of releasing (apart from tagging a commit)? |
I tried downloading v2.3.1 of the plugin, but I don't think it's available yet. That said, I want to make clear that the issue does seem to be specific to 2.3.3, even if the bug is in the plugin and not scalafmt itself. Every other version that I've tried works fine for me. |
@adampauls have you tried sbt-scalafmt 2.2.1 with formatter 2.3.3-RC2? does sbt-scalafmt 2.3.0 work with formatter 2.3.2 or earlier, for you? also, how does one specify for a given sbt-scalafmt instance which scalafmt library version should be used? is it just through the config file and dynamic loading? |
Oops, sorry I misunderstood the problem. This phenomenon is reproduced even in my environment. If we try to use piece of stacktrace from cli
We have to fix this before cutting a new release (2.3.3), but I'm not sure what causes this... @adampauls
|
@tanishiking is it possible that i "cut" the two rc releases incorrectly? i didn't do the "releases/new", simply tagged the repo as olafur once suggested. |
@tanishiking i will fix shortly. the problem you saw is from 117477b |
It may be related: https://issues.sonatype.org/browse/OSSRH-34782 |
Create a new, package-private method .formatCode with the implementation based on the existing .format. Make sure not to modify the existing interfaces of .format overloads, as they are externally expected (via reflection). Fixes scalameta#1628.
Create a new, package-private method .formatCode with the implementation based on the existing .format. Make sure not to modify the existing interfaces of .format overloads, as they are externally expected (via reflection). Fixes scalameta#1628.
Create a new, package-private method .formatCode with the implementation based on the existing .format. Make sure not to modify the existing interfaces of .format overloads, as they are externally expected (via reflection). Fixes #1628.
@adampauls |
I tried upgrading to 2.3.3-RC1 and I always get
[error] scalafmt version 2.3.3-RC1 classpath is corrupted
I've tried running
sbt clean update
and that did not help. This issue is not present with 2.3.2 so I do not believe it is my setup.Thanks for the great tool, looking forward to using 2.3.3!
My configuration is:
The text was updated successfully, but these errors were encountered: