-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Non-descriptive errors #1622
Comments
Thanks for reporting! I guess this comes from https://github.com/openjdk/jdk/blob/9a9add8825a040565051a09010b29b099c2e7d49/jdk/src/share/classes/java/util/ServiceLoader.java#L309 (Java 8, exact wording changed starting Java 9). Is there something special with the scalafix dependencies (community rules) or your JVM? Removing exception wrapping in https://github.com/scalacenter/sbt-scalafix/blob/d1abcb1defcde78b9bb03d3dae7870dddfb98229/src/main/scala/scalafix/internal/sbt/ScalafixInterface.scala#L117 exposes the most likely silenced trace:
|
The latest sbt-scalafix snapshot should give you a stack trace // project/plugins.sbt
-addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.10.0")
+addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.10.1+4-22433065-SNAPSHOT")
+resolvers += Resolver.sonatypeRepo("snapshots") Can you try it out on your build so we can see what we could do in scalafix itself? |
i think the jar with rules was broken somehow, can't reproduce right now |
When running scalafix via sbt i get
(Compile / scalafix) scalafix.sbt.InvalidArgument: scalafix.v1.Rule: Error reading configuration file
with no explanation what is wrong or even a stacktrace.sbt-scalafix 0.10.1
The text was updated successfully, but these errors were encountered: