scalameta / metals

Scala language server with rich IDE features 🚀
https://scalameta.org/metals/
Apache License 2.0
2.1k stars 336 forks source link

Failed to connect to build server (Metals 0.11.1) #3542

Open Meowcolm024 opened 2 years ago

Meowcolm024 commented 2 years ago

Describe the bug

The server can successfully start yesterday but, it does not work today. When checking the log, the Metals version used yesterday is 0.11.0, but today is 0.11.1.

It keeps Waiting for the bsp connection to come up...

Expected behavior

Server should start.

Operating system

macOS 12 (M1)

Editor/Extension

VS Code

Version of Metals

v0.11.1

Extra context or search terms

Java: Zulu 17

Log:

``` txt 2022.01.18 11:31:17 WARN no build target for: /Users/yatchunglaw/VSCodeProjects/mlscript/shared/src/main/scala/mlscript/ConstraintSolver.scala 2022.01.18 11:31:21 INFO no build target found for /Users/yatchunglaw/VSCodeProjects/mlscript/shared/src/main/scala/mlscript/ConstraintSolver.scala. Using presentation compiler with project's scala-library version: 3.1.0 2022.01.18 11:31:33 INFO shutting down Metals 2022.01.18 11:31:38 INFO tracing is disabled for protocol LSP, to enable tracing of incoming and outgoing JSON messages create an empty file at /Users/yatchunglaw/VSCodeProjects/mlscript/.metals/lsp.trace.json or /Users/yatchunglaw/Library/Caches/org.scalameta.metals/lsp.trace.json 2022.01.18 11:31:38 INFO logging to file /Users/yatchunglaw/VSCodeProjects/mlscript/.metals/metals.log 2022.01.18 11:31:38 INFO Started: Metals version 0.11.1 in workspace '/Users/yatchunglaw/VSCodeProjects/mlscript' for client Visual Studio Code 1.63.2. 2022.01.18 11:31:38 INFO Parse release: 17.0.1 2022.01.18 11:31:39 INFO time: initialize in 0.95s 2022.01.18 11:31:40 INFO Attempting to connect to the build server... 2022.01.18 11:31:39 INFO skipping build import with status 'Installed' 1月 18, 2022 11:31:49 上午 org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleCancellation 警告: Unmatched cancel notification for request id 5 2022.01.18 11:31:50 INFO no build target found for /Users/yatchunglaw/VSCodeProjects/mlscript/shared/src/main/scala/mlscript/TypeSimplifier.scala. Using presentation compiler with project's scala-library version: 3.1.0 2022.01.18 11:31:51 INFO time: code lens generation in 2.2s 1月 18, 2022 11:31:59 上午 org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleCancellation 警告: Unmatched cancel notification for request id 11 Exception in thread "pool-3-thread-1" java.lang.AssertionError: NoDenotation.owner at dotty.tools.dotc.core.SymDenotations$NoDenotation$.owner(SymDenotations.scala:2503) at dotty.tools.dotc.core.SymDenotations$SymDenotation.isSelfSym(SymDenotations.scala:667) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:153) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.fold$1(Trees.scala:1522) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.apply(Trees.scala:1524) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1555) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:259) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1563) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:259) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.fold$1(Trees.scala:1522) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.apply(Trees.scala:1524) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1561) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:259) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse$$anonfun$12(ExtractSemanticDB.scala:214) at scala.runtime.function.JProcedure1.apply(JProcedure1.java:15) at scala.runtime.function.JProcedure1.apply(JProcedure1.java:10) at scala.collection.immutable.List.foreach(List.scala:333) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:214) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.fold$1(Trees.scala:1522) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.apply(Trees.scala:1524) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1555) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:259) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1610) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:177) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.fold$1(Trees.scala:1522) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.apply(Trees.scala:1524) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1555) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:259) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1610) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:177) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.fold$1(Trees.scala:1522) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.apply(Trees.scala:1524) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1555) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:259) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1610) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:177) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse$$anonfun$10(ExtractSemanticDB.scala:200) at scala.runtime.function.JProcedure1.apply(JProcedure1.java:15) at scala.runtime.function.JProcedure1.apply(JProcedure1.java:10) at scala.collection.immutable.List.foreach(List.scala:333) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:200) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1614) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1528) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:174) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse$$anonfun$1(ExtractSemanticDB.scala:138) at scala.runtime.function.JProcedure1.apply(JProcedure1.java:15) at scala.runtime.function.JProcedure1.apply(JProcedure1.java:10) at scala.collection.immutable.List.foreach(List.scala:333) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:138) at scala.meta.internal.pc.SemanticdbTextDocumentProvider.textDocument(SemanticdbTextDocumentProvider.scala:39) at scala.meta.internal.pc.ScalaPresentationCompiler.semanticdbTextDocument$$anonfun$1(ScalaPresentationCompiler.scala:231) at scala.meta.internal.pc.CompilerAccess.withSharedCompiler(CompilerAccess.scala:137) at scala.meta.internal.pc.CompilerAccess.withNonInterruptableCompiler$$anonfun$1(CompilerAccess.scala:125) at scala.meta.internal.pc.CompilerAccess.onCompilerJobQueue$$anonfun$1(CompilerAccess.scala:197) at scala.meta.internal.pc.CompilerJobQueue$Job.run(CompilerJobQueue.scala:139) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833) 2022.01.18 11:32:00 INFO running '/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home/bin/java -Djline.terminal=jline.UnsupportedTerminal -Dsbt.log.noformat=true -Dfile.encoding=UTF-8 -jar /var/folders/y8/m81yj6tx15vfll__y1klk9m80000gn/T/metals14315311824449476818/sbt-launch.jar -Dbloop.export-jar-classifiers=sources bloopInstall' 2022.01.18 11:32:01 INFO [info] welcome to sbt 1.6.1 (Azul Systems, Inc. Java 17.0.1) 2022.01.18 11:32:01 INFO [info] loading global plugins from /Users/yatchunglaw/.sbt/1.0/plugins 2022.01.18 11:32:02 INFO running '/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home/bin/java -Djline.terminal=jline.UnsupportedTerminal -Dsbt.log.noformat=true -Dfile.encoding=UTF-8 -jar /var/folders/y8/m81yj6tx15vfll__y1klk9m80000gn/T/metals5245795261248512035/sbt-launch.jar -Dbloop.export-jar-classifiers=sources bloopInstall' 2022.01.18 11:32:02 INFO [info] loading settings for project mlscript-build-build-build from metals.sbt ... 2022.01.18 11:32:02 INFO [info] loading project definition from /Users/yatchunglaw/VSCodeProjects/mlscript/project/project/project 2022.01.18 11:32:02 INFO [info] welcome to sbt 1.6.1 (Azul Systems, Inc. Java 17.0.1) 2022.01.18 11:32:02 INFO [info] loading settings for project mlscript-build-build from metals.sbt ... 2022.01.18 11:32:02 INFO [info] loading project definition from /Users/yatchunglaw/VSCodeProjects/mlscript/project/project 2022.01.18 11:32:02 INFO [info] loading global plugins from /Users/yatchunglaw/.sbt/1.0/plugins 2022.01.18 11:32:03 INFO [success] Generated .bloop/mlscript-build-build.json 2022.01.18 11:32:03 INFO [success] Total time: 1 s, completed 2022年1月18日 上午11:32:03 2022.01.18 11:32:03 INFO [info] loading settings for project mlscript-build from metals.sbt,plugins.sbt ... 2022.01.18 11:32:03 INFO [info] loading project definition from /Users/yatchunglaw/VSCodeProjects/mlscript/project 2022.01.18 11:32:04 INFO [info] loading settings for project mlscript-build-build-build from metals.sbt ... 2022.01.18 11:32:04 INFO [info] loading project definition from /Users/yatchunglaw/VSCodeProjects/mlscript/project/project/project 2022.01.18 11:32:03 INFO [success] Generated .bloop/mlscript-build.json 2022.01.18 11:32:03 INFO [success] Total time: 0 s, completed 2022年1月18日 上午11:32:04 2022.01.18 11:32:04 INFO [info] loading settings for project mlscript-build-build from metals.sbt ... 2022.01.18 11:32:04 INFO [info] loading project definition from /Users/yatchunglaw/VSCodeProjects/mlscript/project/project 2022.01.18 11:32:03 INFO [info] loading settings for project root from build.sbt ... 2022.01.18 11:32:03 INFO [info] set current project to root (in build file:/Users/yatchunglaw/VSCodeProjects/mlscript/) 2022.01.18 11:32:04 INFO [success] Generated .bloop/mlscriptJVM.json 2022.01.18 11:32:04 INFO [success] Generated .bloop/mlscriptJS.json 2022.01.18 11:32:04 INFO [success] Generated .bloop/root-test.json 2022.01.18 11:32:04 INFO [success] Generated .bloop/mlscriptJS-test.json 2022.01.18 11:32:04 INFO [success] Generated .bloop/root.json 2022.01.18 11:32:04 INFO [success] Generated .bloop/mlscriptJVM-test.json 2022.01.18 11:32:04 INFO [success] Total time: 0 s, completed 2022年1月18日 上午11:32:04 2022.01.18 11:32:04 INFO time: ran 'sbt bloopInstall' in 4.21s 2022.01.18 11:32:04 INFO Attempting to connect to the build server... 2022.01.18 11:32:05 INFO [success] Generated .bloop/mlscript-build-build.json 2022.01.18 11:32:05 INFO [success] Total time: 1 s, completed 2022年1月18日 上午11:32:05 2022.01.18 11:32:05 INFO [info] loading settings for project mlscript-build from metals.sbt,plugins.sbt ... 2022.01.18 11:32:05 INFO [info] loading project definition from /Users/yatchunglaw/VSCodeProjects/mlscript/project 2022.01.18 11:32:05 INFO [success] Generated .bloop/mlscript-build.json 2022.01.18 11:32:05 INFO [success] Total time: 0 s, completed 2022年1月18日 上午11:32:05 2022.01.18 11:32:05 INFO [info] loading settings for project root from build.sbt ... 2022.01.18 11:32:05 INFO [info] set current project to root (in build file:/Users/yatchunglaw/VSCodeProjects/mlscript/) 2022.01.18 11:32:05 INFO [success] Generated .bloop/root-test.json 2022.01.18 11:32:05 INFO [success] Generated .bloop/root.json 2022.01.18 11:32:05 INFO [success] Generated .bloop/mlscriptJVM.json 2022.01.18 11:32:05 INFO [success] Generated .bloop/mlscriptJS.json 2022.01.18 11:32:05 INFO [success] Generated .bloop/mlscriptJVM-test.json 2022.01.18 11:32:05 INFO [success] Generated .bloop/mlscriptJS-test.json 2022.01.18 11:32:05 INFO [success] Total time: 0 s, completed 2022年1月18日 上午11:32:06 2022.01.18 11:32:06 INFO time: ran 'sbt bloopInstall' in 4.24s 2022.01.18 11:32:06 INFO Attempting to connect to the build server... 2022.01.18 11:32:19 INFO time: code lens generation in 20s 2022.01.18 11:32:19 INFO time: code lens generation in 6.08s Exception in thread "pool-3-thread-2" java.lang.AssertionError: NoDenotation.owner at dotty.tools.dotc.core.SymDenotations$NoDenotation$.owner(SymDenotations.scala:2503) at dotty.tools.dotc.core.SymDenotations$SymDenotation.isSelfSym(SymDenotations.scala:667) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:153) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.fold$1(Trees.scala:1522) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.apply(Trees.scala:1524) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1555) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:259) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1563) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:259) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.fold$1(Trees.scala:1522) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.apply(Trees.scala:1524) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1561) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:259) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse$$anonfun$12(ExtractSemanticDB.scala:214) at scala.runtime.function.JProcedure1.apply(JProcedure1.java:15) at scala.runtime.function.JProcedure1.apply(JProcedure1.java:10) at scala.collection.immutable.List.foreach(List.scala:333) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:214) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.fold$1(Trees.scala:1522) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.apply(Trees.scala:1524) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1555) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:259) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1610) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:177) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.fold$1(Trees.scala:1522) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.apply(Trees.scala:1524) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1555) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:259) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1610) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:177) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.fold$1(Trees.scala:1522) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.apply(Trees.scala:1524) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1555) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:259) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1610) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:177) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse$$anonfun$10(ExtractSemanticDB.scala:200) at scala.runtime.function.JProcedure1.apply(JProcedure1.java:15) at scala.runtime.function.JProcedure1.apply(JProcedure1.java:10) at scala.collection.immutable.List.foreach(List.scala:333) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:200) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1614) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1528) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:174) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse$$anonfun$1(ExtractSemanticDB.scala:138) at scala.runtime.function.JProcedure1.apply(JProcedure1.java:15) at scala.runtime.function.JProcedure1.apply(JProcedure1.java:10) at scala.collection.immutable.List.foreach(List.scala:333) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:138) at scala.meta.internal.pc.SemanticdbTextDocumentProvider.textDocument(SemanticdbTextDocumentProvider.scala:39) at scala.meta.internal.pc.ScalaPresentationCompiler.semanticdbTextDocument$$anonfun$1(ScalaPresentationCompiler.scala:231) at scala.meta.internal.pc.CompilerAccess.withSharedCompiler(CompilerAccess.scala:137) at scala.meta.internal.pc.CompilerAccess.withNonInterruptableCompiler$$anonfun$1(CompilerAccess.scala:125) at scala.meta.internal.pc.CompilerAccess.onCompilerJobQueue$$anonfun$1(CompilerAccess.scala:197) at scala.meta.internal.pc.CompilerJobQueue$Job.run(CompilerJobQueue.scala:139) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833) 2022.01.18 11:32:39 INFO time: code lens generation in 33s 2022.01.18 11:32:53 ERROR Starting the bsp launcher for bloop... 2022.01.18 11:32:53 ERROR Opening a bsp server connection with 'bsp --protocol local --socket /var/folders/y8/m81yj6tx15vfll__y1klk9m80000gn/T/bsp-launcher700396374036422221/bsp.socket'... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR error: Giving up on waiting for a connection, printing embedded bloop logs: 2022.01.18 11:32:53 ERROR > [D] Loading workspace settings from bloop.settings.json 2022.01.18 11:32:53 ERROR error: Trying a tcp-based connection to the server instead... 2022.01.18 11:32:53 ERROR Opening a bsp server connection with 'bsp --protocol tcp --port 25984'... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:32:53 ERROR error: Giving up on waiting for a connection, printing embedded bloop logs: 2022.01.18 11:32:53 ERROR > [D] Loading workspace settings from bloop.settings.json 2022.01.18 11:32:53 ERROR error: The launcher failed to establish a bsp connection, aborting... 2022.01.18 11:32:53 ERROR Failed to connect with build server, no functionality will work. java.lang.RuntimeException: The server did not start, got FailedToOpenBspConnection at bloop.launcher.LauncherMain.failPromise$1(Launcher.scala:95) at bloop.launcher.LauncherMain.runLauncher(Launcher.scala:122) at scala.meta.internal.metals.BloopServers$$anon$2.run(BloopServers.scala:169) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.lang.Thread.run(Thread.java:833) 2022.01.18 11:32:53 WARN no build target for: /Users/yatchunglaw/VSCodeProjects/mlscript/shared/src/main/scala/mlscript/Typer.scala 2022.01.18 11:32:53 WARN no build target for: /Users/yatchunglaw/VSCodeProjects/mlscript/shared/src/main/scala/mlscript/TypeSimplifier.scala Exception in thread "pool-3-thread-3" java.lang.AssertionError: NoDenotation.owner at dotty.tools.dotc.core.SymDenotations$NoDenotation$.owner(SymDenotations.scala:2503) at dotty.tools.dotc.core.SymDenotations$SymDenotation.isSelfSym(SymDenotations.scala:667) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:153) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.fold$1(Trees.scala:1522) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.apply(Trees.scala:1524) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1555) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:259) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1563) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:259) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.fold$1(Trees.scala:1522) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.apply(Trees.scala:1524) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1561) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:259) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse$$anonfun$12(ExtractSemanticDB.scala:214) at scala.runtime.function.JProcedure1.apply(JProcedure1.java:15) at scala.runtime.function.JProcedure1.apply(JProcedure1.java:10) at scala.collection.immutable.List.foreach(List.scala:333) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:214) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.fold$1(Trees.scala:1522) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.apply(Trees.scala:1524) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1555) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:259) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1610) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:177) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.fold$1(Trees.scala:1522) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.apply(Trees.scala:1524) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1555) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:259) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1610) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:177) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.fold$1(Trees.scala:1522) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.apply(Trees.scala:1524) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1555) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:259) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1610) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:177) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse$$anonfun$10(ExtractSemanticDB.scala:200) at scala.runtime.function.JProcedure1.apply(JProcedure1.java:15) at scala.runtime.function.JProcedure1.apply(JProcedure1.java:10) at scala.collection.immutable.List.foreach(List.scala:333) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:200) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.apply(Trees.scala:1647) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1614) at dotty.tools.dotc.ast.Trees$Instance$TreeAccumulator.foldOver(Trees.scala:1528) at dotty.tools.dotc.ast.Trees$Instance$TreeTraverser.traverseChildren(Trees.scala:1648) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:174) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse$$anonfun$1(ExtractSemanticDB.scala:138) at scala.runtime.function.JProcedure1.apply(JProcedure1.java:15) at scala.runtime.function.JProcedure1.apply(JProcedure1.java:10) at scala.collection.immutable.List.foreach(List.scala:333) at dotty.tools.dotc.semanticdb.ExtractSemanticDB$Extractor.traverse(ExtractSemanticDB.scala:138) at scala.meta.internal.pc.SemanticdbTextDocumentProvider.textDocument(SemanticdbTextDocumentProvider.scala:39) at scala.meta.internal.pc.ScalaPresentationCompiler.semanticdbTextDocument$$anonfun$1(ScalaPresentationCompiler.scala:231) at scala.meta.internal.pc.CompilerAccess.withSharedCompiler(CompilerAccess.scala:137) at scala.meta.internal.pc.CompilerAccess.withNonInterruptableCompiler$$anonfun$1(CompilerAccess.scala:125) at scala.meta.internal.pc.CompilerAccess.onCompilerJobQueue$$anonfun$1(CompilerAccess.scala:197) at scala.meta.internal.pc.CompilerJobQueue$Job.run(CompilerJobQueue.scala:139) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833) 2022.01.18 11:33:18 ERROR Starting the bsp launcher for bloop... 2022.01.18 11:33:18 ERROR Opening a bsp server connection with 'bsp --protocol local --socket /var/folders/y8/m81yj6tx15vfll__y1klk9m80000gn/T/bsp-launcher7630465103706888744/bsp.socket'... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR error: Giving up on waiting for a connection, printing embedded bloop logs: 2022.01.18 11:33:18 ERROR > [D] Loading workspace settings from bloop.settings.json 2022.01.18 11:33:18 ERROR error: Trying a tcp-based connection to the server instead... 2022.01.18 11:33:18 ERROR Opening a bsp server connection with 'bsp --protocol tcp --port 28395'... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:18 ERROR error: Giving up on waiting for a connection, printing embedded bloop logs: 2022.01.18 11:33:18 ERROR > [D] Loading workspace settings from bloop.settings.json 2022.01.18 11:33:18 ERROR error: The launcher failed to establish a bsp connection, aborting... 2022.01.18 11:33:18 ERROR Failed to connect with build server, no functionality will work. java.lang.RuntimeException: The server did not start, got FailedToOpenBspConnection at bloop.launcher.LauncherMain.failPromise$1(Launcher.scala:95) at bloop.launcher.LauncherMain.runLauncher(Launcher.scala:122) at scala.meta.internal.metals.BloopServers$$anon$2.run(BloopServers.scala:169) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.lang.Thread.run(Thread.java:833) 2022.01.18 11:33:19 ERROR Starting the bsp launcher for bloop... 2022.01.18 11:33:19 ERROR Opening a bsp server connection with 'bsp --protocol local --socket /var/folders/y8/m81yj6tx15vfll__y1klk9m80000gn/T/bsp-launcher17800807143220265351/bsp.socket'... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR error: Giving up on waiting for a connection, printing embedded bloop logs: 2022.01.18 11:33:19 ERROR > [D] Loading workspace settings from bloop.settings.json 2022.01.18 11:33:19 ERROR error: Trying a tcp-based connection to the server instead... 2022.01.18 11:33:19 ERROR Opening a bsp server connection with 'bsp --protocol tcp --port 41209'... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR Waiting for the bsp connection to come up... 2022.01.18 11:33:19 ERROR error: Giving up on waiting for a connection, printing embedded bloop logs: 2022.01.18 11:33:19 ERROR > [D] Loading workspace settings from bloop.settings.json 2022.01.18 11:33:19 ERROR error: The launcher failed to establish a bsp connection, aborting... 2022.01.18 11:33:19 ERROR Failed to connect with build server, no functionality will work. java.lang.RuntimeException: The server did not start, got FailedToOpenBspConnection at bloop.launcher.LauncherMain.failPromise$1(Launcher.scala:95) at bloop.launcher.LauncherMain.runLauncher(Launcher.scala:122) at scala.meta.internal.metals.BloopServers$$anon$2.run(BloopServers.scala:169) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.lang.Thread.run(Thread.java:833) ```
Meowcolm024 commented 2 years ago

It is strange that it may not always fail. Restart the build server may fix the problem, but then clicking import build will bring out this problem again.

Bu things like code navigation still works (but always jump to front), which is quite confusing...

Meowcolm024 commented 2 years ago

It may be a duplicate of #3532, but the metals version is slightly different.

tgodzik commented 2 years ago

Thanks for reporting! What version of Java Zulu 17 do you have exactly? Does it help if you switch to a different version?

Meowcolm024 commented 2 years ago

Thanks for reporting! What version of Java Zulu 17 do you have exactly? Does it help if you switch to a different version?

I'm using:

openjdk 17.0.1 2021-10-19 LTS
OpenJDK Runtime Environment Zulu17.30+15-CA (build 17.0.1+12-LTS)
OpenJDK 64-Bit Server VM Zulu17.30+15-CA (build 17.0.1+12-LTS, mixed mode, sharing)

I currently change to bsp instead.

tgodzik commented 2 years ago

I haven't managed to reproduce, but it what is curious is what you wrote previously:

It is strange that it may not always fail. Restart the build server may fix the problem, but then clicking import build will bring out this problem again.

Looks like maybe it's connected to Java support and the additional export flags that we use to generate semanticdb indexes for Java files. Although that should fail when compiling and not when connecting.

Could try setting Bloop to the newest snapshot see if it helps? in Bloop version setting you can set it to 1.4.12-8-50cc7dc0 ?

Meowcolm024 commented 2 years ago

It doesn't seem working. (importing or restarting also don't work)

tgodzik commented 2 years ago

We could probably try running Bloop CLI with verbose on, but you would need to install that separately via coursier cs install bloop and run bloop compile -verbose <project-name>. That might give us more information.

Last thing you can try is if Open JDK from https://adoptium.net/ is working for you.

Meowcolm024 commented 2 years ago

Thanks, but I think I would use bsp for now :(

tgodzik commented 2 years ago

Sure! If anyone bumps into this problem and can try running Bloop, do let me know!

shishkin commented 2 years ago

I had similar issues. Killing hanging java processes seemed to help. It is probably another instance of bloop hanging.

RafalSierkiewicz commented 2 years ago

I think that I run into the same issue. On metals 0.11.1 I am no able to get things working.

2022.01.19 09:39:06 INFO Attempting to connect to the build server... 2022.01.19 09:39:06 ERROR Failed to connect with build server, no functionality will work. java.util.concurrent.ExecutionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Failed to load project from .../.bloop/app-build-build.json at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:395) at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2022) at scala.meta.internal.metals.BuildServerConnection$.initialize(BuildServerConnection.scala:419) at scala.meta.internal.metals.BuildServerConnection$.$anonfun$fromSockets$1(BuildServerConnection.scala:329) at scala.util.Success.$anonfun$map$1(Try.scala:255) at scala.util.Success.map(Try.scala:213) at scala.concurrent.Future.$anonfun$map$1(Future.scala:292) at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:33) at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33) at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.lang.Thread.run(Thread.java:829) Operating system Ubuntu 20.04 Editor/Extension

VS Code Version of Metals

v0.11.1 Extra context or search terms

Java: openjdk 11.0.11 2021-04-20 LTS OpenJDK Runtime Environment Zulu11.48+21-CA (build 11.0.11+9-LTS) OpenJDK 64-Bit Server VM Zulu11.48+21-CA (build 11.0.11+9-LTS, mixed mode)

I will try to install bloop separately in a minute

RafalSierkiewicz commented 2 years ago

Running bloop compile --verbose <project-name> finished successfully

tgodzik commented 2 years ago

Does it work for you on a non-zulu JDK? Does it always fail on the same project? app-build-build.json is an sbt project, so I wonder whether this is connected to sbt classpath.

You can also try using older/newer Bloop version (can be set in the metals settings) to see if that helps.

What does bloop about return?

RafalSierkiewicz commented 2 years ago

Ok, I guess that it was strange coincidence. Yesterday I changed project sbt.version up to 1.6.1 and locally was 1.5.5. After local update it started to work again.

Sorry for the problems !

ironfish commented 2 years ago

Just ran into this exact problem. After I killed the running java process, everything is now working.

zerodouglas commented 2 years ago

Following @ironfish comment, I also killed the running Java process, restarted VS Code and re-imported by build and everything seemed to go back to normal.

Operating system

macOS 12.1 (M1) Editor/Extension

VS Code

Version of Metals

v1.12.16

Extra context or search terms

Java: OpenJDK v1.8.0_292

Log:

2022.02.02 01:52:35 ERROR Starting the bsp launcher for bloop...
2022.02.02 01:52:35 ERROR Opening a bsp server connection with 'bsp --protocol local --socket /var/folders/2r/p3w98vqd2rg67697ym0bww600000gn/T/bsp-launcher2360262949825378170/bsp.socket'...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR error: Giving up on waiting for a connection, printing embedded bloop logs:
2022.02.02 01:52:35 ERROR > [D] Loading workspace settings from bloop.settings.json
2022.02.02 01:52:35 ERROR error: Trying a tcp-based connection to the server instead...
2022.02.02 01:52:35 ERROR Opening a bsp server connection with 'bsp --protocol tcp --port 31468'...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR Waiting for the bsp connection to come up...
2022.02.02 01:52:35 ERROR error: Giving up on waiting for a connection, printing embedded bloop logs:
2022.02.02 01:52:35 ERROR > [D] Loading workspace settings from bloop.settings.json
2022.02.02 01:52:35 ERROR error: The launcher failed to establish a bsp connection, aborting...
2022.02.02 01:52:35 ERROR Failed to connect with build server, no functionality will work.
java.lang.RuntimeException: The server did not start, got FailedToOpenBspConnection
    at bloop.launcher.LauncherMain.failPromise$1(Launcher.scala:95)
    at bloop.launcher.LauncherMain.runLauncher(Launcher.scala:122)
    at scala.meta.internal.metals.BloopServers$$anon$2.run(BloopServers.scala:169)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)

ironfish commented 2 years ago

Mine was for nvim metals instead of VSCode, but under the covers they both are using the same idea with bloop.

tgodzik commented 2 years ago

I think we should be able to invoke coursier to manually kill Bloop (using bloopgun) in this case when restarting and if the BSP server is disconencted.