Skip to content

Instantly share code, notes, and snippets.

@kubukoz
Created October 5, 2024 14:06
Show Gist options
  • Save kubukoz/900ebaee4eeb07a793b71be3cb13b903 to your computer and use it in GitHub Desktop.
Save kubukoz/900ebaee4eeb07a793b71be3cb13b903 to your computer and use it in GitHub Desktop.
crash in sbt-tpolecat + scala 3
[info] welcome to sbt 1.10.2 (Azul Systems, Inc. Java 21.0.2)
[info] loading global plugins from /Users/kubukoz/.sbt/1.0/plugins
[info] loading settings for project sbt-tpolecat-build-build-build-build from metals.sbt ...
[info] loading project definition from /Users/kubukoz/projects/sbt-tpolecat/project/project/project/project
[info] loading settings for project sbt-tpolecat-build-build-build from metals.sbt ...
[info] loading project definition from /Users/kubukoz/projects/sbt-tpolecat/project/project/project
[success] Generated .bloop/sbt-tpolecat-build-build-build.json
[success] Total time: 1 s, completed Oct 5, 2024, 4:06:41 PM
[info] loading settings for project sbt-tpolecat-build-build from metals.sbt,plugins.sbt ...
[info] loading project definition from /Users/kubukoz/projects/sbt-tpolecat/project/project
[success] Generated .bloop/sbt-tpolecat-build-build.json
[success] Total time: 0 s, completed Oct 5, 2024, 4:06:41 PM
[info] loading settings for project sbt-tpolecat-build from metals.sbt,plugins.sbt ...
[info] loading project definition from /Users/kubukoz/projects/sbt-tpolecat/project
[success] Generated .bloop/sbt-tpolecat-build.json
[success] Total time: 1 s, completed Oct 5, 2024, 4:06:42 PM
[info] loading settings for project sbt-tpolecat from build.sbt ...
[info] set scmInfo to https://github.com/typelevel/sbt-tpolecat
[info] set current project to sbt-tpolecat (in build file:/Users/kubukoz/projects/sbt-tpolecat/)
[info] Setting Scala version to 3.3.4 on 1 projects.
[info] Excluded 6 projects, run ++ 3.3 -v for more details.
[info] Reapplying settings...
[info] set scmInfo to https://github.com/typelevel/sbt-tpolecat
[info] set current project to sbt-tpolecat (in build file:/Users/kubukoz/projects/sbt-tpolecat/)
[info] compiling 2 Scala sources to /Users/kubukoz/projects/sbt-tpolecat/plugin/target/scala-3.3.4/sbt-2.0.0-M2/classes ...
[warn] invalid choice(s) for -Xlint: unused, the tag was ignored
unhandled exception while running checkUnusedPostTyper on /Users/kubukoz/projects/sbt-tpolecat/plugin/src/main/scala/io/github/davidgregory084/TpolecatPlugin.scala
An unhandled exception was thrown in the compiler.
Please file a crash report here:
https://github.com/lampepfl/dotty/issues/new/choose
For non-enriched exceptions, compile with -Yno-enrich-error-messages.
while compiling: /Users/kubukoz/projects/sbt-tpolecat/plugin/src/main/scala/io/github/davidgregory084/TpolecatPlugin.scala
during phase: checkUnusedPostTyper
mode: Mode(ImplicitsEnabled,ReadPositions)
library version: version 2.13.14
compiler version: version 3.3.4
settings: -Wunused List(implicits, explicits, imports, locals, params, privates) -Wvalue-discard true -Xsemanticdb true -Ykind-projector "" -classpath /Users/kubukoz/projects/sbt-tpolecat/plugin/target/scala-3.3.4/sbt-2.0.0-M2/classes:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt/2.0.0-M2/sbt-2.0.0-M2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.3.4/scala3-library_3-3.3.4.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/scalac-compat-annotation_3/0.1.4/scalac-compat-annotation_3-0.1.4.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/scalac-options_3/0.1.7/scalac-options_3-0.1.7.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/main_3/2.0.0-M2/main_3-2.0.0-M2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/io_3/1.10.0/io_3-1.10.0.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.14/scala-library-2.13.14.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/actions_3/2.0.0-M2/actions_3-2.0.0-M2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/build-file_3/2.0.0-M2/build-file_3-2.0.0-M2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/main-settings_3/2.0.0-M2/main-settings_3-2.0.0-M2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/run_3/2.0.0-M2/run_3-2.0.0-M2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/command_3/2.0.0-M2/command_3-2.0.0-M2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/collections_3/2.0.0-M2/collections_3-2.0.0-M2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/zinc-lm-integration_3/2.0.0-M2/zinc-lm-integration_3-2.0.0-M2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/util-logging_3/2.0.0-M2/util-logging_3-2.0.0-M2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_3/2.3.0/scala-xml_3-2.3.0.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/eed3si9n/sjson-new-scalajson_3/0.14.0-M1/sjson-new-scalajson_3-0.14.0-M1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/eed3si9n/sjson-new-core_3/0.14.0-M1/sjson-new-core_3-0.14.0-M1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/launcher-interface/1.4.3/launcher-interface-1.4.3.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/github/ben-manes/caffeine/caffeine/2.8.5/caffeine-2.8.5.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/librarymanagement-coursier_3/2.0.0-alpha8/librarymanagement-coursier_3-2.0.0-alpha8.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/apache/logging/log4j/log4j-api/2.17.1/log4j-api-2.17.1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.17.1/log4j-core-2.17.1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/apache/logging/log4j/log4j-slf4j-impl/2.17.1/log4j-slf4j-impl-2.17.1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/modules/scala-parallel-collections_3/1.0.4/scala-parallel-collections_3-1.0.4.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/librarymanagement-core_3/2.0.0-M2/librarymanagement-core_3-2.0.0-M2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/librarymanagement-ivy_3/2.0.0-M2/librarymanagement-ivy_3-2.0.0-M2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/compiler-interface/2.0.0-M1/compiler-interface-2.0.0-M1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/zinc-compile-core_3/2.0.0-M1/zinc-compile-core_3-2.0.0-M1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/swoval/file-tree-views/2.1.12/file-tree-views-2.1.12.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/net/java/dev/jna/jna/5.13.0/jna-5.13.0.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/net/java/dev/jna/jna-platform/5.13.0/jna-platform-5.13.0.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/completion_3/2.0.0-M2/completion_3-2.0.0-M2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/task-system_3/2.0.0-M2/task-system_3-2.0.0-M2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/tasks_3/2.0.0-M2/tasks_3-2.0.0-M2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/testing_3/2.0.0-M2/testing_3-2.0.0-M2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/util-cache_3/2.0.0-M2/util-cache_3-2.0.0-M2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/util-relation_3/2.0.0-M2/util-relation_3-2.0.0-M2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/util-tracking_3/2.0.0-M2/util-tracking_3-2.0.0-M2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/jline/jline-terminal/3.24.1/jline-terminal-3.24.1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/zinc-classpath_3/2.0.0-M1/zinc-classpath_3-2.0.0-M1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/zinc-apiinfo_3/2.0.0-M1/zinc-apiinfo_3-2.0.0-M1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/zinc_3/2.0.0-M1/zinc_3-2.0.0-M1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/3.3.1/scala3-compiler_3-3.3.1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/core-macros_3/2.0.0-M2/core-macros_3-2.0.0-M2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/logic_3/2.0.0-M2/logic_3-2.0.0-M2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/util-control_3/2.0.0-M2/util-control_3-2.0.0-M2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/protocol_3/2.0.0-M2/protocol_3-2.0.0-M2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/template-resolver/0.1/template-resolver-0.1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/util-position_3/2.0.0-M2/util-position_3-2.0.0-M2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/util-core_3/2.0.0-M2/util-core_3-2.0.0-M2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/util-interface/2.0.0-M2/util-interface-2.0.0-M2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/modules/scala-collection-compat_3/2.11.0/scala-collection-compat_3-2.11.0.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/jline/jline/2.14.7-sbt-9c3b6aca11c57e339441442bbf58e550cdfecb79/jline-2.14.7-sbt-9c3b6aca11c57e339441442bbf58e550cdfecb79.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/jline/jline-terminal-jna/3.24.1/jline-terminal-jna-3.24.1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/jline/jline-terminal-jansi/3.24.1/jline-terminal-jansi-3.24.1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/lmax/disruptor/3.4.2/disruptor-3.4.2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/eed3si9n/shaded-scalajson_3/1.0.0-M4/shaded-scalajson_3-1.0.0-M4.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/eed3si9n/shaded-jawn-parser_3/1.3.2/shaded-jawn-parser_3-1.3.2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/net/openhft/zero-allocation-hashing/0.16/zero-allocation-hashing-0.16.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/checkerframework/checker-qual/3.4.1/checker-qual-3.4.1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/google/errorprone/error_prone_annotations/2.4.0/error_prone_annotations-2.4.0.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.28/slf4j-api-1.7.28.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/github/mwiede/jsch/0.2.17/jsch-0.2.17.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/eed3si9n/gigahorse-apache-http_3/0.7.0/gigahorse-apache-http_3-0.7.0.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/ivy/ivy/2.3.0-sbt-396a783bba347016e7fe30dacc60d355be607fe2/ivy-2.3.0-sbt-396a783bba347016e7fe30dacc60d355be607fe2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/zinc-classfile_3/2.0.0-M1/zinc-classfile_3-2.0.0-M1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/modules/scala-parser-combinators_3/2.1.0/scala-parser-combinators_3-2.1.0.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/jline/jline-reader/3.24.1/jline-reader-3.24.1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/jline/jline-builtins/3.24.1/jline-builtins-3.24.1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/test-agent/2.0.0-M2/test-agent-2.0.0-M2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/test-interface/1.0/test-interface-1.0.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/eed3si9n/sjson-new-murmurhash_3/0.14.0-M1/sjson-new-murmurhash_3-0.14.0-M1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-reflect/2.13.14/scala-reflect-2.13.14.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/jline/jline-native/3.24.1/jline-native-3.24.1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/zinc-core_3/2.0.0-M1/zinc-core_3-2.0.0-M1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/zinc-persist_3/2.0.0-M1/zinc-persist_3-2.0.0-M1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-interfaces/3.3.1/scala3-interfaces-3.3.1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/tasty-core_3/3.3.1/tasty-core_3-3.3.1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/modules/scala-asm/9.5.0-scala-1/scala-asm-9.5.0-scala-1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/ipcsocket/ipcsocket/1.6.2/ipcsocket-1.6.2.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/fusesource/jansi/jansi/2.4.1/jansi-2.4.1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/eed3si9n/gigahorse-core_3/0.7.0/gigahorse-core_3-0.7.0.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/eed3si9n/shaded-apache-httpasyncclient/0.7.0/shaded-apache-httpasyncclient-0.7.0.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/jline/jline-style/3.24.1/jline-style-3.24.1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbinary_3/0.5.1/sbinary_3-0.5.1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/ssl-config-core_3/0.6.1/ssl-config-core_3-0.6.1.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/reactivestreams/reactive-streams/1.0.3/reactive-streams-1.0.3.jar:/Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/config/1.4.2/config-1.4.2.jar -d /Users/kubukoz/projects/sbt-tpolecat/plugin/target/scala-3.3.4/sbt-2.0.0-M2/classes -deprecation true -feature true -java-output-version 8 -language List(implicitConversions) -semanticdb-target /Users/kubukoz/projects/sbt-tpolecat/plugin/target/scala-3.3.4/sbt-2.0.0-M2/meta
[error] ## Exception when compiling 2 sources to /Users/kubukoz/projects/sbt-tpolecat/plugin/target/scala-3.3.4/sbt-2.0.0-M2/classes
[error] dotty.tools.dotc.core.TypeError$$anon$1: Toplevel definition overrideConfigs is defined in
[error] /Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/main_3/2.0.0-M2/main_3-2.0.0-M2.jar(sbt/BuildCommon.class)
[error] and also in
[error] /Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/main_3/2.0.0-M2/main_3-2.0.0-M2.jar(sbt/ProjectExtra.class)
[error] One of these files should be removed from the classpath.
[error]
[error]
[error] dotty.tools.dotc.core.TypeError$$anon$1: Toplevel definition overrideConfigs is defined in
[error] /Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/main_3/2.0.0-M2/main_3-2.0.0-M2.jar(sbt/BuildCommon.class)
[error] and also in
[error] /Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/main_3/2.0.0-M2/main_3-2.0.0-M2.jar(sbt/ProjectExtra.class)
[error] One of these files should be removed from the classpath.
[error] (sbt-tpolecat-plugin / Compile / compileIncremental) dotty.tools.dotc.core.TypeError$$anon$1: Toplevel definition overrideConfigs is defined in
[error] /Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/main_3/2.0.0-M2/main_3-2.0.0-M2.jar(sbt/BuildCommon.class)
[error] and also in
[error] /Users/kubukoz/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/main_3/2.0.0-M2/main_3-2.0.0-M2.jar(sbt/ProjectExtra.class)
[error] One of these files should be removed from the classpath.
[error] Total time: 2 s, completed Oct 5, 2024, 4:06:45 PM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment