-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Labels
Description
Bug surfaced while auto-indexing https://sourcegraph.com/maven/org.scala-lang/scala-library/-/code-graph/indexes/TFNJRkluZGV4OjI0NDE3Mzk=, exception throwing for the following symbol https://sourcegraph.com/maven/org.scala-lang/scala-library/-/blob/scala/Function6.scala?L30
+ scip-java index --build-tool=scip
Using JVM version '8'
Compiling 32 Java sources
$ /root/.cache/coursier/jvm/adopt@1.8.0-292/bin/javac @/data/target/javacopts.txt
Generating SCIP...com.sourcegraph.scip_semanticdb.SignatureFormatterException: failed to format symbol 'scala/Function6#curried().'
symbol: "scala/Function6#curried()."
kind: METHOD
display_name: "curried"
annotations {
tpe {
type_ref {
symbol: "scala/annotation/unspecialized#"
}
}
}
language: SCALA
signature {
method_signature {
type_parameters {
}
return_type {
type_ref {
symbol: "scala/Function1#"
type_arguments {
type_ref {
symbol: "scala/Function6#[T1]"
}
}
type_arguments {
type_ref {
symbol: "scala/Function1#"
type_arguments {
type_ref {
symbol: "scala/Function6#[T2]"
}
}
type_arguments {
type_ref {
symbol: "scala/Function1#"
type_arguments {
type_ref {
symbol: "scala/Function6#[T3]"
}
}
type_arguments {
type_ref {
symbol: "scala/Function1#"
type_arguments {
type_ref {
symbol: "scala/Function6#[T4]"
}
}
type_arguments {
type_ref {
symbol: "scala/Function1#"
type_arguments {
type_ref {
symbol: "scala/Function6#[T5]"
}
}
type_arguments {
type_ref {
symbol: "scala/Function1#"
type_arguments {
type_ref {
symbol: "scala/Function6#[T6]"
}
}
type_arguments {
type_ref {
symbol: "scala/Function6#[R]"
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
access {
public_access {
}
}
Caused by: java.lang.IndexOutOfBoundsException: Index: -1
at java.util.Collections$EmptyList.get(Collections.java:4456)
at com.sourcegraph.semanticdb_javac.Semanticdb$TypeRef.getTypeArguments(Semanticdb.java:23534)
at com.sourcegraph.scip_semanticdb.SignatureFormatter.formatType(SignatureFormatter.java:573)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.stream.SliceOps$1$1.accept(SliceOps.java:204)
at java.util.ArrayList$ArrayListSpliterator.tryAdvance(ArrayList.java:1361)
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:499)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:486)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566)
at com.sourcegraph.scip_semanticdb.SignatureFormatter.formatType(SignatureFormatter.java:570)
at com.sourcegraph.scip_semanticdb.SignatureFormatter.formatScalaMethodSignature(SignatureFormatter.java:283)
at com.sourcegraph.scip_semanticdb.SignatureFormatter.formatMethodSignature(SignatureFormatter.java:211)
at com.sourcegraph.scip_semanticdb.SignatureFormatter.formatSymbolUnsafe(SignatureFormatter.java:67)
at com.sourcegraph.scip_semanticdb.SignatureFormatter.formatSymbol(SignatureFormatter.java:56)
at com.sourcegraph.scip_semanticdb.ScipSemanticdb.processTypedDocument(ScipSemanticdb.java:138)
at com.sourcegraph.scip_semanticdb.ScipSemanticdb.lambda$runTyped$0(ScipSemanticdb.java:67)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1384)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
at java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:290)
at java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:731)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.pollAndExecAll(ForkJoinPool.java:1021)
at java.util.concurrent.ForkJoinPool$WorkQueue.execLocalTasks(ForkJoinPool.java:1046)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1058)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175)
time="2022-08-02T11:44:57Z" level=error msg="Process exited with status 1\n"