-
Notifications
You must be signed in to change notification settings - Fork 185
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
SBT scalafix does not work #38
Comments
Thank you for reporting! I am able to reproduce on the 0.2.1 release but not on master branch. I added several new tests in #39 while trying to track down the issue but still no luck. Weird, maybe I botchered the 0.2.1 release. I just published 0.2.2-RC1 to see if the release process is the culprit. |
I am not able to reproduce the issue on 0.2.2-RC1. If you can confirm this is also the case for you, then I will go ahead and publish it as 0.2.2. |
I can still reproduce the issue in 0.2.2-RC1 as follows:
|
This is weird, I can reproduce the error on a clean ivy cache but not after I've published the library locally. That explains why CI is green but the sbt plugin still doesn't work. The biggest surprise to me is that the It's been a real challenge to cross-build the core to 2.11/12 while keeping the sbt plugin 2.10 only. |
It may have to do with the jar being published for 2.11 instead of 2.10. Mine is for example published here: |
Can you try with |
I tried with 0.2.2-RC3 (not 0.2.0-RC3) and it all works great. Yes, I had added earlier the -Xplugin: setting manually during sbt session to unblock myself. Note that in addition to Would it be simpler if as part of the sbt setup instructions we also had: |
Awesome! Yes, good catch, I meant 0.2.2-RC3.
That wouldn't necessarily help since scalafix-nsc is a compiler plugin, which are treated by sbt in a special way. I tried I'll go ahead and publish 0.2.2 then! |
Upgrade to v0.9.3
…serving import group (scalacenter#38)
With the following steps the sbt-test fails for me, not sure what I am doing wrong?
Output:
[error] p1/src/test/scala/Test.scala
[error] File: p1/src/test/scala/Test.scala
[error] Obtained output:
[error] object TestMain {
[error] implicit val x = 2
[error] lazy val y = 2
[error] def main(args: Array[String]) {
[error] println("hello")
[error] }
[error] }
[error] Expected:
[error] object TestMain {
[error] implicit val x: Int = 2
[error] lazy val y = 2
[error] def main(args: Array[String]): Unit = {
[error] println("hello")
[error] }
[error] }
...
The text was updated successfully, but these errors were encountered: