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

Scalafix failing after update do 2.13 #1125

Closed
tomasherman opened this issue May 19, 2020 · 3 comments
Closed

Scalafix failing after update do 2.13 #1125

tomasherman opened this issue May 19, 2020 · 3 comments

Comments

@tomasherman
Copy link

Hello,

when i upgraded my project to scala 2.13, scalafix started failing with some odd errors:

error: error while loading AnyFunSpec, class file '/Users/hermant/Library/Caches/Coursier/v1/https/artifactory.int.avast.com/artifactory/maven/org/scalatest/scalatest_2.13/3.1.2/scalatest_2.13-3.1.2.jar(org/scalatest/funspec/AnyFunSpec.class)' is broken
(class java.lang.RuntimeException/error reading Scala signature of AnyFunSpec.class: Scala signature AnyFunSpec has wrong version
 expected: 5.0
 found: 5.2 in AnyFunSpec.class)

It seems like for some reason scalafix or the compiler expects 5.0 version in signature. Any idea what that might be happening? I was not able to find any proof that my project is using scala 2.12 compiler as suggested by other issues i found related to these errors.

I use the latest scalafix version and scala 2.13.2

@bjaglin
Copy link
Collaborator

bjaglin commented May 19, 2020

Could you you try one of the workaround described in #1116 (which has not been released yet) ?

@jakubjanecek
Copy link

The workaround seems to work.

@tomasherman
Copy link
Author

It seems to be working for me aswell. Thanks. It would be nice if this was documented somewhere - from docs it appears as if 2.13 is supported out of the box. Anyways, thanks again for quick help/resolution

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

No branches or pull requests

3 participants