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

launching scalafmt trouble: Could not initialize class scala.meta.package$ #943

Closed
ScalaWilliamTeralytics opened this Issue May 25, 2017 · 20 comments

Comments

Projects
None yet
5 participants
@ScalaWilliamTeralytics

OS: macOS Sierra 10.12.4 (16E195)

Based on instructions on http://scalameta.org/scalafmt/

Expected that it'd run and not throw exceptions.

It worked on another machine of mine and there's not much difference from this one.

Running in local user:

Williams-MBP:~ william$ curl -L -o coursier https://git.io/vgvpD && chmod +x coursier && ./coursier --help
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100   122  100   122    0     0     54      0  0:00:02  0:00:02 --:--:--  119k
100   133  100   133    0     0     52      0  0:00:02  0:00:02 --:--:--    52
100 11814  100 11814    0     0   4189      0  0:00:02  0:00:02 --:--:--  4189
Coursier 1.0.0-RC3
Usage: coursier [options] [command] [command-options]

Available commands: bootstrap, fetch, launch, resolve, spark-submit

Type  coursier command --help  for help on an individual command
Williams-MBP:~ william$ ./coursier bootstrap com.geirsson:scalafmt-cli_2.11:0.7.0-RC1 --main org.scalafmt.cli.Cli -o scalafmt
https://repo1.maven.org/maven2/com/geirsson/scalafmt-cli_2.11/0.7.0-RC1/scalafmt-cli_2.11-0.7.0-RC1.pom
  100.0% [##########] 2.4 KiB (2.0 KiB / s)
https://repo1.maven.org/maven2/com/github/scopt/scopt_2.11/3.5.0/scopt_2.11-3.5.0.pom
  100.0% [##########] 1.6 KiB (7.6 KiB / s)
https://repo1.maven.org/maven2/com/geirsson/scalafmt-core_2.11/0.7.0-RC1/scalafmt-core_2.11-0.7.0-RC1.pom
  100.0% [##########] 2.3 KiB (12.0 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/scalameta_2.11/1.7.0/scalameta_2.11-1.7.0.pom
  100.0% [##########] 3.9 KiB (6.8 KiB / s)
https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.11.11/scala-library-2.11.11.pom
  100.0% [##########] 1.4 KiB (7.3 KiB / s)
https://repo1.maven.org/maven2/com/martiansoftware/nailgun-server/0.9.1/nailgun-server-0.9.1.pom
  100.0% [##########] 1.6 KiB (2.0 KiB / s)
https://repo1.maven.org/maven2/com/martiansoftware/nailgun-all/0.9.1/nailgun-all-0.9.1.pom
  100.0% [##########] 4.9 KiB (26.2 KiB / s)
https://repo1.maven.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
  100.0% [##########] 4.7 KiB (24.7 KiB / s)
https://repo1.maven.org/maven2/com/geirsson/metaconfig-core_2.11/0.3.2/metaconfig-core_2.11-0.3.2.pom
  100.0% [##########] 2.6 KiB (13.2 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/parsers_2.11/1.7.0/parsers_2.11-1.7.0.pom
  100.0% [##########] 3.3 KiB (17.4 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/common_2.11/1.7.0/common_2.11-1.7.0.pom
  100.0% [##########] 2.7 KiB (13.4 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/semantic_2.11/1.7.0/semantic_2.11-1.7.0.pom
  100.0% [##########] 2.8 KiB (15.4 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/dialects_2.11/1.7.0/dialects_2.11-1.7.0.pom
  100.0% [##########] 2.7 KiB (13.5 KiB / s)
https://repo1.maven.org/maven2/com/geirsson/metaconfig-typesafe-config_2.11/0.3.2/metaconfig-typesafe-config_2.11-0.3.2.pom
  100.0% [##########] 2.8 KiB (14.9 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/transversers_2.11/1.7.0/transversers_2.11-1.7.0.pom
  100.0% [##########] 2.9 KiB (16.1 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/trees_2.11/1.7.0/trees_2.11-1.7.0.pom
  100.0% [##########] 3.4 KiB (18.2 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/tokenizers_2.11/1.7.0/tokenizers_2.11-1.7.0.pom
  100.0% [##########] 3.4 KiB (18.8 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/inline_2.11/1.7.0/inline_2.11-1.7.0.pom
  100.0% [##########] 2.5 KiB (13.7 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/quasiquotes_2.11/1.7.0/quasiquotes_2.11-1.7.0.pom
  100.0% [##########] 3.6 KiB (19.4 KiB / s)
https://repo1.maven.org/maven2/com/lihaoyi/scalaparse_2.11/0.4.2/scalaparse_2.11-0.4.2.pom
  100.0% [##########] 2.5 KiB (13.7 KiB / s)
https://repo1.maven.org/maven2/com/trueaccord/scalapb/scalapb-runtime_2.11/0.6.0-pre2/scalapb-runtime_2.11-0.6.0-pre2.pom
  100.0% [##########] 2.6 KiB (13.9 KiB / s)
https://repo1.maven.org/maven2/com/typesafe/config/1.2.1/config-1.2.1.pom
  100.0% [##########] 1.8 KiB (9.5 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/inputs_2.11/1.8.0/inputs_2.11-1.8.0.pom
  100.0% [##########] 2.9 KiB (15.6 KiB / s)
https://repo1.maven.org/maven2/com/lihaoyi/sourcecode_2.11/0.1.3/sourcecode_2.11-0.1.3.pom
  100.0% [##########] 1.8 KiB (8.9 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/tokens_2.11/1.7.0/tokens_2.11-1.7.0.pom
  100.0% [##########] 3.1 KiB (16.9 KiB / s)
https://repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.2.0/protobuf-java-3.2.0.pom
  100.0% [##########] 4.6 KiB (24.9 KiB / s)
https://repo1.maven.org/maven2/com/lihaoyi/fastparse_2.11/0.4.2/fastparse_2.11-0.4.2.pom
  100.0% [##########] 2.5 KiB (13.5 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/io_2.11/1.8.0/io_2.11-1.8.0.pom
  100.0% [##########] 2.5 KiB (13.2 KiB / s)
https://repo1.maven.org/maven2/com/trueaccord/lenses/lenses_2.11/0.4.10/lenses_2.11-0.4.10.pom
  100.0% [##########] 1.8 KiB (9.3 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/common_2.11/1.8.0/common_2.11-1.8.0.pom
  100.0% [##########] 2.7 KiB (13.6 KiB / s)
https://repo1.maven.org/maven2/com/google/protobuf/protobuf-parent/3.2.0/protobuf-parent-3.2.0.pom
  100.0% [##########] 6.7 KiB (36.3 KiB / s)
https://repo1.maven.org/maven2/com/google/google/1/google-1.pom
  100.0% [##########] 1.5 KiB (8.2 KiB / s)
https://repo1.maven.org/maven2/com/lihaoyi/fastparse-utils_2.11/0.4.2/fastparse-utils_2.11-0.4.2.pom
  100.0% [##########] 2.3 KiB (13.0 KiB / s)
Williams-MBP:~ william$ cd some-dir
Williams-MBP:some-dir william$ ../scalafmt 
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class scala.meta.package$
    0.0%at org.scalafmt.Scalafmt$.format(Scalafmt.scala:47)
        at org.scalafmt.cli.Cli$.org$scalafmt$cli$Cli$$handleFile(Cli.scala:144)
        at org.scalafmt.cli.Cli$$anonfun$runFormat$1.apply(Cli.scala:220)
        at org.scalafmt.cli.Cli$$anonfun$runFormat$1.apply(Cli.scala:218)
        at scala.collection.Iterator$class.foreach(Iterator.scala:891)
        at scala.collection.AbstractIterator.foreach(Iterator.scala:1334)
        at scala.collection.parallel.ParIterableLike$Foreach.leaf(ParIterableLike.scala:972)
        at scala.collection.parallel.Task$$anonfun$tryLeaf$1.apply$mcV$sp(Tasks.scala:49)
        at scala.collection.parallel.Task$$anonfun$tryLeaf$1.apply(Tasks.scala:48)
        at scala.collection.parallel.Task$$anonfun$tryLeaf$1.apply(Tasks.scala:48)
        at scala.collection.parallel.Task$class.tryLeaf(Tasks.scala:51)
        at scala.collection.parallel.ParIterableLike$Foreach.tryLeaf(ParIterableLike.scala:969)
        at scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask$class.internal(Tasks.scala:159)
        at scala.collection.parallel.AdaptiveWorkStealingForkJoinTasks$WrappedTask.internal(Tasks.scala:443)
        at scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask$class.compute(Tasks.scala:149)
        at scala.collection.parallel.AdaptiveWorkStealingForkJoinTasks$WrappedTask.compute(Tasks.scala:443)
        at scala.concurrent.forkjoin.RecursiveAction.exec(RecursiveAction.java:160)
        at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
        at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
        at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
        at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
Williams-MBP:somedir william$ cd ..

Trying to install system-wide

Williams-MBP:~ william$ sudo ./coursier bootstrap --standalone com.geirsson:scalafmt-cli_2.12:0.7.0-RC1 -o /usr/local/bin/scalafmt -f --main org.scalafmt.cli.Cli
Password:
https://repo1.maven.org/maven2/com/geirsson/scalafmt-cli_2.12/0.7.0-RC1/scalafmt-cli_2.12-0.7.0-RC1.pom
  100.0% [##########] 2.4 KiB (3.2 KiB / s)
https://repo1.maven.org/maven2/com/geirsson/scalafmt-core_2.12/0.7.0-RC1/scalafmt-core_2.12-0.7.0-RC1.pom
  100.0% [##########] 2.3 KiB (12.5 KiB / s)
https://repo1.maven.org/maven2/com/github/scopt/scopt_2.12/3.5.0/scopt_2.12-3.5.0.pom
  100.0% [##########] 1.6 KiB (8.2 KiB / s)
https://repo1.maven.org/maven2/com/martiansoftware/nailgun-server/0.9.1/nailgun-server-0.9.1.pom
  100.0% [##########] 1.6 KiB (2.2 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/scalameta_2.12/1.7.0/scalameta_2.12-1.7.0.pom
  100.0% [##########] 3.8 KiB (5.3 KiB / s)
https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.12.2/scala-library-2.12.2.pom
  100.0% [##########] 1.5 KiB (2.1 KiB / s)
https://repo1.maven.org/maven2/com/martiansoftware/nailgun-all/0.9.1/nailgun-all-0.9.1.pom
  100.0% [##########] 4.9 KiB (24.4 KiB / s)
https://repo1.maven.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
  100.0% [##########] 4.7 KiB (25.2 KiB / s)
https://repo1.maven.org/maven2/com/geirsson/metaconfig-typesafe-config_2.12/0.3.2/metaconfig-typesafe-config_2.12-0.3.2.pom
  100.0% [##########] 2.8 KiB (15.1 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/common_2.12/1.7.0/common_2.12-1.7.0.pom
  100.0% [##########] 2.7 KiB (14.6 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/transversers_2.12/1.7.0/transversers_2.12-1.7.0.pom
  100.0% [##########] 2.9 KiB (16.1 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/tokenizers_2.12/1.7.0/tokenizers_2.12-1.7.0.pom
  100.0% [##########] 3.4 KiB (19.2 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/trees_2.12/1.7.0/trees_2.12-1.7.0.pom
  100.0% [##########] 3.4 KiB (17.1 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/semantic_2.12/1.7.0/semantic_2.12-1.7.0.pom
  100.0% [##########] 2.8 KiB (15.4 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/dialects_2.12/1.7.0/dialects_2.12-1.7.0.pom
  100.0% [##########] 2.7 KiB (14.1 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/inline_2.12/1.7.0/inline_2.12-1.7.0.pom
  100.0% [##########] 2.5 KiB (12.3 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/parsers_2.12/1.7.0/parsers_2.12-1.7.0.pom
  100.0% [##########] 3.3 KiB (19.2 KiB / s)
https://repo1.maven.org/maven2/com/geirsson/metaconfig-core_2.12/0.3.2/metaconfig-core_2.12-0.3.2.pom
  100.0% [##########] 2.6 KiB (13.9 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/quasiquotes_2.12/1.7.0/quasiquotes_2.12-1.7.0.pom
  100.0% [##########] 3.6 KiB (19.8 KiB / s)
https://repo1.maven.org/maven2/com/lihaoyi/sourcecode_2.12/0.1.3/sourcecode_2.12-0.1.3.pom
  100.0% [##########] 1.8 KiB (9.4 KiB / s)
https://repo1.maven.org/maven2/com/typesafe/config/1.2.1/config-1.2.1.pom
  100.0% [##########] 1.8 KiB (8.9 KiB / s)
https://repo1.maven.org/maven2/com/trueaccord/scalapb/scalapb-runtime_2.12/0.6.0-pre2/scalapb-runtime_2.12-0.6.0-pre2.pom
  100.0% [##########] 2.6 KiB (13.5 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/inputs_2.12/1.8.0/inputs_2.12-1.8.0.pom
  100.0% [##########] 2.9 KiB (15.1 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/tokens_2.12/1.7.0/tokens_2.12-1.7.0.pom
  100.0% [##########] 3.1 KiB (16.2 KiB / s)
https://repo1.maven.org/maven2/com/lihaoyi/scalaparse_2.12/0.4.2/scalaparse_2.12-0.4.2.pom
  100.0% [##########] 2.5 KiB (1.8 KiB / s)
https://repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.2.0/protobuf-java-3.2.0.pom
  100.0% [##########] 4.6 KiB (25.6 KiB / s)
https://repo1.maven.org/maven2/com/lihaoyi/fastparse_2.12/0.4.2/fastparse_2.12-0.4.2.pom
  100.0% [##########] 2.5 KiB (14.2 KiB / s)
https://repo1.maven.org/maven2/com/trueaccord/lenses/lenses_2.12/0.4.10/lenses_2.12-0.4.10.pom
  100.0% [##########] 1.8 KiB (9.7 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/common_2.12/1.8.0/common_2.12-1.8.0.pom
  100.0% [##########] 2.7 KiB (15.3 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/io_2.12/1.8.0/io_2.12-1.8.0.pom
  100.0% [##########] 2.5 KiB (13.1 KiB / s)
https://repo1.maven.org/maven2/com/google/protobuf/protobuf-parent/3.2.0/protobuf-parent-3.2.0.pom
  100.0% [##########] 6.7 KiB (32.8 KiB / s)
https://repo1.maven.org/maven2/com/google/google/1/google-1.pom
  100.0% [##########] 1.5 KiB (8.0 KiB / s)
https://repo1.maven.org/maven2/com/lihaoyi/fastparse-utils_2.12/0.4.2/fastparse-utils_2.12-0.4.2.pom
  100.0% [##########] 2.3 KiB (12.0 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/dialects_2.12/1.7.0/dialects_2.12-1.7.0.jar
  100.0% [##########] 22.5 KiB (58.0 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/scalameta_2.12/1.7.0/scalameta_2.12-1.7.0.jar
  100.0% [##########] 17.2 KiB (23.3 KiB / s)
https://repo1.maven.org/maven2/com/lihaoyi/sourcecode_2.12/0.1.3/sourcecode_2.12-0.1.3.jar
  100.0% [##########] 107.9 KiB (136.3 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/transversers_2.12/1.7.0/transversers_2.12-1.7.0.jar
  100.0% [##########] 99.9 KiB (143.8 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/inputs_2.12/1.8.0/inputs_2.12-1.8.0.jar
  100.0% [##########] 75.1 KiB (307.7 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/inline_2.12/1.7.0/inline_2.12-1.7.0.jar
  100.0% [##########] 9.7 KiB (51.3 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/common_2.12/1.8.0/common_2.12-1.8.0.jar
  100.0% [##########] 793.0 KiB (683.7 KiB / s)
https://repo1.maven.org/maven2/com/typesafe/config/1.2.1/config-1.2.1.jar
  100.0% [##########] 214.4 KiB (189.2 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/quasiquotes_2.12/1.7.0/quasiquotes_2.12-1.7.0.jar
  100.0% [##########] 261.9 KiB (1.1 MiB / s)
https://repo1.maven.org/maven2/com/geirsson/scalafmt-core_2.12/0.7.0-RC1/scalafmt-core_2.12-0.7.0-RC1.jar
  100.0% [##########] 778.9 KiB (709.4 KiB / s)
https://repo1.maven.org/maven2/com/geirsson/metaconfig-core_2.12/0.3.2/metaconfig-core_2.12-0.3.2.jar
  100.0% [##########] 138.6 KiB (397.0 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/semantic_2.12/1.7.0/semantic_2.12-1.7.0.jar
  100.0% [##########] 258.1 KiB (1.0 MiB / s)
https://repo1.maven.org/maven2/com/martiansoftware/nailgun-server/0.9.1/nailgun-server-0.9.1.jar
  100.0% [##########] 32.2 KiB (161.6 KiB / s)
https://repo1.maven.org/maven2/com/lihaoyi/fastparse-utils_2.12/0.4.2/fastparse-utils_2.12-0.4.2.jar
  100.0% [##########] 60.8 KiB (318.2 KiB / s)
https://repo1.maven.org/maven2/com/lihaoyi/scalaparse_2.12/0.4.2/scalaparse_2.12-0.4.2.jar
  100.0% [##########] 95.9 KiB (157.5 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/tokens_2.12/1.7.0/tokens_2.12-1.7.0.jar
  100.0% [##########] 495.1 KiB (1.1 MiB / s)
https://repo1.maven.org/maven2/com/trueaccord/scalapb/scalapb-runtime_2.12/0.6.0-pre2/scalapb-runtime_2.12-0.6.0-pre2.jar
  100.0% [##########] 1.7 MiB (2.6 MiB / s)
https://repo1.maven.org/maven2/com/trueaccord/lenses/lenses_2.12/0.4.10/lenses_2.12-0.4.10.jar
  100.0% [##########] 31.6 KiB (161.0 KiB / s)
https://repo1.maven.org/maven2/com/lihaoyi/fastparse_2.12/0.4.2/fastparse_2.12-0.4.2.jar
  100.0% [##########] 299.8 KiB (87.8 KiB / s)
https://repo1.maven.org/maven2/com/geirsson/metaconfig-typesafe-config_2.12/0.3.2/metaconfig-typesafe-config_2.12-0.3.2.jar
  100.0% [##########] 10.6 KiB (56.7 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/trees_2.12/1.7.0/trees_2.12-1.7.0.jar
  100.0% [##########] 2.7 MiB (3.2 MiB / s)
https://repo1.maven.org/maven2/org/scalameta/tokenizers_2.12/1.7.0/tokenizers_2.12-1.7.0.jar
  100.0% [##########] 96.3 KiB (112.4 KiB / s)
https://repo1.maven.org/maven2/com/geirsson/scalafmt-cli_2.12/0.7.0-RC1/scalafmt-cli_2.12-0.7.0-RC1.jar
  100.0% [##########] 108.7 KiB (530.2 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/io_2.12/1.8.0/io_2.12-1.8.0.jar
  100.0% [##########] 63.8 KiB (333.8 KiB / s)
https://repo1.maven.org/maven2/com/github/scopt/scopt_2.12/3.5.0/scopt_2.12-3.5.0.jar
  100.0% [##########] 71.8 KiB (386.0 KiB / s)
https://repo1.maven.org/maven2/org/scalameta/parsers_2.12/1.7.0/parsers_2.12-1.7.0.jar
  100.0% [##########] 714.7 KiB (1.8 MiB / s)
https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.12.2/scala-library-2.12.2.jar
  100.0% [##########] 5.0 MiB (680.3 KiB / s)
Williams-MBP:~ william$ cd some-dir/
Williams-MBP:some-dir william$ scalafmt
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class scala.meta.package$
    0.0%at org.scalafmt.Scalafmt$.format(Scalafmt.scala:47)
        at org.scalafmt.cli.Cli$.handleFile(Cli.scala:144)
        at org.scalafmt.cli.Cli$.$anonfun$runFormat$1(Cli.scala:220)
        at org.scalafmt.cli.Cli$.$anonfun$runFormat$1$adapted(Cli.scala:218)
        at scala.collection.Iterator.foreach(Iterator.scala:929)
        at scala.collection.Iterator.foreach$(Iterator.scala:929)
        at scala.collection.AbstractIterator.foreach(Iterator.scala:1417)
        at scala.collection.parallel.ParIterableLike$Foreach.leaf(ParIterableLike.scala:970)
        at scala.collection.parallel.Task.$anonfun$tryLeaf$1(Tasks.scala:49)
        at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
        at scala.util.control.Breaks$$anon$1.catchBreak(Breaks.scala:63)
        at scala.collection.parallel.Task.tryLeaf(Tasks.scala:52)
        at scala.collection.parallel.Task.tryLeaf$(Tasks.scala:46)
        at scala.collection.parallel.ParIterableLike$Foreach.tryLeaf(ParIterableLike.scala:967)
        at scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask.internal(Tasks.scala:156)
        at scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask.internal$(Tasks.scala:153)
        at scala.collection.parallel.AdaptiveWorkStealingForkJoinTasks$WrappedTask.internal(Tasks.scala:440)
        at scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask.compute(Tasks.scala:146)
        at scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask.compute$(Tasks.scala:145)
        at scala.collection.parallel.AdaptiveWorkStealingForkJoinTasks$WrappedTask.compute(Tasks.scala:440)
        at java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:189)
        at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
        at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
        at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
        at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
        Suppressed: java.lang.NoClassDefFoundError: Could not initialize class scala.meta.package$
                at org.scalafmt.Scalafmt$.format(Scalafmt.scala:47)
                at org.scalafmt.cli.Cli$.handleFile(Cli.scala:144)
                at org.scalafmt.cli.Cli$.$anonfun$runFormat$1(Cli.scala:220)
                at org.scalafmt.cli.Cli$.$anonfun$runFormat$1$adapted(Cli.scala:218)
                at scala.collection.Iterator.foreach(Iterator.scala:929)
                at scala.collection.Iterator.foreach$(Iterator.scala:929)
                at scala.collection.AbstractIterator.foreach(Iterator.scala:1417)
                at scala.collection.parallel.ParIterableLike$Foreach.leaf(ParIterableLike.scala:970)
                at scala.collection.parallel.Task.$anonfun$tryLeaf$1(Tasks.scala:49)
                at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
                at scala.util.control.Breaks$$anon$1.catchBreak(Breaks.scala:63)
                at scala.collection.parallel.Task.tryLeaf(Tasks.scala:52)
                at scala.collection.parallel.Task.tryLeaf$(Tasks.scala:46)
                at scala.collection.parallel.ParIterableLike$Foreach.tryLeaf(ParIterableLike.scala:967)
                at scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask.internal(Tasks.scala:166)
                ... 10 more
        Suppressed: java.lang.NoClassDefFoundError: Could not initialize class scala.meta.package$
                at org.scalafmt.Scalafmt$.format(Scalafmt.scala:47)
                at org.scalafmt.cli.Cli$.handleFile(Cli.scala:144)
                at org.scalafmt.cli.Cli$.$anonfun$runFormat$1(Cli.scala:220)
                at org.scalafmt.cli.Cli$.$anonfun$runFormat$1$adapted(Cli.scala:218)
                at scala.collection.Iterator.foreach(Iterator.scala:929)
                at scala.collection.Iterator.foreach$(Iterator.scala:929)
                at scala.collection.AbstractIterator.foreach(Iterator.scala:1417)
                at scala.collection.parallel.ParIterableLike$Foreach.leaf(ParIterableLike.scala:970)
                at scala.collection.parallel.Task.$anonfun$tryLeaf$1(Tasks.scala:49)
                at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
                at scala.util.control.Breaks$$anon$1.catchBreak(Breaks.scala:63)
                at scala.collection.parallel.Task.tryLeaf(Tasks.scala:52)
                at scala.collection.parallel.Task.tryLeaf$(Tasks.scala:46)
                at scala.collection.parallel.ParIterableLike$Foreach.tryLeaf(ParIterableLike.scala:967)
                at scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask.internal(Tasks.scala:166)
                ... 10 more
        Suppressed: java.lang.NoClassDefFoundError: Could not initialize class scala.meta.package$
                at org.scalafmt.Scalafmt$.format(Scalafmt.scala:47)
                at org.scalafmt.cli.Cli$.handleFile(Cli.scala:144)
                at org.scalafmt.cli.Cli$.$anonfun$runFormat$1(Cli.scala:220)
                at org.scalafmt.cli.Cli$.$anonfun$runFormat$1$adapted(Cli.scala:218)
                at scala.collection.Iterator.foreach(Iterator.scala:929)
                at scala.collection.Iterator.foreach$(Iterator.scala:929)
                at scala.collection.AbstractIterator.foreach(Iterator.scala:1417)
                at scala.collection.parallel.ParIterableLike$Foreach.leaf(ParIterableLike.scala:970)
                at scala.collection.parallel.Task.$anonfun$tryLeaf$1(Tasks.scala:49)
                at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
                at scala.util.control.Breaks$$anon$1.catchBreak(Breaks.scala:63)
                at scala.collection.parallel.Task.tryLeaf(Tasks.scala:52)
                at scala.collection.parallel.Task.tryLeaf$(Tasks.scala:46)
                at scala.collection.parallel.ParIterableLike$Foreach.tryLeaf(ParIterableLike.scala:967)
                at scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask.internal(Tasks.scala:166)
                ... 10 more
        Suppressed: java.lang.NoSuchMethodError: scala.meta.io.Api.$init$(Lscala/meta/io/Api;)V
                at scala.meta.package$.<init>(package.scala:3)
                at scala.meta.package$.<clinit>(package.scala)
                ... 25 more
                Suppressed: java.lang.NoClassDefFoundError: Could not initialize class scala.meta.package$
                        at org.scalafmt.Scalafmt$.format(Scalafmt.scala:47)
                        at org.scalafmt.cli.Cli$.handleFile(Cli.scala:144)
                        at org.scalafmt.cli.Cli$.$anonfun$runFormat$1(Cli.scala:220)
                        at org.scalafmt.cli.Cli$.$anonfun$runFormat$1$adapted(Cli.scala:218)
                        at scala.collection.Iterator.foreach(Iterator.scala:929)
                        at scala.collection.Iterator.foreach$(Iterator.scala:929)
                        at scala.collection.AbstractIterator.foreach(Iterator.scala:1417)
                        at scala.collection.parallel.ParIterableLike$Foreach.leaf(ParIterableLike.scala:970)
                        at scala.collection.parallel.Task.$anonfun$tryLeaf$1(Tasks.scala:49)
                        at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
                        at scala.util.control.Breaks$$anon$1.catchBreak(Breaks.scala:63)
                        at scala.collection.parallel.Task.tryLeaf(Tasks.scala:52)
                        at scala.collection.parallel.Task.tryLeaf$(Tasks.scala:46)
                        at scala.collection.parallel.ParIterableLike$Foreach.tryLeaf(ParIterableLike.scala:967)
                        at scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask.internal(Tasks.scala:166)
                        ... 10 more
                Suppressed: java.lang.NoClassDefFoundError: Could not initialize class scala.meta.package$
                        at org.scalafmt.Scalafmt$.format(Scalafmt.scala:47)
                        at org.scalafmt.cli.Cli$.handleFile(Cli.scala:144)
                        at org.scalafmt.cli.Cli$.$anonfun$runFormat$1(Cli.scala:220)
                        at org.scalafmt.cli.Cli$.$anonfun$runFormat$1$adapted(Cli.scala:218)
                        at scala.collection.Iterator.foreach(Iterator.scala:929)
                        at scala.collection.Iterator.foreach$(Iterator.scala:929)
                        at scala.collection.AbstractIterator.foreach(Iterator.scala:1417)
                        at scala.collection.parallel.ParIterableLike$Foreach.leaf(ParIterableLike.scala:970)
                        at scala.collection.parallel.Task.$anonfun$tryLeaf$1(Tasks.scala:49)
                        at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
                        at scala.util.control.Breaks$$anon$1.catchBreak(Breaks.scala:63)
                        at scala.collection.parallel.Task.tryLeaf(Tasks.scala:52)
                        at scala.collection.parallel.Task.tryLeaf$(Tasks.scala:46)
                        at scala.collection.parallel.ParIterableLike$Foreach.tryLeaf(ParIterableLike.scala:967)
                        at scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask.internal(Tasks.scala:166)
                        ... 10 more
                Suppressed: java.lang.NoClassDefFoundError: Could not initialize class scala.meta.package$
                        at org.scalafmt.Scalafmt$.format(Scalafmt.scala:47)
                        at org.scalafmt.cli.Cli$.handleFile(Cli.scala:144)
                        at org.scalafmt.cli.Cli$.$anonfun$runFormat$1(Cli.scala:220)
                        at org.scalafmt.cli.Cli$.$anonfun$runFormat$1$adapted(Cli.scala:218)
                        at scala.collection.Iterator.foreach(Iterator.scala:929)
                        at scala.collection.Iterator.foreach$(Iterator.scala:929)
                        at scala.collection.AbstractIterator.foreach(Iterator.scala:1417)
                        at scala.collection.parallel.ParIterableLike$Foreach.leaf(ParIterableLike.scala:970)
                        at scala.collection.parallel.Task.$anonfun$tryLeaf$1(Tasks.scala:49)
                        at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
                        at scala.util.control.Breaks$$anon$1.catchBreak(Breaks.scala:63)
                        at scala.collection.parallel.Task.tryLeaf(Tasks.scala:52)
                        at scala.collection.parallel.Task.tryLeaf$(Tasks.scala:46)
                        at scala.collection.parallel.ParIterableLike$Foreach.tryLeaf(ParIterableLike.scala:967)
                        at scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask.internal(Tasks.scala:166)
                        ... 10 more
        Suppressed: java.lang.NoClassDefFoundError: Could not initialize class scala.meta.package$
                ... 25 more
                Suppressed: java.lang.NoClassDefFoundError: Could not initialize class scala.meta.package$
                        at org.scalafmt.Scalafmt$.format(Scalafmt.scala:47)
                        at org.scalafmt.cli.Cli$.handleFile(Cli.scala:144)
                        at org.scalafmt.cli.Cli$.$anonfun$runFormat$1(Cli.scala:220)
                        at org.scalafmt.cli.Cli$.$anonfun$runFormat$1$adapted(Cli.scala:218)
                        at scala.collection.Iterator.foreach(Iterator.scala:929)
                        at scala.collection.Iterator.foreach$(Iterator.scala:929)
                        at scala.collection.AbstractIterator.foreach(Iterator.scala:1417)
                        at scala.collection.parallel.ParIterableLike$Foreach.leaf(ParIterableLike.scala:970)
                        at scala.collection.parallel.Task.$anonfun$tryLeaf$1(Tasks.scala:49)
                        at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
                        at scala.util.control.Breaks$$anon$1.catchBreak(Breaks.scala:63)
                        at scala.collection.parallel.Task.tryLeaf(Tasks.scala:52)
                        at scala.collection.parallel.Task.tryLeaf$(Tasks.scala:46)
                        at scala.collection.parallel.ParIterableLike$Foreach.tryLeaf(ParIterableLike.scala:967)
                        at scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask.internal(Tasks.scala:166)
                        ... 10 more
                Suppressed: java.lang.NoClassDefFoundError: Could not initialize class scala.meta.package$
                        at org.scalafmt.Scalafmt$.format(Scalafmt.scala:47)
                        at org.scalafmt.cli.Cli$.handleFile(Cli.scala:144)
                        at org.scalafmt.cli.Cli$.$anonfun$runFormat$1(Cli.scala:220)
                        at org.scalafmt.cli.Cli$.$anonfun$runFormat$1$adapted(Cli.scala:218)
                        at scala.collection.Iterator.foreach(Iterator.scala:929)
                        at scala.collection.Iterator.foreach$(Iterator.scala:929)
                        at scala.collection.AbstractIterator.foreach(Iterator.scala:1417)
                        at scala.collection.parallel.ParIterableLike$Foreach.leaf(ParIterableLike.scala:970)
                        at scala.collection.parallel.Task.$anonfun$tryLeaf$1(Tasks.scala:49)
                        at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
                        at scala.util.control.Breaks$$anon$1.catchBreak(Breaks.scala:63)
                        at scala.collection.parallel.Task.tryLeaf(Tasks.scala:52)
                        at scala.collection.parallel.Task.tryLeaf$(Tasks.scala:46)
                        at scala.collection.parallel.ParIterableLike$Foreach.tryLeaf(ParIterableLike.scala:967)
                        at scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask.internal(Tasks.scala:166)
                        ... 10 more
                Suppressed: java.lang.NoClassDefFoundError: Could not initialize class scala.meta.package$
                        at org.scalafmt.Scalafmt$.format(Scalafmt.scala:47)
                        at org.scalafmt.cli.Cli$.handleFile(Cli.scala:144)
                        at org.scalafmt.cli.Cli$.$anonfun$runFormat$1(Cli.scala:220)
                        at org.scalafmt.cli.Cli$.$anonfun$runFormat$1$adapted(Cli.scala:218)
                        at scala.collection.Iterator.foreach(Iterator.scala:929)
                        at scala.collection.Iterator.foreach$(Iterator.scala:929)
                        at scala.collection.AbstractIterator.foreach(Iterator.scala:1417)
                        at scala.collection.parallel.ParIterableLike$Foreach.leaf(ParIterableLike.scala:970)
                        at scala.collection.parallel.Task.$anonfun$tryLeaf$1(Tasks.scala:49)
                        at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
                        at scala.util.control.Breaks$$anon$1.catchBreak(Breaks.scala:63)
                        at scala.collection.parallel.Task.tryLeaf(Tasks.scala:52)
                        at scala.collection.parallel.Task.tryLeaf$(Tasks.scala:46)
                        at scala.collection.parallel.ParIterableLike$Foreach.tryLeaf(ParIterableLike.scala:967)
                        at scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask.internal(Tasks.scala:166)
                        ... 10 more
                Suppressed: java.lang.NoClassDefFoundError: Could not initialize class scala.meta.package$
                        ... 25 more
                        Suppressed: java.lang.NoClassDefFoundError: Could not initialize class scala.meta.package$
                                at org.scalafmt.Scalafmt$.format(Scalafmt.scala:47)
                                at org.scalafmt.cli.Cli$.handleFile(Cli.scala:144)
                                at org.scalafmt.cli.Cli$.$anonfun$runFormat$1(Cli.scala:220)
                                at org.scalafmt.cli.Cli$.$anonfun$runFormat$1$adapted(Cli.scala:218)
                                at scala.collection.Iterator.foreach(Iterator.scala:929)
                                at scala.collection.Iterator.foreach$(Iterator.scala:929)
                                at scala.collection.AbstractIterator.foreach(Iterator.scala:1417)
                                at scala.collection.parallel.ParIterableLike$Foreach.leaf(ParIterableLike.scala:970)
                                at scala.collection.parallel.Task.$anonfun$tryLeaf$1(Tasks.scala:49)
                                at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
                                at scala.util.control.Breaks$$anon$1.catchBreak(Breaks.scala:63)
                                at scala.collection.parallel.Task.tryLeaf(Tasks.scala:52)
                                at scala.collection.parallel.Task.tryLeaf$(Tasks.scala:46)
                                at scala.collection.parallel.ParIterableLike$Foreach.tryLeaf(ParIterableLike.scala:967)
                                at scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask.internal(Tasks.scala:166)
                                ... 10 more
                        Suppressed: java.lang.NoClassDefFoundError: Could not initialize class scala.meta.package$
                                at org.scalafmt.Scalafmt$.format(Scalafmt.scala:47)
                                at org.scalafmt.cli.Cli$.handleFile(Cli.scala:144)
                                at org.scalafmt.cli.Cli$.$anonfun$runFormat$1(Cli.scala:220)
                                at org.scalafmt.cli.Cli$.$anonfun$runFormat$1$adapted(Cli.scala:218)
                                at scala.collection.Iterator.foreach(Iterator.scala:929)
                                at scala.collection.Iterator.foreach$(Iterator.scala:929)
                                at scala.collection.AbstractIterator.foreach(Iterator.scala:1417)
                                at scala.collection.parallel.ParIterableLike$Foreach.leaf(ParIterableLike.scala:970)
                                at scala.collection.parallel.Task.$anonfun$tryLeaf$1(Tasks.scala:49)
                                at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
                                at scala.util.control.Breaks$$anon$1.catchBreak(Breaks.scala:63)
                                at scala.collection.parallel.Task.tryLeaf(Tasks.scala:52)
                                at scala.collection.parallel.Task.tryLeaf$(Tasks.scala:46)
                                at scala.collection.parallel.ParIterableLike$Foreach.tryLeaf(ParIterableLike.scala:967)
                                at scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask.internal(Tasks.scala:166)
                                ... 10 more
                        Suppressed: java.lang.NoClassDefFoundError: Could not initialize class scala.meta.package$
                                at org.scalafmt.Scalafmt$.format(Scalafmt.scala:47)
                                at org.scalafmt.cli.Cli$.handleFile(Cli.scala:144)
                                at org.scalafmt.cli.Cli$.$anonfun$runFormat$1(Cli.scala:220)
                                at org.scalafmt.cli.Cli$.$anonfun$runFormat$1$adapted(Cli.scala:218)
                                at scala.collection.Iterator.foreach(Iterator.scala:929)
                                at scala.collection.Iterator.foreach$(Iterator.scala:929)
                                at scala.collection.AbstractIterator.foreach(Iterator.scala:1417)
                                at scala.collection.parallel.ParIterableLike$Foreach.leaf(ParIterableLike.scala:970)
                                at scala.collection.parallel.Task.$anonfun$tryLeaf$1(Tasks.scala:49)
                                at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
                                at scala.util.control.Breaks$$anon$1.catchBreak(Breaks.scala:63)
                                at scala.collection.parallel.Task.tryLeaf(Tasks.scala:52)
                                at scala.collection.parallel.Task.tryLeaf$(Tasks.scala:46)
                                at scala.collection.parallel.ParIterableLike$Foreach.tryLeaf(ParIterableLike.scala:967)
                                at scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask.internal(Tasks.scala:166)
                                ... 10 more

@olafurpg

This comment has been minimized.

Show comment
Hide comment
@olafurpg

olafurpg May 25, 2017

Member

Can you try the following?

cd random_directory
export COURSIER_CACHE=$(pwd)/.coursier
coursier launch com.geirsson:scalafmt-cli_2.11:0.7.0-RC1 --main org.scalafmt.cli.Cli -- --help

This error started appearing yesterday in our CI and on my colleague's laptop. Maybe it's somehow related to the bintray downtime on Tuesday causing cache to go bad. I'm unable to reproduce locally on my machine with a clean cache.

Member

olafurpg commented May 25, 2017

Can you try the following?

cd random_directory
export COURSIER_CACHE=$(pwd)/.coursier
coursier launch com.geirsson:scalafmt-cli_2.11:0.7.0-RC1 --main org.scalafmt.cli.Cli -- --help

This error started appearing yesterday in our CI and on my colleague's laptop. Maybe it's somehow related to the bintray downtime on Tuesday causing cache to go bad. I'm unable to reproduce locally on my machine with a clean cache.

@pjrt

This comment has been minimized.

Show comment
Hide comment
@pjrt

pjrt May 25, 2017

Collaborator

We're getting this issue in our CI as well (and in one of our colleagues laptops. It seems one member of the team is always cursed 😄).

Collaborator

pjrt commented May 25, 2017

We're getting this issue in our CI as well (and in one of our colleagues laptops. It seems one member of the team is always cursed 😄).

@pjrt

This comment has been minimized.

Show comment
Hide comment
@pjrt

pjrt May 25, 2017

Collaborator

@olafurpg My colleague is in the UK, while everyone else is in NY (no one else is having this issue). He has a theory that maybe some CDN points still have an old, broken dependency. Where is your colleague located (if you don't mind me asking)?

@ScalaWilliamTeralytics may I ask where are you located?

Collaborator

pjrt commented May 25, 2017

@olafurpg My colleague is in the UK, while everyone else is in NY (no one else is having this issue). He has a theory that maybe some CDN points still have an old, broken dependency. Where is your colleague located (if you don't mind me asking)?

@ScalaWilliamTeralytics may I ask where are you located?

@olafurpg

This comment has been minimized.

Show comment
Hide comment
@olafurpg

olafurpg May 25, 2017

Member

We are in Switzerland. Indeed, there seems to be a bad jar floating around somewhere.

Member

olafurpg commented May 25, 2017

We are in Switzerland. Indeed, there seems to be a bad jar floating around somewhere.

@pjrt

This comment has been minimized.

Show comment
Hide comment
@pjrt

pjrt May 25, 2017

Collaborator

Both of you? Ok, that may defeat the CDN theory.

Collaborator

pjrt commented May 25, 2017

Both of you? Ok, that may defeat the CDN theory.

@olafurpg

This comment has been minimized.

Show comment
Hide comment
@olafurpg

olafurpg May 25, 2017

Member

Me and my colleague are both in Switzerland, but he is no longer able to reproduce like myself. He experienced this yesterday.

Member

olafurpg commented May 25, 2017

Me and my colleague are both in Switzerland, but he is no longer able to reproduce like myself. He experienced this yesterday.

@alexarchambault

This comment has been minimized.

Show comment
Hide comment
@alexarchambault

alexarchambault May 25, 2017

Contributor

From France / Paris, I'm seeing newer things on Central for com.geirsson:metaconfig-core_2.11:0.3.2, compared to what I have in cache. The POM is exactly the same as the one of com.geirsson:metaconfig-core_2.11:0.3.3 (except for the version). These bump the version of some scalameta dependencies from 1.7.0 to 1.8.0, which seems to cause the error here.

As a workaround, forcing the version of the bumped dependency solves the issue for me:

$ coursier bootstrap com.geirsson:scalafmt-cli_2.11:0.7.0-RC1 \
    --main org.scalafmt.cli.Cli \
    -o scalafmt \
    -V org.scalameta:inputs_2.11:1.7.0 # forcing that version, else it gets bumped to 1.8.0
Contributor

alexarchambault commented May 25, 2017

From France / Paris, I'm seeing newer things on Central for com.geirsson:metaconfig-core_2.11:0.3.2, compared to what I have in cache. The POM is exactly the same as the one of com.geirsson:metaconfig-core_2.11:0.3.3 (except for the version). These bump the version of some scalameta dependencies from 1.7.0 to 1.8.0, which seems to cause the error here.

As a workaround, forcing the version of the bumped dependency solves the issue for me:

$ coursier bootstrap com.geirsson:scalafmt-cli_2.11:0.7.0-RC1 \
    --main org.scalafmt.cli.Cli \
    -o scalafmt \
    -V org.scalameta:inputs_2.11:1.7.0 # forcing that version, else it gets bumped to 1.8.0
@olafurpg

This comment has been minimized.

Show comment
Hide comment
@olafurpg

olafurpg May 25, 2017

Member

Thank your for investigating @alexarchambault. I had some troubles publishing metaconfig 0.3.3 and scalameta 1.8.0 on Monday night, which might explain this error. I pressed some close/drop buttons in the Sonatype UI, at least 😅

Are you still able to reproduce @ScalaWilliamTeralytics ?

Member

olafurpg commented May 25, 2017

Thank your for investigating @alexarchambault. I had some troubles publishing metaconfig 0.3.3 and scalameta 1.8.0 on Monday night, which might explain this error. I pressed some close/drop buttons in the Sonatype UI, at least 😅

Are you still able to reproduce @ScalaWilliamTeralytics ?

@pjrt

This comment has been minimized.

Show comment
Hide comment
@pjrt

pjrt May 25, 2017

Collaborator

@olafurpg my colleague (who is in the UK) still has the issue.

@alexarchambault Is there a way to do that for SBT?

Collaborator

pjrt commented May 25, 2017

@olafurpg my colleague (who is in the UK) still has the issue.

@alexarchambault Is there a way to do that for SBT?

@olafurpg

This comment has been minimized.

Show comment
Hide comment
@olafurpg

olafurpg May 25, 2017

Member

@pjrt does  rm -rf ~/.ivy2/cache/com.geirsson/ help?

Member

olafurpg commented May 25, 2017

@pjrt does  rm -rf ~/.ivy2/cache/com.geirsson/ help?

@pjrt

This comment has been minimized.

Show comment
Hide comment
@pjrt

pjrt May 25, 2017

Collaborator

No, he tried removing both ~/.ivy2 and ~/.coursier. Same issue.

Collaborator

pjrt commented May 25, 2017

No, he tried removing both ~/.ivy2 and ~/.coursier. Same issue.

@olafurpg

This comment has been minimized.

Show comment
Hide comment
@olafurpg

olafurpg May 25, 2017

Member

I may have tracked down the error. Do you have a resolver to sonatype snapshots or repositories @pjrt ? I recall that I forgot to bump up the version in metaconfig to 0.3.3 so I publishSigned it as 0.3.2 first. Once I realized my mistake, I bumped the version number to 0.3.3 and published again. It could be that you are resolving jars from that accidental publishSigned on 0.3.2, which is worrying if true. I thought Maven Central would always go first.

I have re-publishSigned metaconfig 0.3.2. Can you try to wipe your cache and try again.

Member

olafurpg commented May 25, 2017

I may have tracked down the error. Do you have a resolver to sonatype snapshots or repositories @pjrt ? I recall that I forgot to bump up the version in metaconfig to 0.3.3 so I publishSigned it as 0.3.2 first. Once I realized my mistake, I bumped the version number to 0.3.3 and published again. It could be that you are resolving jars from that accidental publishSigned on 0.3.2, which is worrying if true. I thought Maven Central would always go first.

I have re-publishSigned metaconfig 0.3.2. Can you try to wipe your cache and try again.

@ScalaWilliam

This comment has been minimized.

Show comment
Hide comment
@ScalaWilliam

ScalaWilliam May 25, 2017

I'm in Singapore.

I'm in Singapore.

@pjrt

This comment has been minimized.

Show comment
Hide comment
@pjrt

pjrt May 26, 2017

Collaborator

@olafurpg we still have the issue this morning. Is the Scalafmt CI working now?

Collaborator

pjrt commented May 26, 2017

@olafurpg we still have the issue this morning. Is the Scalafmt CI working now?

@pjrt

This comment has been minimized.

Show comment
Hide comment
@pjrt

pjrt May 26, 2017

Collaborator
Collaborator

pjrt commented May 26, 2017

@olafurpg

This comment has been minimized.

Show comment
Hide comment
@olafurpg

olafurpg May 26, 2017

Member

It seems metaconfig-core 0.3.2, which scalafmt 0.7 depends on, got updated on May 23rd. I have no idea how that happened, I thought Maven Central artifacts could not change after publish. Maybe I forgot to close the staging release and that's what we have been using.

I published metaconfig 0.4.0 which should be identical to 0.3.2. I will follow up with a scalafmt v1.0.0-RC1 release that depends on metaconfig 0.4.

Member

olafurpg commented May 26, 2017

It seems metaconfig-core 0.3.2, which scalafmt 0.7 depends on, got updated on May 23rd. I have no idea how that happened, I thought Maven Central artifacts could not change after publish. Maybe I forgot to close the staging release and that's what we have been using.

I published metaconfig 0.4.0 which should be identical to 0.3.2. I will follow up with a scalafmt v1.0.0-RC1 release that depends on metaconfig 0.4.

@olafurpg

This comment has been minimized.

Show comment
Hide comment
@olafurpg

olafurpg May 26, 2017

Member

I'm struggling to close the sonatype repository. I don't have more time at the moment to debug this, I will try to continue later tonight. Sorry for the inconvenience y'all.

Member

olafurpg commented May 26, 2017

I'm struggling to close the sonatype repository. I don't have more time at the moment to debug this, I will try to continue later tonight. Sorry for the inconvenience y'all.

@pzapletal pzapletal referenced this issue May 26, 2017

Merged

CO-31: Jenkins Integration #15

4 of 4 tasks complete
@olafurpg

This comment has been minimized.

Show comment
Hide comment
@olafurpg

olafurpg May 26, 2017

Member

I just published scalafmt 1.0.0-RC1, please give it a try and let me know if it's fixes this issue

coursier launch com.geirsson:scalafmt-cli_2.11:1.0.0-RC1 --main org.scalafmt.cli.Cli -- --help
Member

olafurpg commented May 26, 2017

I just published scalafmt 1.0.0-RC1, please give it a try and let me know if it's fixes this issue

coursier launch com.geirsson:scalafmt-cli_2.11:1.0.0-RC1 --main org.scalafmt.cli.Cli -- --help
@ScalaWilliamTeralytics

This comment has been minimized.

Show comment
Hide comment
@ScalaWilliamTeralytics

ScalaWilliamTeralytics May 27, 2017

Yes, that works @olafurpg .

Wonder if there's any way to prevent issue such as this, or if it's just a one-off.

I'd imagine for 1 me there'll be at least a dozen users who won't bother reporting and just say "it doesn't work".

Yes, that works @olafurpg .

Wonder if there's any way to prevent issue such as this, or if it's just a one-off.

I'd imagine for 1 me there'll be at least a dozen users who won't bother reporting and just say "it doesn't work".

olafurpg added a commit to olafurpg/metaconfig that referenced this issue May 27, 2017

@olafurpg

This comment has been minimized.

Show comment
Hide comment
@olafurpg

olafurpg May 27, 2017

Member

Good question @ScalaWilliamTeralytics

I have updated the metaconfig build to use https://github.com/dwijnand/sbt-dynver. That should prevent me from forgetting to update the version in build.sbt.

The 0.7.0-RC1 release had been working fine for over a month, but it appears it was depending on a non-final/mutable release of metaconfig-core 0.3.2. When I was publishing metaconfig-core 0.3.3 I forgot to bump up the version number in build.sbt so I published it as 0.3.2, overwriting the old release.

I have no idea why sonatype allowed me to overwrite the 0.3.2 release, it's very discerning. I have opened an issue on Sonatype https://issues.sonatype.org/browse/OSSRH-31815

Member

olafurpg commented May 27, 2017

Good question @ScalaWilliamTeralytics

I have updated the metaconfig build to use https://github.com/dwijnand/sbt-dynver. That should prevent me from forgetting to update the version in build.sbt.

The 0.7.0-RC1 release had been working fine for over a month, but it appears it was depending on a non-final/mutable release of metaconfig-core 0.3.2. When I was publishing metaconfig-core 0.3.3 I forgot to bump up the version number in build.sbt so I published it as 0.3.2, overwriting the old release.

I have no idea why sonatype allowed me to overwrite the 0.3.2 release, it's very discerning. I have opened an issue on Sonatype https://issues.sonatype.org/browse/OSSRH-31815

@olafurpg olafurpg closed this May 27, 2017

jvican added a commit to jvican/neo-sbt-scalafmt that referenced this issue Jun 13, 2017

Bump up scalafmt version to fix CI
From olafurpg's comment:

```
It seems to be downloading metaconfig-core 0.3.2, which got broken by a
mutated release on sonatype (see
https://issues.sonatype.org/browse/OSSRH-31815 and
scalameta/scalafmt#943) The build should not depend on scalafmt
0.7.0-RC1, just 1.0.0-RC1, they're practically the same release, 0.7 was
supposed to be 1.0.
```

jvican added a commit to jvican/neo-sbt-scalafmt that referenced this issue Jun 13, 2017

Bump up scalafmt version to fix CI
From olafurpg's comment:

```
It seems to be downloading metaconfig-core 0.3.2, which got broken by a
mutated release on sonatype (see
https://issues.sonatype.org/browse/OSSRH-31815 and
scalameta/scalafmt#943) The build should not depend on scalafmt
0.7.0-RC1, just 1.0.0-RC1, they're practically the same release, 0.7 was
supposed to be 1.0.
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment