TypeError: bad symbolic reference. A signature in Scalaz.class refers to term syntax in package scalaz which is not available.
I get this one often when using scalaz 7:
Error during askOption:
I think its as easy as importing
using:
to recreate it.
Error during askOption:
scala.reflect.internal.Types$TypeError: bad symbolic reference. A signature in Scalaz.class refers to term syntax
in package scalaz which is not available.
It may be completely missing from the current classpath, or the version on
the classpath might be incompatible with the version used when compiling Scalaz.class.
at scala.reflect.internal.pickling.UnPickler$Scan.toTypeError(UnPickler.scala:847)
at scala.reflect.internal.pickling.UnPickler$Scan$LazyTypeRef.complete(UnPickler.scala:854)
at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1229)
at scala.reflect.internal.Types$TypeRef.thisInfo(Types.scala:2399)
at scala.reflect.internal.Types$TypeRef.baseClasses(Types.scala:2404)
at scala.reflect.internal.Types$Type.findMembers(Types.scala:1093)
at scala.reflect.internal.Types$Type.membersBasedOnFlags(Types.scala:718)
at scala.reflect.internal.Types$Type.members(Types.scala:661)
at scala.tools.refactoring.implementations.UnusedImportsFinder$class.neededImportSelector(UnusedImportsFinder.scala:96)
at scala.tools.refactoring.implementations.OrganizeImports.neededImportSelector(OrganizeImports.scala:18)
at scala.tools.refactoring.implementations.OrganizeImports$RemoveUnused$$anonfun$apply$20$$anonfun$9.apply(OrganizeImports.scala:248)
at scala.tools.refactoring.implementations.OrganizeImports$RemoveUnused$$anonfun$apply$20$$anonfun$9.apply(OrganizeImports.scala:247)
at scala.collection.TraversableLike$$anonfun$filter$1.apply(TraversableLike.scala:264)
at scala.collection.immutable.List.foreach(List.scala:318)
at scala.collection.TraversableLike$class.filter(TraversableLike.scala:263)
at scala.collection.AbstractTraversable.filter(Traversable.scala:105)
at scala.tools.refactoring.implementations.OrganizeImports$RemoveUnused$$anonfun$apply$20.apply(OrganizeImports.scala:247)
at scala.tools.refactoring.implementations.OrganizeImports$RemoveUnused$$anonfun$apply$20.apply(OrganizeImports.scala:244)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.immutable.List.foreach(List.scala:318)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
at scala.collection.AbstractTraversable.map(Traversable.scala:105)
at scala.tools.refactoring.implementations.OrganizeImports$RemoveUnused.apply(OrganizeImports.scala:244)
at scala.tools.refactoring.implementations.OrganizeImports$RemoveUnused.apply(OrganizeImports.scala:241)
at scala.Function$$anonfun$chain$1$$anonfun$apply$1.apply(Function.scala:24)
at scala.Function$$anonfun$chain$1$$anonfun$apply$1.apply(Function.scala:24)
at scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:111)
at scala.collection.immutable.List.foldLeft(List.scala:84)
at scala.collection.TraversableOnce$class.$div$colon(TraversableOnce.scala:138)
at scala.collection.AbstractTraversable.$div$colon(Traversable.scala:105)
at scala.Function$$anonfun$chain$1.apply(Function.scala:24)
at scala.tools.refactoring.implementations.OrganizeImports$$anonfun$16$$anonfun$apply$2.applyOrElse(OrganizeImports.scala:372)
at scala.tools.refactoring.implementations.OrganizeImports$$anonfun$16$$anonfun$apply$2.applyOrElse(OrganizeImports.scala:370)
at scala.PartialFunction$Lifted.apply(PartialFunction.scala:218)
at scala.PartialFunction$Lifted.apply(PartialFunction.scala:214)
at scala.tools.refactoring.transformation.Transformations$$anon$1.apply(Transformations.scala:63)
at scala.tools.refactoring.transformation.Transformations$$anon$1.apply(Transformations.scala:62)
at scala.Option.flatMap(Option.scala:170)
at scala.tools.refactoring.transformation.Transformations$Transformation$$anon$7.apply(Transformations.scala:38)
at scala.tools.refactoring.transformation.Transformations$Transformation$$anon$5.apply(Transformations.scala:45)
at scala.tools.refactoring.Refactoring$class.transformFile(Refactoring.scala:38)
at scala.tools.refactoring.MultiStageRefactoring.transformFile(MultiStageRefactoring.scala:14)
at scala.tools.refactoring.implementations.OrganizeImports.perform(OrganizeImports.scala:376)
at scala.tools.refactoring.implementations.OrganizeImports.perform(OrganizeImports.scala:18)
at scala.tools.eclipse.refactoring.ScalaIdeRefactoring$$anonfun$5$$anonfun$apply$7.apply(ScalaIdeRefactoring.scala:158)
at scala.tools.eclipse.refactoring.ScalaIdeRefactoring$$anonfun$5$$anonfun$apply$7.apply(ScalaIdeRefactoring.scala:157)
at scala.tools.nsc.util.InterruptReq.execute(InterruptReq.scala:26)
at scala.tools.nsc.interactive.Global.pollForWork(Global.scala:340)
at scala.tools.nsc.interactive.PresentationCompilerThread.run(PresentationCompilerThread.scala:22)
I think its as easy as importing
import scalaz._
import Scalaz._
val x = 2.some
using:
"org.scalaz" %% "scalaz-core" % "7.0.0-M7",
to recreate it.
Leave a comment
on 2013-03-19 07:54 *
By Iulian Dragos
Is `scalaz-core` enough to get package `scalaz.syntax`? The error message is involved, but it basically says the classpath is incomplete, and can't find package `scalaz.syntax`, but it's referenced from one of the classfiles.
Yeah, the package is there: https://github.com/scalaz/scalaz/tree/v7.0.0-M7/core/src/main/scala/scalaz/syntax
To be clear: this message just appeared in the Eclipse-log - theres no problem building with sbt. However, it seems to have gone now and I can't recreate it again :(
There seem to be some of these issues that appear when I'm in the middle of something with half-baked code that does not yet compile.
There seem to be some of these issues that appear when I'm in the middle of something with half-baked code that does not yet compile.
on 2013-05-08 09:31 *
By Iulian Dragos
I've seen this (wrong) error message as well. I obviously have the right jar on the classpath, so this looks like a regression in the presentation compiler, or the wrong error message.
scala.reflect.internal.Types$TypeError: bad symbolic reference. A signature in ScalaPlugin.class refers to term plugin
in package org.eclipse.ui which is not available.
It may be completely missing from the current classpath, or the version on
the classpath might be incompatible with the version used when compiling ScalaPlugin.class.
at scala.reflect.internal.pickling.UnPickler$Scan.toTypeError(UnPickler.scala:847)
at scala.reflect.internal.pickling.UnPickler$Scan$LazyTypeRef.complete(UnPickler.scala:854)
at scala.reflect.internal.pickling.UnPickler$Scan$LazyTypeRef.load(UnPickler.scala:863)
at scala.reflect.internal.Symbols$Symbol.exists(Symbols.scala:891)
at scala.tools.eclipse.semantichighlighting.classifier.SafeSymbol$$anonfun$safeSymbol$2$$anonfun$2.apply(SafeSymbol.scala:69)
at scala.tools.eclipse.semantichighlighting.classifier.SafeSymbol$$anonfun$safeSymbol$2$$anonfun$2.apply(SafeSymbol.scala:67)
(In scala-ide:2bf95d79bb7002091cada625bf3c75dda7e313b6) Synchronize access to `Names` in the presentation compiler.
This may lead to subtle errors, like the mysterious
assertion error in pickler.
Refs #1001607, #1001606
Branch: master
This may lead to subtle errors, like the mysterious
assertion error in pickler.
Refs #1001607, #1001606
Branch: master
on 2013-06-05 11:35 *
By Iulian Dragos
(In scala-ide:500949dab39478bf66c6ad7ab1a0006ec1acfa62) Synchronize access to `Names` in the presentation compiler.
This may lead to subtle errors, like the mysterious
assertion error in pickler.
Refs #1001607, #1001606
(cherry picked from commit 2bf95d79bb7002091cada625bf3c75dda7e313b6)
Conflicts:
org.scala-ide.sdt.core/src/scala/tools/eclipse/javaelements/ScalaStructureBuilder.scala
Branch: release/scala-ide-3.0.x
This may lead to subtle errors, like the mysterious
assertion error in pickler.
Refs #1001607, #1001606
(cherry picked from commit 2bf95d79bb7002091cada625bf3c75dda7e313b6)
Conflicts:
org.scala-ide.sdt.core/src/scala/tools/eclipse/javaelements/ScalaStructureBuilder.scala
Branch: release/scala-ide-3.0.x
Ticket assignment reverted due to inactivity.