Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel crashes on <Shift-tab> while trying to access a method #1447

Open
sbushmanov opened this issue Nov 24, 2024 · 0 comments
Open

Kernel crashes on <Shift-tab> while trying to access a method #1447

sbushmanov opened this issue Nov 24, 2024 · 0 comments

Comments

@sbushmanov
Copy link

sbushmanov commented Nov 24, 2024

The kernel was installed by:

git clone https://github.com/almond-sh/almond
./mill dev.launcherFast 2.13.14
 out/scala/scala-kernel/2.13.14/unixFastLauncher.dest/launcher  --install --force --id scala213 --display-name "Scala (2.13.14)"

As the title says, while trying to access a method on an object like e.g.:

1.<press Shift-tab>

kernel dies:
image

Error message:

java.lang.NoClassDefFoundError: scala/meta/internal/inputs/package$XtensionInputSyntaxStructure$
at scala.meta.internal.semanticdb.scalac.SymbolOps.scala$meta$internal$semanticdb$scalac$SymbolOps$$freshSymbol(SymbolOps.scala:340)
at scala.meta.internal.semanticdb.scalac.SymbolOps$XtensionGSymbolMSymbol.uncached$1(SymbolOps.scala:26)
at scala.meta.internal.semanticdb.scalac.SymbolOps$XtensionGSymbolMSymbol.toSemantic(SymbolOps.scala:54)
at almond.internals.ScalaInterpreterInspections.inspect(ScalaInterpreterInspections.scala:136)
at almond.ScalaInterpreter.inspect(ScalaInterpreter.scala:200)
at almond.interpreter.Interpreter.inspect(Interpreter.scala:152)
at almond.interpreter.Interpreter.inspect$(Interpreter.scala:151)
at almond.ScalaInterpreter.inspect(ScalaInterpreter.scala:25)
at almond.interpreter.util.AsyncInterpreterOps.asyncInspect(AsyncInterpreterOps.scala:25)
at almond.interpreter.util.AsyncInterpreterOps.asyncInspect$(AsyncInterpreterOps.scala:20)
at almond.ScalaInterpreter.asyncInspect(ScalaInterpreter.scala:25)
at almond.ScalaInterpreter.asyncInspect(ScalaInterpreter.scala:25)
at almond.interpreter.InterpreterToIOInterpreter.$anonfun$inspectionCancellable$4(InterpreterToIOInterpreter.scala:135)
at almond.interpreter.util.Cancellable.run(Cancellable.scala:31)
at almond.interpreter.InterpreterToIOInterpreter.inspect(InterpreterToIOInterpreter.scala:146)
at almond.interpreter.messagehandlers.InterpreterMessageHandlers.$anonfun$inspectHandler$1(InterpreterMessageHandlers.scala:187)
at almond.interpreter.messagehandlers.MessageHandler$.$anonfun$blocking$2(MessageHandler.scala:154)
at almond.interpreter.messagehandlers.MessageHandler$.$anonfun$blockingTaskStream$1(MessageHandler.scala:199)
at cats.effect.IOFiber.runLoop(IOFiber.scala:343)
at cats.effect.IOFiber.execR(IOFiber.scala:1362)
at cats.effect.IOFiber.run(IOFiber.scala:112)
at cats.effect.unsafe.WorkerThread.run(WorkerThread.scala:634)
Caused by: java.lang.ClassNotFoundException: scala.meta.internal.inputs.package$XtensionInputSyntaxStructure$
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:592)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
... 22 more
Exception in thread "io-compute-14" java.lang.NoClassDefFoundError: scala/meta/internal/inputs/package$XtensionInputSyntaxStructure$
at scala.meta.internal.semanticdb.scalac.SymbolOps.scala$meta$internal$semanticdb$scalac$SymbolOps$$freshSymbol(SymbolOps.scala:340)
at scala.meta.internal.semanticdb.scalac.SymbolOps$XtensionGSymbolMSymbol.uncached$1(SymbolOps.scala:26)
at scala.meta.internal.semanticdb.scalac.SymbolOps$XtensionGSymbolMSymbol.toSemantic(SymbolOps.scala:54)
at almond.internals.ScalaInterpreterInspections.inspect(ScalaInterpreterInspections.scala:136)
at almond.ScalaInterpreter.inspect(ScalaInterpreter.scala:200)
at almond.interpreter.Interpreter.inspect(Interpreter.scala:152)
at almond.interpreter.Interpreter.inspect$(Interpreter.scala:151)
at almond.ScalaInterpreter.inspect(ScalaInterpreter.scala:25)
at almond.interpreter.util.AsyncInterpreterOps.asyncInspect(AsyncInterpreterOps.scala:25)
at almond.interpreter.util.AsyncInterpreterOps.asyncInspect$(AsyncInterpreterOps.scala:20)
at almond.ScalaInterpreter.asyncInspect(ScalaInterpreter.scala:25)

Surprisingly, neither Scala 2.12 nor Scala 3 have this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant