Coder Social home page Coder Social logo

Apparent regression about pickling HOT 14 CLOSED

emchristiansen avatar emchristiansen commented on September 27, 2024
Apparent regression

from pickling.

Comments (14)

phaller avatar phaller commented on September 27, 2024

This is very likely due to the fact that a number of implicit classes have been moved to a new internal package. Apparently, these are not in scope anymore at one of the required places, since forcefulSet cannot be found. It should be a simple fix.

from pickling.

emchristiansen avatar emchristiansen commented on September 27, 2024

Indeed, internal does provide a forcefulSet pimp for any FieldMirror.
Unfortunately, it is private, so I can't just import it to make my project work.

from pickling.

LBliss avatar LBliss commented on September 27, 2024

Similar (duplicate?) with: #50

from pickling.

emchristiansen avatar emchristiansen commented on September 27, 2024

It's painful when a regression like this happens and there's no old package to fall back on, due to the transitory nature of SNAPSHOTs.
Think we could get a 0.8.0-M1 or the like when this issue is resolved?

from pickling.

LBliss avatar LBliss commented on September 27, 2024

I tried your tests with the latest version (of the source files, not the jar), and they seem to succeed:

[info] GenericSpickler:
[info] - stack-overflow-pickle-unpickle
[info] - possible regression
[info] Passed: Total 2, Failed 0, Errors 0, Passed 2
[success] Total time: 160 s, completed 16 oct. 2013 01:37:19

However, the one from #50 still fail.

test("Issue #50") {
  case class TestA (x: Option[Int])
  val a = TestA(Some(1))
  assert(a.pickle.unpickle[TestA] == a)

  case class TestB (x: Option[String])
  val b = TestB(Some("hello"))
  assert(b.pickle.unpickle[TestB] == b)
}

from pickling.

emchristiansen avatar emchristiansen commented on September 27, 2024

Yeah, I know :/
For some reason, I'm not able to replicate it using pickling's internal
tests (BTW, I said this in the original bug report, but I don't think I was
very clear).
I'm not sure what would be causing the discrepancy, unless the currently
published SNAPSHOT doesn't reflect the current source.

On Tue, Oct 15, 2013 at 4:38 PM, LBliss [email protected] wrote:

I tried your tests with the latest version, and they seem to pass:

[info] GenericSpickler:
[info] - stack-overflow-pickle-unpickle
[info] - possible regression
[info] Passed: Total 2, Failed 0, Errors 0, Passed 2
[success] Total time: 160 s, completed 16 oct. 2013 01:37:19


Reply to this email directly or view it on GitHubhttps://github.com//issues/52#issuecomment-26382029
.

from pickling.

phaller avatar phaller commented on September 27, 2024

I could reproduce it on PersistentMap using the latest SNAPSHOT artifact. I submitted a PR with a fix.

from pickling.

phaller avatar phaller commented on September 27, 2024

About releases: the plan is to do periodic releases (including milestones) as soon as a decision has been made on namespace management. Expect this decision within the next couple of days.

from pickling.

heathermiller avatar heathermiller commented on September 27, 2024

RE: @emchristiansen

It's painful when a regression like this happens and there's no old package to fall back on, due to the transitory nature of SNAPSHOTs.
Think we could get a 0.8.0-M1 or the like when this issue is resolved?

We feel you. As @phaller indicated, the problem is actually namespace management and maven group IDs. We're waiting for a group of people to reach a consensus on this matter, which is unfortunately holding us back from publishing actual milestones which people can rely on. :-/

It's coming though, we're with you on this.

from pickling.

heathermiller avatar heathermiller commented on September 27, 2024

I believe all is OK for PersistentMap as well – it compiles fine, and all of the pickling tests pass (there are 3 failing SQL tests though, because I think they can't connect to some database somewhere)

from pickling.

emchristiansen avatar emchristiansen commented on September 27, 2024

I'm still having issues with the version on Sonatype.
As of now, the last SNAPSHOT was on Tuesday.
Is this something that requires a few hours to refresh?

BTW, you were correct in that those MySQL tests expect a Travis CI environment.

from pickling.

heathermiller avatar heathermiller commented on September 27, 2024

Yep, you'll need to wait until the next snapshot is generated and uploaded to sonatype. Should be there by tomorrow. Alternatively, if you want to test pickling right away, you can checkout pickling, from sbt run package and copy the jar that sbt generates (sbt will tell you where it was generated) to a directory called lib in the root of PersistentMap. After that, go to your build file in PersistentMap and comment out the pickling dependency. Sbt will find pickling in that lib directory automatically.

from pickling.

emchristiansen avatar emchristiansen commented on September 27, 2024

Okay, thanks for your help!

I'm curious, though, where the publishing lag is coming from.
Are you using an automated system that builds and publishes your code each night?
Or is that how long Sonatype takes to refresh?

from pickling.

heathermiller avatar heathermiller commented on September 27, 2024

Yep, we have a jenkins job that builds, tests, and publishes pickling on a nightly basis. Though @xeno-by just pointed out to me that I could manually trigger the job (duh). That's been done, so the sonatype jar should now be current :)

from pickling.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.