java.lang.UnsupportedOperationException: implementation restriction: don't yet know how to typecheck Defn.Object

GitHub | xeno-by | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    crash in show[Semantics]

    GitHub | 1 year ago | xeno-by
    java.lang.UnsupportedOperationException: implementation restriction: don't yet know how to typecheck Defn.Object

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      implementation restriction: don't yet know how to typecheck Defn.Object

      at scala.meta.internal.hosts.scalac.contexts.Adapter.loop$1()
    2. scala.meta.internal
      TreeSemantics$$anonfun$apply$1.apply
      1. scala.meta.internal.hosts.scalac.contexts.Adapter.loop$1(Adapter.scala:118)
      2. scala.meta.internal.hosts.scalac.contexts.Adapter.typecheck(Adapter.scala:123)
      3. scala.meta.internal.prettyprinters.TreeSemantics$$anonfun$apply$1.apply(TreeSemantics.scala:12)
      4. scala.meta.internal.prettyprinters.TreeSemantics$$anonfun$apply$1.apply(TreeSemantics.scala:11)
      4 frames
    3. scala.meta.prettyprinters
      Api$XtensionShow.show
      1. scala.meta.prettyprinters.Semantics$$anon$1.apply(Semantics.scala:10)
      2. scala.meta.prettyprinters.Api$XtensionShow.show(Api.scala:10)
      2 frames
    4. Unknown
      Test.main
      1. Test$.main(Test.scala:14)
      2. Test.main(Test.scala)
      2 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    6. Scala
      ScalaClassLoader$URLClassLoader.run
      1. scala.reflect.internal.util.ScalaClassLoader$$anonfun$run$1.apply(ScalaClassLoader.scala:70)
      2. scala.reflect.internal.util.ScalaClassLoader$class.asContext(ScalaClassLoader.scala:31)
      3. scala.reflect.internal.util.ScalaClassLoader$URLClassLoader.asContext(ScalaClassLoader.scala:101)
      4. scala.reflect.internal.util.ScalaClassLoader$class.run(ScalaClassLoader.scala:70)
      5. scala.reflect.internal.util.ScalaClassLoader$URLClassLoader.run(ScalaClassLoader.scala:101)
      5 frames
    7. Scala Compiler
      MainGenericRunner.main
      1. scala.tools.nsc.CommonRunner$class.run(ObjectRunner.scala:22)
      2. scala.tools.nsc.ObjectRunner$.run(ObjectRunner.scala:39)
      3. scala.tools.nsc.CommonRunner$class.runAndCatch(ObjectRunner.scala:29)
      4. scala.tools.nsc.ObjectRunner$.runAndCatch(ObjectRunner.scala:39)
      5. scala.tools.nsc.MainGenericRunner.runTarget$1(MainGenericRunner.scala:65)
      6. scala.tools.nsc.MainGenericRunner.run$1(MainGenericRunner.scala:87)
      7. scala.tools.nsc.MainGenericRunner.process(MainGenericRunner.scala:98)
      8. scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:103)
      9. scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)
      9 frames