You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2024.08.25 21:04:03 ERROR issues while parsing: /home/susliko/.cache/coursier/v1/https/repo1.maven.org/maven2/org/tpolecat/doobie-free_2.13/1.0.0-RC5/doobie-free_2.13-1.0.0-RC5-sources.jar
scala.meta.internal.tokenizers.package$UnexpectedInputEndException
at scala.meta.internal.tokenizers.LegacyScanner.$anonfun$nextToken$1(LegacyScanner.scala:172)
at scala.Function0.apply$mcV$sp(Function0.scala:42)
at scala.meta.internal.tokenizers.LegacyScanner.scala$meta$internal$tokenizers$LegacyScanner$$nextToken(LegacyScanner.scala:178)
at scala.meta.internal.tokenizers.LegacyScanner.nextToken(LegacyScanner.scala:172)
at scala.meta.internal.mtags.ScalaToplevelMtags$XtensionScanner.mtagsNextToken(ScalaToplevelMtags.scala:72)
at scala.meta.internal.mtags.ScalaToplevelMtags.loop(ScalaToplevelMtags.scala:481)
at scala.meta.internal.mtags.ScalaToplevelMtags.indexRoot(ScalaToplevelMtags.scala:84)
at scala.meta.internal.mtags.MtagsIndexer.index(MtagsIndexer.scala:21)
at scala.meta.internal.mtags.MtagsIndexer.index$(MtagsIndexer.scala:20)
at scala.meta.internal.mtags.ScalaToplevelMtags.index(ScalaToplevelMtags.scala:44)
at scala.meta.internal.mtags.Mtags.indexWithOverrides(Mtags.scala:74)
at scala.meta.internal.mtags.SymbolIndexBucket.indexSource(SymbolIndexBucket.scala:124)
at scala.meta.internal.mtags.SymbolIndexBucket.addSourceFile(SymbolIndexBucket.scala:107)
at scala.meta.internal.mtags.SymbolIndexBucket.$anonfun$addSourceJar$2(SymbolIndexBucket.scala:71)
...
Expected behavior
No exceptions while indexing dependency jars
Operating system
Linux
Editor/Extension
Nvim (nvim-metals)
Version of Metals
v1.3.5
Extra context or search terms
No response
The text was updated successfully, but these errors were encountered:
One file failing to tokenize should not cause the entire jar to not be tokenized.
This was prompted by /doobie/free/kleisliinterpreter.scala which was ended in the middle inside the sources.
Fixesscalameta#6717
Thanks for reporting! This actually a valid exception since that file ends in the middle, the source is broken. I added an improvement to handle single broken file like that
One file failing to tokenize should not cause the entire jar to not be tokenized.
This was prompted by /doobie/free/kleisliinterpreter.scala which was ended in the middle inside the sources.
Fixes#6717
Describe the bug
doobie.scala
scala-cli setup-ide doobie.scala
Expected behavior
No exceptions while indexing dependency jars
Operating system
Linux
Editor/Extension
Nvim (nvim-metals)
Version of Metals
v1.3.5
Extra context or search terms
No response
The text was updated successfully, but these errors were encountered: