Comments (4)
Thanks for reporting. Looking into it :)
from pickling.
I see the same with this code:
case class TestCase(p: Option[String])
object Test extends App {
import scala.pickling._
import json._
val m = TestCase(Some("a"))
val pckl = m.pickle
val lst = pckl.unpickle[TestCase]
}
Improbably long string of error messages generated:
Last login: Mon Oct 14 01:21:33 on ttys002
pickle git:master jony$ sbt
[info] Set current project to sbt-pickling-example (in build file:/Users/jony/Desktop/pickle/)
> compile
[info] Updating {file:/Users/jony/Desktop/pickle/}pickle...
[warn] Binary version (0.8.0-SNAPSHOT) for dependency org.scala-lang#scala-pickling_2.10;0.8.0-SNAPSHOT
[warn] in sbt-pickling-example#sbt-pickling-example_2.10;0.1-SNAPSHOT differs from Scala binary version in project (2.10).
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Compiling 1 Scala source to /Users/jony/Desktop/pickle/target/scala-2.10/classes...
[info] /Users/jony/Desktop/pickle/Test.scala:9: pickling.this.SPickler.genPickler is not a valid implicit value for scala.pickling.SPickler[TestCase] because:
[info] stepping aside: repeating itself
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: pickling.this.SPickler.genPickler is not a valid implicit value for scala.pickling.SPickler[Option[String]] because:
[info] stepping aside: repeating itself
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: pickling.this.SPickler.genPickler is not a valid implicit value for scala.pickling.SPickler[Null] because:
[info] stepping aside: repeating itself
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: pickling.this.SPickler.genPickler is not a valid implicit value for scala.pickling.SPickler[Null] because:
[info] stepping aside: there are other candidates
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: materializing requested reflect.runtime.universe.type.TypeTag[None.type] using `package`.this.materializeTypeTag[None.type](scala.reflect.runtime.`package`.universe)
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: pickling.this.SPickler.genPickler is not a valid implicit value for scala.pickling.SPickler[None.type] because:
[info] stepping aside: repeating itself
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: materializing requested reflect.runtime.universe.type.TypeTag[Some[String]] using `package`.this.materializeTypeTag[Some[String]](scala.reflect.runtime.`package`.universe)
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: pickling.this.SPickler.genPickler is not a valid implicit value for scala.pickling.SPickler[Some[String]] because:
[info] stepping aside: repeating itself
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: materializing requested reflect.runtime.universe.type.TypeTag[String] using `package`.this.materializeTypeTag[String](scala.reflect.runtime.`package`.universe)
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: pickling.this.SPickler.genPickler is not a valid implicit value for scala.pickling.SPickler[String] because:
[info] stepping aside: repeating itself
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: pickling.this.SPickler.genPickler is not a valid implicit value for scala.pickling.SPickler[String] because:
[info] stepping aside: there are other candidates
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: materializing requested reflect.runtime.universe.type.TypeTag[Null] using `package`.this.materializeTypeTag[Null](scala.reflect.runtime.`package`.universe)
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: materializing requested reflect.runtime.universe.type.TypeTag[Option[String]] using `package`.this.materializeTypeTag[Option[String]](scala.reflect.runtime.`package`.universe)
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: materializing requested reflect.runtime.universe.type.TypeTag[Null] using `package`.this.materializeTypeTag[Null](scala.reflect.runtime.`package`.universe)
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: pickling.this.SPickler.genPickler is not a valid implicit value for scala.pickling.SPickler[Null] because:
[info] stepping aside: repeating itself
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: pickling.this.SPickler.genPickler is not a valid implicit value for scala.pickling.SPickler[Null] because:
[info] stepping aside: there are other candidates
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: materializing requested reflect.runtime.universe.type.TypeTag[TestCase] using `package`.this.materializeTypeTag[TestCase](scala.reflect.runtime.`package`.universe)
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: pickling.this.SPickler.genPickler is not a valid implicit value for scala.pickling.SPickler[TestCase] because:
[info] stepping aside: repeating itself
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: pickling.this.SPickler.genPickler is not a valid implicit value for scala.pickling.SPickler[Option[String]] because:
[info] stepping aside: repeating itself
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: materializing requested reflect.runtime.universe.type.TypeTag[Null] using `package`.this.materializeTypeTag[Null](scala.reflect.runtime.`package`.universe)
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: materializing requested reflect.runtime.universe.type.TypeTag[None.type] using `package`.this.materializeTypeTag[None.type](scala.reflect.runtime.`package`.universe)
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: pickling.this.SPickler.genPickler is not a valid implicit value for scala.pickling.SPickler[None.type] because:
[info] stepping aside: repeating itself
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: materializing requested reflect.runtime.universe.type.TypeTag[Some[String]] using `package`.this.materializeTypeTag[Some[String]](scala.reflect.runtime.`package`.universe)
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: pickling.this.SPickler.genPickler is not a valid implicit value for scala.pickling.SPickler[Some[String]] because:
[info] stepping aside: repeating itself
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: materializing requested reflect.runtime.universe.type.TypeTag[String] using `package`.this.materializeTypeTag[String](scala.reflect.runtime.`package`.universe)
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: pickling.this.SPickler.genPickler is not a valid implicit value for scala.pickling.SPickler[String] because:
[info] stepping aside: repeating itself
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: pickling.this.SPickler.genPickler is not a valid implicit value for scala.pickling.SPickler[String] because:
[info] stepping aside: there are other candidates
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: materializing requested reflect.runtime.universe.type.TypeTag[Null] using `package`.this.materializeTypeTag[Null](scala.reflect.runtime.`package`.universe)
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: materializing requested reflect.runtime.universe.type.TypeTag[Option[String]] using `package`.this.materializeTypeTag[Option[String]](scala.reflect.runtime.`package`.universe)
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:9: materializing requested reflect.runtime.universe.type.TypeTag[TestCase] using `package`.this.materializeTypeTag[TestCase](scala.reflect.runtime.`package`.universe)
[info] val pckl = m.pickle
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:10: materializing requested reflect.runtime.universe.type.TypeTag[TestCase] using `package`.this.materializeTypeTag[TestCase](scala.reflect.runtime.`package`.universe)
[info] val lst = pckl.unpickle[TestCase]
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:10: pickling.this.Unpickler.genUnpickler is not a valid implicit value for scala.pickling.Unpickler[TestCase] because:
[info] stepping aside: repeating itself
[info] val lst = pckl.unpickle[TestCase]
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:10: materializing requested scala.reflect.type.ClassTag[TestCase] using `package`.this.materializeClassTag[TestCase]()
[info] val lst = pckl.unpickle[TestCase]
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:10: materializing requested reflect.runtime.universe.type.TypeTag[TestCase] using `package`.this.materializeTypeTag[TestCase](scala.reflect.runtime.`package`.universe)
[info] val lst = pckl.unpickle[TestCase]
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:10: pickling.this.Unpickler.genUnpickler is not a valid implicit value for scala.pickling.Unpickler[TestCase] because:
[info] hasMatchingSymbol reported error: value forcefulSet is not a member of reflect.runtime.universe.FieldMirror
[info] val lst = pckl.unpickle[TestCase]
[info] ^
[error] /Users/jony/Desktop/pickle/Test.scala:10: Cannot generate an unpickler for TestCase. Recompile with -Xlog-implicits for details
[error] val lst = pckl.unpickle[TestCase]
[error] ^
[info] /Users/jony/Desktop/pickle/Test.scala:10: pickling.this.Unpickler.genUnpickler is not a valid implicit value for scala.pickling.Unpickler[TestCase] because:
[info] stepping aside: repeating itself
[info] val lst = pckl.unpickle[TestCase]
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:10: materializing requested scala.reflect.type.ClassTag[TestCase] using `package`.this.materializeClassTag[TestCase]()
[info] val lst = pckl.unpickle[TestCase]
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:10: materializing requested reflect.runtime.universe.type.TypeTag[TestCase] using `package`.this.materializeTypeTag[TestCase](scala.reflect.runtime.`package`.universe)
[info] val lst = pckl.unpickle[TestCase]
[info] ^
[info] /Users/jony/Desktop/pickle/Test.scala:10: pickling.this.Unpickler.genUnpickler is not a valid implicit value for scala.pickling.Unpickler[TestCase] because:
[info] hasMatchingSymbol reported error: value forcefulSet is not a member of reflect.runtime.universe.FieldMirror
[info] val lst = pckl.unpickle[TestCase]
[info] ^
[error] one error found
[error] (compile:compile) Compilation failed
[error] Total time: 7 s, completed 16-Oct-2013 21:14:43
>
from pickling.
Fixed in #54
from pickling.
Just to confirm that that works for me. Thanks.
from pickling.
Related Issues (20)
- Improve performance of implicit search HOT 3
- StaticOnly should be enabled by default HOT 2
- Refined types should be supported HOT 1
- Cut first milestone release HOT 13
- Add picklers and unpickler for Nothing HOT 1
- Variadic arguments for case class HOT 4
- Remove patmat warnings HOT 1
- Can't unpickle ValueSet HOT 2
- Pickling 0.10.2-SNAPSHOT for Scala 2.10
- Compile time serialisation failing for nested case classes with Scala 2.10.6 HOT 2
- Error when saving a Map of Int and a Composite
- java.lang.VerifyError: Bad type on operand stack while encapsulating Pickler
- Some macro in PicklerUnpickler is not serializable
- Deserialization in incorrect type
- Consider dropping or updating the link to http://lampwww.epfl.ch/~hmiller/pickling
- Unpickle without specifying type HOT 1
- Is this project abandoned? HOT 14
- Incorrect handling of Option[xxx] if None HOT 13
- val from trait not pickled
- Pickling fails with a weird issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pickling.