Open programaker opened 1 year ago
Is it in a specific file? Or is it all of them? Does it happen during a longer session of coding?
Any chance you could run the command Run doctor
and check the target that contains the sources by clicking on it? We should have more information about classpath etc.
Once it happens, it affects all files. And whenever I change to a different file, I see that Could not find semantic tokens
message for the file.
It happened after some time of coding. I was moving some functions around, there were compiling errors as expected while the code was being written... everything normal. Then suddenly it broke.
Oh, it was a test file (ScalaTest); not sure if there's anything special with test files...
Run doctor
will have to wait until the next break, as I've already closed and reopened the Workspace (which temporarily fixes the problem) 😅
It happened again (coincidence or not, again in a test file).
This time I did the Run doctor
and got the results before reopen the Workspace.
Do you want to see anything in particular from the doctor's result?
Ideally, we could check the classpath, but it shouldn't really change to miss getClass
method. That comes from the JDK, so I have no idea how this would break the typer. I asked someone from the Scala 2 compiler team and they have never seen this issue.
The only thing you could do currently, is check the doctor, click on the module that is having issues and see if there is anything on the classpath that might cause issues. All the info about that module you can give us would probably be useful.
On out side, we should try to generate a proper report that tries to at least analyze if all the needed files are in place.
I've been using the snapshot versions released after opening this ticket, and it didn't happen again so far. I'll observe for some more time...
Well, it's been really stable lately. I did a lot of stuff - refactorings, solved merge conflicts - that used to cause the crash and nothing happened 🎉
I'm not sure, but I think it got stable when I've got the snapshot containing this: https://github.com/scalameta/metals/pull/5278
Anyway, I'm happily closing this 😃
Let us know if you find any more issues! We should be able to add even more reporting to more easily rule out some problems
Unfortunately, it's back =(
WARN Could not find semantic tokens for: file:///path/to/file/File.scala
Current environment:
In the logs, I've found:
Dec 18, 2023 7:54:46 PM scala.meta.internal.pc.CompilerAccess retryWithCleanCompiler
INFO: compiler crashed due to an error in the Scala compiler, retrying with new compiler instance.
Dec 18, 2023 7:54:46 PM scala.meta.internal.pc.CompilerAccess handleError
SEVERE: A severe compiler error occurred, full details of the error can be found in the error report
In the report
Stack trace:
scala.reflect.internal.Definitions$DefinitionsClass.fatalMissingSymbol(Definitions.scala:1411)
scala.reflect.internal.Definitions$DefinitionsClass.miss$1(Definitions.scala:1464)
scala.reflect.internal.Definitions$DefinitionsClass.$anonfun$getMemberMethod$2(Definitions.scala:1466)
scala.reflect.internal.Definitions$DefinitionsClass.getMemberMethod(Definitions.scala:1466)
scala.reflect.internal.Definitions$DefinitionsClass.Any_getClass$lzycompute(Definitions.scala:1172)
scala.reflect.internal.Definitions$DefinitionsClass.Any_getClass(Definitions.scala:1172)
scala.reflect.internal.Definitions$DefinitionsClass.syntheticCoreMethods$lzycompute(Definitions.scala:1578)
scala.reflect.internal.Definitions$DefinitionsClass.syntheticCoreMethods(Definitions.scala:1572)
scala.reflect.internal.Definitions$DefinitionsClass.symbolsNotPresentInBytecode$lzycompute(Definitions.scala:1603)
scala.reflect.internal.Definitions$DefinitionsClass.symbolsNotPresentInBytecode(Definitions.scala:1603)
scala.reflect.internal.Definitions$DefinitionsClass.init(Definitions.scala:1659)
scala.tools.nsc.Global$Run.<init>(Global.scala:1249)
scala.tools.nsc.interactive.Global$TyperRun.<init>(Global.scala:1352)
scala.tools.nsc.interactive.Global.newTyperRun(Global.scala:1375)
scala.tools.nsc.interactive.Global.<init>(Global.scala:294)
scala.meta.internal.pc.MetalsGlobal.<init>(MetalsGlobal.scala:40)
scala.meta.internal.pc.ScalaPresentationCompiler.newCompiler(ScalaPresentationCompiler.scala:424)
Short summary
scala.reflect.internal.FatalError: class Object does not have a method getClass
After the error, code completion, syntax highlight, hover... nothing works anymore.
All files are affected, not only those which were open.
Closing and reopening the files doesn't work.
"Clean and restart build server" doesn't work.
The only way to make things go back to normal is closing and reopening the VSCode workspace of the project.
Oh, another detail: sometimes I spot a strange message in the logs:
INFO no build target found for /path/to/file/File.scala. Using presentation compiler with project's scala-library version: 3.3.1
The problematic project is 2.13.12, but I have 3.3.1 as a global scala installation. Looks suspect...
That message is sometime false positive, so no need to worry about it. I am trying to add more data to reports in https://github.com/scalameta/metals/issues/5272 Let's see if that helps.
The additional reporting is now added to snapshots. If you are using them then you should see the additional debug data, otherwise we will do a release this month.
After a long time, here I am again...
Current status:
This time, I'm seeing different error messages, besides the ones already known.
2024.03.20 21:51:40 ERROR Unable to run scalafix, please check logs for more info.
java.io.UncheckedIOException: java.nio.file.NoSuchFileException: /project/.metals/.tmp/META-INF/semanticdb/project/src/main/scala/package
at java.nio.file.FileTreeIterator.fetchNextIfNeeded(FileTreeIterator.java:87)
at java.nio.file.FileTreeIterator.hasNext(FileTreeIterator.java:103)
at java.util.Spliterators$IteratorSpliterator.tryAdvance(Spliterators.java:1949)
at java.util.stream.StreamSpliterators$WrappingSpliterator.lambda$initPartialTraversalState$0(StreamSpliterators.java:292)
at java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.fillBuffer(StreamSpliterators.java:206)
at java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.doAdvance(StreamSpliterators.java:169)
at java.util.stream.StreamSpliterators$WrappingSpliterator.tryAdvance(StreamSpliterators.java:298)
at java.util.Spliterators$1Adapter.hasNext(Spliterators.java:681)
at scala.collection.convert.JavaCollectionWrappers$JIteratorWrapper.hasNext(JavaCollectionWrappers.scala:46)
at geny.Generator$SelfClosing.generate(Generator.scala:228)
at geny.Generator$Mapped.generate(Generator.scala:283)
at geny.Generator$Filtered.generate(Generator.scala:276)
at geny.Generator.foreach(Generator.scala:49)
at geny.Generator.foreach$(Generator.scala:49)
at geny.Generator$Filtered.foreach(Generator.scala:274)
at geny.Generator.toBuffer(Generator.scala:127)
at geny.Generator.toBuffer$(Generator.scala:125)
at geny.Generator$Filtered.toBuffer(Generator.scala:274)
at geny.Generator.toList(Generator.scala:133)
at geny.Generator.toList$(Generator.scala:133)
at geny.Generator$Filtered.toList(Generator.scala:274)
at scala.meta.internal.metals.MetalsEnrichments$XtensionAbsolutePathBuffers.deleteRecursively(MetalsEnrichments.scala:607)
at scala.meta.internal.metals.ScalafixProvider.$anonfun$scalafixEvaluate$7(ScalafixProvider.scala:413)
at scala.meta.internal.metals.ScalafixProvider.$anonfun$scalafixEvaluate$7$adapted(ScalafixProvider.scala:413)
at scala.Option.foreach(Option.scala:437)
at scala.meta.internal.metals.ScalafixProvider.$anonfun$scalafixEvaluate$6(ScalafixProvider.scala:413)
at scala.util.Success.map(Try.scala:262)
at scala.meta.internal.metals.ScalafixProvider.$anonfun$scalafixEvaluate$5(ScalafixProvider.scala:381)
at scala.util.Success.flatMap(Try.scala:258)
at scala.meta.internal.metals.ScalafixProvider.scalafixEvaluate(ScalafixProvider.scala:380)
at scala.meta.internal.metals.ScalafixProvider.$anonfun$runScalafixRules$1(ScalafixProvider.scala:136)
at scala.concurrent.impl.Promise$Transformation.run(Promise.scala:470)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.lang.Thread.run(Thread.java:1583)
Caused by: java.nio.file.NoSuchFileException: /project/.metals/.tmp/META-INF/semanticdb/project/src/main/scala/package
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:461)
at java.nio.file.Files.newDirectoryStream(Files.java:481)
at java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:301)
at java.nio.file.FileTreeWalker.next(FileTreeWalker.java:374)
at java.nio.file.FileTreeIterator.fetchNextIfNeeded(FileTreeIterator.java:83)
at java.nio.file.FileTreeIterator.hasNext(FileTreeIterator.java:103)
at java.util.Spliterators$IteratorSpliterator.tryAdvance(Spliterators.java:1949)
at java.util.stream.StreamSpliterators$WrappingSpliterator.lambda$initPartialTraversalState$0(StreamSpliterators.java:292)
at java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.fillBuffer(StreamSpliterators.java:206)
at java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.doAdvance(StreamSpliterators.java:169)
at java.util.stream.StreamSpliterators$WrappingSpliterator.tryAdvance(StreamSpliterators.java:298)
at java.util.Spliterators$1Adapter.hasNext(Spliterators.java:681)
at scala.collection.convert.JavaCollectionWrappers$JIteratorWrapper.hasNext(JavaCollectionWrappers.scala:46)
at geny.Generator$SelfClosing.generate(Generator.scala:228)
at geny.Generator$Mapped.generate(Generator.scala:283)
at geny.Generator$Filtered.generate(Generator.scala:276)
at geny.Generator.foreach(Generator.scala:49)
at geny.Generator.foreach$(Generator.scala:49)
at geny.Generator$Filtered.foreach(Generator.scala:274)
at geny.Generator.toBuffer(Generator.scala:127)
at geny.Generator.toBuffer$(Generator.scala:125)
at geny.Generator$Filtered.toBuffer(Generator.scala:274)
at geny.Generator.toList(Generator.scala:133)
at geny.Generator.toList$(Generator.scala:133)
at geny.Generator$Filtered.toList(Generator.scala:274)
at scala.meta.internal.metals.MetalsEnrichments$XtensionAbsolutePathBuffers.deleteRecursively(MetalsEnrichments.scala:607)
at scala.meta.internal.metals.ScalafixProvider.$anonfun$scalafixEvaluate$7(ScalafixProvider.scala:413)
at scala.meta.internal.metals.ScalafixProvider.$anonfun$scalafixEvaluate$7$adapted(ScalafixProvider.scala:413)
at scala.Option.foreach(Option.scala:437)
at scala.meta.internal.metals.ScalafixProvider.$anonfun$scalafixEvaluate$6(ScalafixProvider.scala:413)
at scala.util.Success.map(Try.scala:262)
at scala.meta.internal.metals.ScalafixProvider.$anonfun$scalafixEvaluate$5(ScalafixProvider.scala:381)
at scala.util.Success.flatMap(Try.scala:258)
at scala.meta.internal.metals.ScalafixProvider.scalafixEvaluate(ScalafixProvider.scala:380)
at scala.meta.internal.metals.ScalafixProvider.$anonfun$runScalafixRules$1(ScalafixProvider.scala:136)
at scala.concurrent.impl.Promise$Transformation.run(Promise.scala:470)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.lang.Thread.run(Thread.java:1583)
[Error - 9:51:40 PM] Request textDocument/codeAction failed.
Message: Internal error.
Code: -32603
java.util.concurrent.CompletionException: java.io.UncheckedIOException: java.nio.file.NoSuchFileException: /project/.metals/.tmp/META-INF/semanticdb/project/src/main/scala/package
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:332)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:347)
at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:708)
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2194)
at scala.meta.internal.metals.CancelTokens$.$anonfun$future$1(CancelTokens.scala:40)
at scala.meta.internal.metals.CancelTokens$.$anonfun$future$1$adapted(CancelTokens.scala:38)
at scala.concurrent.impl.Promise$Transformation.run(Promise.scala:484)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.io.UncheckedIOException: java.nio.file.NoSuchFileException: /project/.metals/.tmp/META-INF/semanticdb/project/src/main/scala/package
at java.base/java.nio.file.FileTreeIterator.fetchNextIfNeeded(FileTreeIterator.java:87)
at java.base/java.nio.file.FileTreeIterator.hasNext(FileTreeIterator.java:103)
at java.base/java.util.Spliterators$IteratorSpliterator.tryAdvance(Spliterators.java:1949)
at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.lambda$initPartialTraversalState$0(StreamSpliterators.java:292)
at java.base/java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.fillBuffer(StreamSpliterators.java:206)
at java.base/java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.doAdvance(StreamSpliterators.java:169)
at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.tryAdvance(StreamSpliterators.java:298)
at java.base/java.util.Spliterators$1Adapter.hasNext(Spliterators.java:681)
at scala.collection.convert.JavaCollectionWrappers$JIteratorWrapper.hasNext(JavaCollectionWrappers.scala:46)
at geny.Generator$SelfClosing.generate(Generator.scala:228)
at geny.Generator$Mapped.generate(Generator.scala:283)
at geny.Generator$Filtered.generate(Generator.scala:276)
at geny.Generator.foreach(Generator.scala:49)
at geny.Generator.foreach$(Generator.scala:49)
at geny.Generator$Filtered.foreach(Generator.scala:274)
at geny.Generator.toBuffer(Generator.scala:127)
at geny.Generator.toBuffer$(Generator.scala:125)
at geny.Generator$Filtered.toBuffer(Generator.scala:274)
at geny.Generator.toList(Generator.scala:133)
at geny.Generator.toList$(Generator.scala:133)
at geny.Generator$Filtered.toList(Generator.scala:274)
at scala.meta.internal.metals.MetalsEnrichments$XtensionAbsolutePathBuffers.deleteRecursively(MetalsEnrichments.scala:607)
at scala.meta.internal.metals.ScalafixProvider.$anonfun$scalafixEvaluate$7(ScalafixProvider.scala:413)
at scala.meta.internal.metals.ScalafixProvider.$anonfun$scalafixEvaluate$7$adapted(ScalafixProvider.scala:413)
at scala.Option.foreach(Option.scala:437)
at scala.meta.internal.metals.ScalafixProvider.$anonfun$scalafixEvaluate$6(ScalafixProvider.scala:413)
at scala.util.Success.map(Try.scala:262)
at scala.meta.internal.metals.ScalafixProvider.$anonfun$scalafixEvaluate$5(ScalafixProvider.scala:381)
at scala.util.Success.flatMap(Try.scala:258)
at scala.meta.internal.metals.ScalafixProvider.scalafixEvaluate(ScalafixProvider.scala:380)
at scala.meta.internal.metals.ScalafixProvider.$anonfun$runScalafixRules$1(ScalafixProvider.scala:136)
at scala.concurrent.impl.Promise$Transformation.run(Promise.scala:470)
... 3 more
Caused by: java.nio.file.NoSuchFileException: /project/.metals/.tmp/META-INF/semanticdb/project/src/main/scala/package
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:461)
at java.base/java.nio.file.Files.newDirectoryStream(Files.java:481)
at java.base/java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:301)
at java.base/java.nio.file.FileTreeWalker.next(FileTreeWalker.java:374)
at java.base/java.nio.file.FileTreeIterator.fetchNextIfNeeded(FileTreeIterator.java:83)
... 34 more
2024.03.20 21:51:51 WARN Could not load snapshot text for /project/path/FileThatBroke.scala
2024.03.20 21:53:38 WARN Could not find semantic tokens for: file:///project/path/FileThatBroke.scala
As usual, the only way to go back to normal is Closing and Reopening the Workspace.
I'm having the same issue, my setup: Mac M1 Pro MacOS 14.4.1 (with the recent Java fix). Scala 2.13.12 SBT 1.9.8
SEVERE: A severe compiler error occurred, full details of the error can be found in the error report /Users/user/Projects/my_project_name/.metals/.reports/metals-full/2024-04-04/r_compiler-error_(my_project_name)_18-57-30-198.md
Apr 04, 2024 6:57:30 PM scala.meta.internal.pc.CompilerAccess retryWithCleanCompiler
INFO: compiler crashed due to an error in the Scala compiler, retrying with new compiler instance.
Apr 04, 2024 6:57:30 PM scala.meta.internal.pc.CompilerAccess handleError
file://<WORKSPACE>/pathhere.scala
### scala.reflect.internal.FatalError: class Object does not have a method getClass
occurred in the presentation compiler.
presentation compiler configuration:
Scala version: 2.13.12
Classpath:
<WORKSPACE>/src/main/resources [exists ], <WORKSPACE>/.bloop/platform-rest-api/bloop-bsp-clients-classes/classes-Metals-devRDxCLTruxI_kfQ4wPYw== [exists ], <HOME>/Library/Caches/bloop/semanticdb/com.sourcegraph.semanticdb-javac.0.9.9/semanticdb-javac-0.9.9.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.12/scala-library-2.13.12.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/http4s/http4s-dsl_2.13/0.23.26/http4s-dsl_2.13-0.23.26.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/http4s/http4s-ember-server_2.13/0.23.26/http4s-ember-server_2.13-0.23.26.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/http4s/http4s-ember-client_2.13/0.23.26/http4s-ember-client_2.13-0.23.26.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/http4s/http4s-prometheus-metrics_2.13/0.23.12/http4s-prometheus-metrics_2.13-0.23.12.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/http4s/http4s-circe_2.13/0.23.26/http4s-circe_2.13-0.23.26.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/gnieh/fs2-data-csv_2.13/1.10.0/fs2-data-csv_2.13-1.10.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/gnieh/fs2-data-csv-generic_2.13/1.10.0/fs2-data-csv-generic_2.13-1.10.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/http4s/http4s-fs2-data-csv_2.13/0.2.0/http4s-fs2-data-csv_2.13-0.2.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/gnieh/fs2-data-json_2.13/1.10.0/fs2-data-json_2.13-1.10.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/gnieh/fs2-data-json-circe_2.13/1.10.0/fs2-data-json-circe_2.13-1.10.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/http4s/http4s-fs2-data-json_2.13/0.4.0/http4s-fs2-data-json_2.13-0.4.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/circe/circe-generic_2.13/0.14.6/circe-generic_2.13-0.14.6.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/circe/circe-parser_2.13/0.14.6/circe-parser_2.13-0.14.6.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/circe/circe-literal_2.13/0.14.6/circe-literal_2.13-0.14.6.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/circe/circe-optics_2.13/0.14.1/circe-optics_2.13-0.14.1.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/github/pureconfig/pureconfig_2.13/0.17.4/pureconfig_2.13-0.17.4.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/github/pureconfig/pureconfig-http4s_2.13/0.17.4/pureconfig-http4s_2.13-0.17.4.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/github/pureconfig/pureconfig-cats-effect_2.13/0.17.4/pureconfig-cats-effect_2.13-0.17.4.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/github/pureconfig/pureconfig-ip4s_2.13/0.17.4/pureconfig-ip4s_2.13-0.17.4.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/github/fd4s/fs2-kafka_2.13/3.0.1/fs2-kafka_2.13-3.0.1.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/log4cats-slf4j_2.13/2.6.0/log4cats-slf4j_2.13-2.6.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/ch/qos/logback/logback-classic/1.4.14/logback-classic-1.4.14.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/artifact.company.io/artifactory/sbt-main/com/company/team/platform/platform-avro-schemas_2.13/2.0.0/platform-avro-schemas_2.13-2.0.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/artifact.company.io/artifactory/sbt-main/com/company/team/platform/platform-utils_2.13/1.0.0/platform-utils_2.13-1.0.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/otel4s-java_2.13/0.2.1/otel4s-java_2.13-0.2.1.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/opentelemetry/opentelemetry-sdk-extension-autoconfigure/1.28.0/opentelemetry-sdk-extension-autoconfigure-1.28.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/opentelemetry/opentelemetry-exporter-prometheus/1.28.0-alpha/opentelemetry-exporter-prometheus-1.28.0-alpha.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/http4s/http4s-core_2.13/0.23.26/http4s-core_2.13-0.23.26.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/http4s/http4s-ember-core_2.13/0.23.26/http4s-ember-core_2.13-0.23.26.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/http4s/http4s-server_2.13/0.23.26/http4s-server_2.13-0.23.26.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/http4s/http4s-client_2.13/0.23.26/http4s-client_2.13-0.23.26.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/keypool_2.13/0.4.9/keypool_2.13-0.4.9.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/prometheus/simpleclient/0.11.0/simpleclient-0.11.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/prometheus/simpleclient_common/0.11.0/simpleclient_common-0.11.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/prometheus/simpleclient_hotspot/0.11.0/simpleclient_hotspot-0.11.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/http4s/http4s-jawn_2.13/0.23.26/http4s-jawn_2.13-0.23.26.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/circe/circe-core_2.13/0.14.6/circe-core_2.13-0.14.6.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/circe/circe-jawn_2.13/0.14.6/circe-jawn_2.13-0.14.6.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/gnieh/fs2-data-text_2.13/1.10.0/fs2-data-text_2.13-1.10.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/co/fs2/fs2-core_2.13/3.9.4/fs2-core_2.13-3.9.4.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/modules/scala-collection-compat_2.13/2.11.0/scala-collection-compat_2.13-2.11.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/portable-scala/portable-scala-reflect_2.13/1.1.2/portable-scala-reflect_2.13-1.1.2.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/chuusai/shapeless_2.13/2.3.10/shapeless_2.13-2.3.10.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-reflect/2.13.12/scala-reflect-2.13.12.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/gnieh/fs2-data-finite-state_2.13/1.10.0/fs2-data-finite-state_2.13-1.10.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/literally_2.13/1.1.0/literally_2.13-1.1.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/cats-parse_2.13/1.0.0/cats-parse_2.13-1.0.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/github/julien-truffaut/monocle-core_2.13/2.1.0/monocle-core_2.13-2.1.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/github/pureconfig/pureconfig-core_2.13/0.17.4/pureconfig-core_2.13-0.17.4.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/github/pureconfig/pureconfig-generic_2.13/0.17.4/pureconfig-generic_2.13-0.17.4.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/cats-effect_2.13/3.5.3/cats-effect_2.13-3.5.3.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/comcast/ip4s-core_2.13/3.5.0/ip4s-core_2.13-3.5.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/packages.confluent.io/maven/org/apache/kafka/kafka-clients/7.3.1-ccs/kafka-clients-7.3.1-ccs.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/log4cats-core_2.13/2.6.0/log4cats-core_2.13-2.6.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/slf4j/slf4j-api/2.0.7/slf4j-api-2.0.7.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/ch/qos/logback/logback-core/1.4.14/logback-core-1.4.14.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/sksamuel/avro4s/avro4s-core_2.13/4.1.0/avro4s-core_2.13-4.1.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/apache/kafka/kafka-streams-scala_2.13/3.3.2/kafka-streams-scala_2.13-3.3.2.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/packages.confluent.io/maven/io/confluent/kafka-streams-avro-serde/7.3.1/kafka-streams-avro-serde-7.3.1.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/otel4s-core_2.13/0.2.1/otel4s-core_2.13-0.2.1.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/otel4s-java-metrics_2.13/0.2.1/otel4s-java-metrics_2.13-0.2.1.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/otel4s-java-trace_2.13/0.2.1/otel4s-java-trace_2.13-0.2.1.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/opentelemetry/opentelemetry-sdk/1.28.0/opentelemetry-sdk-1.28.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/opentelemetry/opentelemetry-sdk-extension-autoconfigure-spi/1.28.0/opentelemetry-sdk-extension-autoconfigure-spi-1.28.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/opentelemetry/opentelemetry-api-events/1.28.0-alpha/opentelemetry-api-events-1.28.0-alpha.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/opentelemetry/opentelemetry-semconv/1.28.0-alpha/opentelemetry-semconv-1.28.0-alpha.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/opentelemetry/opentelemetry-sdk-metrics/1.28.0/opentelemetry-sdk-metrics-1.28.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/case-insensitive_2.13/1.4.0/case-insensitive_2.13-1.4.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/cats-core_2.13/2.10.0/cats-core_2.13-2.10.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/cats-effect-std_2.13/3.5.3/cats-effect-std_2.13-3.5.3.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/http4s/http4s-crypto_2.13/0.2.4/http4s-crypto_2.13-0.2.4.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/co/fs2/fs2-io_2.13/3.9.4/fs2-io_2.13-3.9.4.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scodec/scodec-bits_2.13/1.1.38/scodec-bits_2.13-1.1.38.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/vault_2.13/3.5.0/vault_2.13-3.5.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/log4s/log4s_2.13/1.10.0/log4s_2.13-1.10.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/twitter/hpack/1.0.2/hpack-1.0.2.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/prometheus/simpleclient_tracer_otel/0.11.0/simpleclient_tracer_otel-0.11.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/prometheus/simpleclient_tracer_otel_agent/0.11.0/simpleclient_tracer_otel_agent-0.11.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/jawn-fs2_2.13/2.4.0/jawn-fs2_2.13-2.4.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/jawn-parser_2.13/1.5.1/jawn-parser_2.13-1.5.1.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/circe/circe-numbers_2.13/0.14.6/circe-numbers_2.13-0.14.6.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/cats-free_2.13/2.1.1/cats-free_2.13-2.1.1.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/config/1.4.2/config-1.4.2.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/github/pureconfig/pureconfig-generic-base_2.13/0.17.4/pureconfig-generic-base_2.13-0.17.4.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/cats-effect-kernel_2.13/3.5.3/cats-effect-kernel_2.13-3.5.3.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/github/luben/zstd-jni/1.5.2-1/zstd-jni-1.5.2-1.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/lz4/lz4-java/1.8.0/lz4-java-1.8.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/xerial/snappy/snappy-java/1.1.8.4/snappy-java-1.1.8.4.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.13.12/scala-compiler-2.13.12.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/apache/avro/avro/1.11.0/avro-1.11.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/propensive/magnolia_2.13/0.17.0/magnolia_2.13-0.17.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/json4s/json4s-native_2.13/4.0.5/json4s-native_2.13-4.0.5.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/apache/kafka/kafka-streams/3.3.2/kafka-streams-3.3.2.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/packages.confluent.io/maven/io/confluent/kafka-avro-serializer/7.3.1/kafka-avro-serializer-7.3.1.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/packages.confluent.io/maven/io/confluent/kafka-schema-registry-client/7.3.1/kafka-schema-registry-client-7.3.1.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/apache/commons/commons-compress/1.21/commons-compress-1.21.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/packages.confluent.io/maven/io/confluent/common-utils/7.3.1/common-utils-7.3.1.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/otel4s-core-common_2.13/0.2.1/otel4s-core-common_2.13-0.2.1.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/otel4s-core-metrics_2.13/0.2.1/otel4s-core-metrics_2.13-0.2.1.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/otel4s-core-trace_2.13/0.2.1/otel4s-core-trace_2.13-0.2.1.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/otel4s-java-common_2.13/0.2.1/otel4s-java-common_2.13-0.2.1.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/otel4s-testkit-metrics_2.13/0.2.1/otel4s-testkit-metrics_2.13-0.2.1.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/opentelemetry/opentelemetry-api/1.28.0/opentelemetry-api-1.28.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/opentelemetry/opentelemetry-sdk-common/1.28.0/opentelemetry-sdk-common-1.28.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/opentelemetry/opentelemetry-sdk-trace/1.28.0/opentelemetry-sdk-trace-1.28.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/opentelemetry/opentelemetry-sdk-logs/1.28.0/opentelemetry-sdk-logs-1.28.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/opentelemetry/opentelemetry-extension-incubator/1.28.0-alpha/opentelemetry-extension-incubator-1.28.0-alpha.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/cats-kernel_2.13/2.10.0/cats-kernel_2.13-2.10.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/prometheus/simpleclient_tracer_common/0.11.0/simpleclient_tracer_common-0.11.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/cats-macros_2.13/2.1.1/cats-macros_2.13-2.1.1.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/github/java-diff-utils/java-diff-utils/4.12/java-diff-utils-4.12.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/jline/jline/3.22.0/jline-3.22.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/net/java/dev/jna/jna/5.13.0/jna-5.13.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-core/2.13.4/jackson-core-2.13.4.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.13.4.2/jackson-databind-2.13.4.2.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/propensive/mercator_2.13/0.2.1/mercator_2.13-0.2.1.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/json4s/json4s-core_2.13/4.0.5/json4s-core_2.13-4.0.5.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/json4s/json4s-native-core_2.13/4.0.5/json4s-native-core_2.13-4.0.5.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/rocksdb/rocksdbjni/7.1.2/rocksdbjni-7.1.2.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.13.4/jackson-annotations-2.13.4.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/packages.confluent.io/maven/io/confluent/kafka-schema-serializer/7.3.1/kafka-schema-serializer-7.3.1.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/confluent/logredactor/1.0.10/logredactor-1.0.10.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/swagger/core/v3/swagger-annotations/2.1.10/swagger-annotations-2.1.10.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/otel4s-testkit-common_2.13/0.2.1/otel4s-testkit-common_2.13-0.2.1.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/cats-mtl_2.13/1.3.0/cats-mtl_2.13-1.3.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/opentelemetry/opentelemetry-sdk-testing/1.25.0/opentelemetry-sdk-testing-1.25.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/opentelemetry/opentelemetry-context/1.28.0/opentelemetry-context-1.28.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/json4s/json4s-ast_2.13/4.0.5/json4s-ast_2.13-4.0.5.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/json4s/json4s-scalap_2.13/4.0.5/json4s-scalap_2.13-4.0.5.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/thoughtworks/paranamer/paranamer/2.8/paranamer-2.8.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/checkerframework/checker-qual/3.8.0/checker-qual-3.8.0.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/google/errorprone/error_prone_annotations/2.5.1/error_prone_annotations-2.5.1.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/google/j2objc/j2objc-annotations/1.3/j2objc-annotations-1.3.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/google/re2j/re2j/1.6/re2j-1.6.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/confluent/logredactor-metrics/1.0.10/logredactor-metrics-1.0.10.jar [exists ], <HOME>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/eclipsesource/minimal-json/minimal-json/0.9.5/minimal-json-0.9.5.jar [exists ]
Options:
-release:17 -feature -deprecation -unchecked -language:postfixOps -Wunused -Yrangepos -Xplugin-require:semanticdb
action parameters:
uri: file://<WORKSPACE>/path_here.scala
text:
...
#### Error stacktrace:
scala.reflect.internal.Definitions$DefinitionsClass.fatalMissingSymbol(Definitions.scala:1411)
scala.reflect.internal.Definitions$DefinitionsClass.miss$1(Definitions.scala:1464)
scala.reflect.internal.Definitions$DefinitionsClass.$anonfun$getMemberMethod$2(Definitions.scala:1466)
scala.reflect.internal.Definitions$DefinitionsClass.getMemberMethod(Definitions.scala:1466)
scala.reflect.internal.Definitions$DefinitionsClass.Any_getClass$lzycompute(Definitions.scala:1172)
scala.reflect.internal.Definitions$DefinitionsClass.Any_getClass(Definitions.scala:1172)
scala.reflect.internal.Definitions$DefinitionsClass.syntheticCoreMethods$lzycompute(Definitions.scala:1578)
scala.reflect.internal.Definitions$DefinitionsClass.syntheticCoreMethods(Definitions.scala:1572)
scala.reflect.internal.Definitions$DefinitionsClass.symbolsNotPresentInBytecode$lzycompute(Definitions.scala:1603)
scala.reflect.internal.Definitions$DefinitionsClass.symbolsNotPresentInBytecode(Definitions.scala:1603)
scala.reflect.internal.Definitions$DefinitionsClass.init(Definitions.scala:1659)
scala.tools.nsc.Global$Run.<init>(Global.scala:1249)
scala.tools.nsc.interactive.Global$TyperRun.<init>(Global.scala:1352)
scala.tools.nsc.interactive.Global.newTyperRun(Global.scala:1375)
scala.tools.nsc.interactive.Global.<init>(Global.scala:294)
scala.meta.internal.pc.MetalsGlobal.<init>(MetalsGlobal.scala:40)
scala.meta.internal.pc.ScalaPresentationCompiler.newCompiler(ScalaPresentationCompiler.scala:434)
#### Short summary:
scala.reflect.internal.FatalError: class Object does not have a method getClass
I has a suspicion that it's reflect-portable that is causing that, but I can't seem to reproduce, it might be another libary on the classpath or the reflect library is broken locally? Though the latter is rather unlikely.
@altrack would you be able to add the list of dependencies that you add in your project? Can be just setting from sbt. Also, does this happen all the time in that project?
This happens consistently to me on my project every day, so I'd be very happy to provide any information that can help it be fixed.
Metals Java: 17 from Eclipse Adoptium located at /Users/curtiswilliamfenner/Library/Caches/Coursier/arc/https/github.com/adoptium/temurin17-binaries/releases/download/jdk-17%252B35/OpenJDK17-jdk_x64_mac_hotspot_17_35.tar.gz/jdk-17+35/Contents/Home
Metals Server version: 1.3.1
Below are listed the build targets for this workspace. One build target corresponds to one classpath. For example, normally one sbt project maps to two build targets: main and test.
Project's Java: 11.0.18 located at /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home
Build definition is coming from sbt.
Build server currently being used is Bloop v1.5.17.
metals.log
:
May 21, 2024 11:11:43 AM scala.meta.internal.pc.CompilerAccess handleError
SEVERE: A severe compiler error occurred, full details of the error can be found in the error report /Users/curtiswilliamfenner/Development/two/.metals/.reports/metals-full/2024-05-21/r_compiler-error_(api)_11-11-43-413.md
2024.05.21 11:11:43 WARN Could not find semantic tokens for: file:///Users/curtiswilliamfenner/Development/two/api/src/main/scala/services/organizations/ChallengeResultPreviewService.scala[0m
Linked r_compiler-error_(api)_11-11-43-413.md
:
Describe the bug
Sometimes while coding (while there's still compiling errors to solve), syntax highlight, hover (type at point) and code-completion suddenly stop working.
Looking at the
OUTPUT (Metals)
tab, I see the following message appearing every time I change to a file:Meanwhile, in
metals.log
, I've found this:I've seen this problem before while reporting a different issue.
Expected behavior
No response
Operating system
macOS
Editor/Extension
VS Code
Version of Metals
v0.11.12+73-f470c9c8-SNAPSHOT
Extra context or search terms
VSCode 1.78.2 Scala 2.13.10 sbt 1.8.3 Build server is sbt