pickling icon indicating copy to clipboard operation
pickling copied to clipboard

Fast, customizable, boilerplate-free pickling support for Scala

Results 100 pickling issues
Sort by recently updated
recently updated
newest added

Hi everyone, I'm getting an error that reveals that you probably don't have (proper?) support for value classes. It's understandable since you may be executing the macros after the desugaring...

enhancement

I'm trying to generate picklers and unpicklers for `Spore`s. One problem I'm hitting is that despite having static picklers/unpicklers for a given `Spore`, scala-pickling generates their own brand-new picklers/unpicklers. For...

bug
pickling-generator-macro

``` scala implicitly[Pickler[(Int, List[String])]] ``` The above code snippet produces this beauty: ``` [warn] /data/rw/code/scala/spores/spores-pickling/src/test/scala/scala/spores/run/pickling/PicklingBinary.scala:58: method lookupPicklee in package internal is deprecated: Use currentRuntime.refRegistry.pickle.registerPicklee instead [warn] implicit val p =...

bug
pickling-generator-macro

This is related to #395 but it's not exactly the same. In that example I showed how, when runtime generation is enabled, if there are no picklers/unpicklers for a class...

enhancement

I have a case class defined like this: ``` scala case class B[T: Pickler: Unpickler](v: T) { def getPickler = B.mkPickler[T] def getUnpickler = B.mkUnpickler[T] } ``` I need to...

bug

Development branch: https://github.com/phaller/pickling/tree/topic/js

The library can support python pickle format ? support encode to python pickled format or decode from python pickled format ? Thanks

enhancement

`````` scala import scala.pickling._ import scala.pickling.Defaults._ import scala.pickling.json._ object Foo extends Enumeration { type Foo = Value val Bar = Value(0) val Baz = Value(1) } implicit object fooPickler extends...

I can't get the example code to work (copied directly from https://github.com/scala/pickling/wiki/Writing-custom-Picklers-Unpicklers): //----------------------------------------------------------- class Foo(val x: String) object Foo { implicit object pickler extends AbstractPicklerUnpickler[Foo] { private val stringPickler =...

bug
documentation

I'm using `scala-pickling` in a project and I've noticed that sometimes minor changes in the codebase can lead to unexpected errors when generating picklers/unpicklers. For instance, changing names of folders/packages....

documentation