compile request is taking longer than expected (over 10 minutes), #1463
-
I use v1.29.0, but bloop server is not responding.
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 16 replies
-
Do you see anything else? You might be able to use visualvm or jstack to see why Bloop hanged. I suspect a compiler error or GC issue. Sending more of the log would be super useful. |
Beta Was this translation helpful? Give feedback.
-
I use SpinalHdl
I have another project that uses bloop of 1.5.13, and it has the same issue. |
Beta Was this translation helpful? Give feedback.
-
Looks like you have JRE set maybe? Could you update metals.javaHome to be sure that this is not the case? |
Beta Was this translation helpful? Give feedback.
-
I set metals.javaHome as
|
Beta Was this translation helpful? Give feedback.
-
the markdown content file://<WORKSPACE>/src/main/scala/bypass/Stat.scala
### java.lang.StringIndexOutOfBoundsException: String index out of range: -5
occurred in the presentation compiler.
presentation compiler configuration:
Scala version: 2.12.15
Classpath:
<WORKSPACE>/.bloop/starlib/bloop-bsp-clients-classes/classes-Metals-RSD8g7m0SH-EB8-dAZeebg== [exists ], <HOME>/.cache/bloop/semanticdb/com.sourcegraph.semanticdb-javac.0.9.9/semanticdb-javac-0.9.9.jar [exists ], <HOME>/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.12.15/scala-library-2.12.15.jar [exists ], <HOME>/.cache/coursier/v1/https/repo1.maven.org/maven2/com/github/spinalhdl/spinalhdl-core_2.12/1.10.0/spinalhdl-core_2.12-1.10.0.jar [exists ], <HOME>/.cache/coursier/v1/https/repo1.maven.org/maven2/com/github/spinalhdl/spinalhdl-lib_2.12/1.10.0/spinalhdl-lib_2.12-1.10.0.jar [exists ], <HOME>/.cache/coursier/v1/https/repo1.maven.org/maven2/com/github/nscala-time/nscala-time_2.12/2.26.0/nscala-time_2.12-2.26.0.jar [exists ], <HOME>/.cache/coursier/v1/https/repo1.maven.org/maven2/jline/jline/2.13/jline-2.13.jar [exists ], <HOME>/.cache/coursier/v1/http/luomu306.com/api/v4/projects/441/packages/maven/rohm/rohmlib_2.12/1.5.0/rohmlib_2.12-1.5.0.jar [exists ], <HOME>/.cache/coursier/v1/https/repo1.maven.org/maven2/com/github/scopt/scopt_2.12/4.1.0/scopt_2.12-4.1.0.jar [exists ], <HOME>/.cache/coursier/v1/https/repo1.maven.org/maven2/com/github/spinalhdl/spinalhdl-idsl-plugin_2.12/1.10.0/spinalhdl-idsl-plugin_2.12-1.10.0.jar [exists ], <HOME>/.cache/coursier/v1/https/repo1.maven.org/maven2/com/github/spinalhdl/spinalhdl-sim_2.12/1.10.0/spinalhdl-sim_2.12-1.10.0.jar [exists ], <HOME>/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scalactic/scalactic_2.12/3.2.10/scalactic_2.12-3.2.10.jar [exists ], <HOME>/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-reflect/2.12.15/scala-reflect-2.12.15.jar [exists ], <HOME>/.cache/coursier/v1/https/repo1.maven.org/maven2/com/lihaoyi/sourcecode_2.12/0.3.0/sourcecode_2.12-0.3.0.jar [exists ], <HOME>/.cache/coursier/v1/https/repo1.maven.org/maven2/commons-io/commons-io/2.11.0/commons-io-2.11.0.jar [exists ], <HOME>/.cache/coursier/v1/https/repo1.maven.org/maven2/joda-time/joda-time/2.10.8/joda-time-2.10.8.jar [exists ], <HOME>/.cache/coursier/v1/https/repo1.maven.org/maven2/org/joda/joda-convert/2.2.1/joda-convert-2.2.1.jar [exists ], <HOME>/.cache/coursier/v1/https/repo1.maven.org/maven2/org/fusesource/jansi/jansi/1.11/jansi-1.11.jar [exists ], <HOME>/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.12.15/scala-compiler-2.12.15.jar [exists ], <HOME>/.cache/coursier/v1/https/repo1.maven.org/maven2/com/github/spinalhdl/spinalhdl-idsl-payload_2.12/1.10.0/spinalhdl-idsl-payload_2.12-1.10.0.jar [exists ], <HOME>/.cache/coursier/v1/https/repo1.maven.org/maven2/net/openhft/affinity/3.23.2/affinity-3.23.2.jar [exists ], <HOME>/.cache/coursier/v1/https/repo1.maven.org/maven2/org/slf4j/slf4j-simple/2.0.5/slf4j-simple-2.0.5.jar [exists ], <HOME>/.cache/coursier/v1/https/repo1.maven.org/maven2/com/github/oshi/oshi-core/6.4.0/oshi-core-6.4.0.jar [exists ], <HOME>/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.12/1.0.6/scala-xml_2.12-1.0.6.jar [exists ], <HOME>/.cache/coursier/v1/https/repo1.maven.org/maven2/org/slf4j/slf4j-api/2.0.5/slf4j-api-2.0.5.jar [exists ], <HOME>/.cache/coursier/v1/https/repo1.maven.org/maven2/net/java/dev/jna/jna/5.12.1/jna-5.12.1.jar [exists ], <HOME>/.cache/coursier/v1/https/repo1.maven.org/maven2/net/java/dev/jna/jna-platform/5.12.1/jna-platform-5.12.1.jar [exists ]
Options:
-deprecation -Yrangepos -Xplugin-require:semanticdb
action parameters:
offset: 12003
uri: file://<WORKSPACE>/src/main/scala/bypass/Stat.scala
#### Error stacktrace:
java.lang.String.<init>(String.java:196)
scala.tools.nsc.interactive.Global.typeCompletions$1(Global.scala:1231)
scala.tools.nsc.interactive.Global.completionsAt(Global.scala:1254)
scala.meta.internal.pc.SignatureHelpProvider.$anonfun$treeSymbol$1(SignatureHelpProvider.scala:390)
scala.Option.map(Option.scala:230)
scala.meta.internal.pc.SignatureHelpProvider.treeSymbol(SignatureHelpProvider.scala:388)
scala.meta.internal.pc.SignatureHelpProvider$MethodCall$.unapply(SignatureHelpProvider.scala:205)
scala.meta.internal.pc.SignatureHelpProvider$MethodCallTraverser.visit(SignatureHelpProvider.scala:316)
scala.meta.internal.pc.SignatureHelpProvider$MethodCallTraverser.traverse(SignatureHelpProvider.scala:310)
scala.meta.internal.pc.SignatureHelpProvider$MethodCallTraverser.fromTree(SignatureHelpProvider.scala:279)
scala.meta.internal.pc.SignatureHelpProvider.signatureHelp(SignatureHelpProvider.scala:27)
scala.meta.internal.pc.ScalaPresentationCompiler.$anonfun$signatureHelp$1(ScalaPresentationCompiler.scala:310)
#### Short summary:
java.lang.StringIndexOutOfBoundsException: String index out of range: -5 |
Beta Was this translation helpful? Give feedback.
I found a solution.
I upgraded java from openjdk8 to openjdk17, and it works.
Maybe there is something error in java8 of ubuntu,
It works correctly on my mac with openjdk8