-
Notifications
You must be signed in to change notification settings - Fork 53
Conversation
@reactormonk alrighty! The correct version for the ermine dependency is |
resolvers ++= Seq( | ||
"scalaz.bintray" at "http://dl.bintray.com/scalaz/releases", | ||
"oncue.bintray" at "http://dl.bintray.com/oncue/releases" | ||
) | ||
|
||
libraryDependencies ++= { | ||
val ermineVersion = | ||
if(scalazStreamVersion.value.startsWith("0.7")) "0.3.3a" | ||
else "0.3.3" | ||
if(List("0.7", "0.8").find(prefix => scalazStreamVersion.value.startsWith(prefix)).isDefined) "0.3.4a" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure this is right. This will pull in the wrong version of scalaz... given there are only 0.7 and 0.8 builds, the else
clause will never be reached. I think this can be taken out.
Oh god, you do it the other way round, Yeah, should have seen that earlier: https://github.com/Verizon/ermine-parser/blob/master/project/CrossLibraryPlugin.scala#L23 Compare with: http://http4s.org/#getting-started |
@reactormonk the whole scalaz-stream I just just checked with @djspiewak on the matter, and he said:
|
Ah ok, your everyday clusterfuck. Where is the ermine-parser 0.3.5? Can't find it on central. |
@reactormonk welcome to the party ;-) the various versions and their interop is a bit of a nightmare due to binary compatibility. Here's the artifacts on central: https://repo1.maven.org/maven2/io/verizon/ermine/parser_2.11/ - their search index takes a while to update it seems, but they are there (naturally the link is just for the 2.11 artifacts, but the 2.10 and 2.12 ones are also there) |
The build hangs locally as well. |
@reactormonk that is...weird. It never used too. Let me try. |
@reactormonk building your PR locally I get:
|
Only for 2.12 - will investigate. |
In preparing an SO, I figured that the two
|
I'm ok with a breaking change provide the major version is incremented. Thanks for looking into this :-) |
@reactormonk @timperrett I've PR'd a potential fix to your branch here. Quoting the explanation so you don't need to click through:
|
Added workaround for SAM ambiguity on 2.12
Is there anything I can do to speed this along? I have a new codebase I've started with 2.12 and I'd like to use knobs with it. |
@Daenyth with the changes @reactormonk added, the builds hang, and its not clear why. |
Looking at the diff I can only think it's something from one of
Looking at the sbt-rig change, I'm going to guess scalaz-streams. I'll start looking at changelogs there. |
I had a quick look at this, as this is the final dependency preventing us from moving to 2.12. I couldn't get to the bottom of the issue, but fundamentally, there appears to be a race condition between subscribing and updating a value, causing a deadlock in the zookeeper test. Adding a sleep between the subscribe and update (which, FWIW, the FileWatcherTest is also doing), appears to remove the deadlock. PR for potential fix which might be worth considering to get a 2.12 release. |
sleep to prevent deadlock in 2.12
@reactormonk @rhyskeepence thanks for your continued contribution to this gents. We'll discuss internally and hopefully merge this now its passing. We might consider removing the zookeeper module, or moving it elsewhere, as we're not using it these days. |
knobs stands between us and 2.12.1 glory. Would love to have it today rather than tomorrow. Can we have #43 also included. I had a go at this too - with ermine-parser 0.3.5a. Forcing dependency to scalaz 7.2.x leads to binary incompatibility: Exception: java.lang.NoSuchMethodError: scalaz.Free$.point(Lscala/Function0;)Lscalaz/Free; |
@ppurang right now this PR needs rebasing because it wont merge. |
@timperrett could I do something to unblock this issue? |
@ppurang i want to migrate this to the same naming structure that recently got added to delorean to be explicit about the scalaz version being used. The |
Any updates on this? |
Knobs appears to also be our only dependency that blocks a move to 2.12 currently. Looking through this thread it seems a lot of work has already been done, and a significant blocker is Zookeeper related only. As has been observed above, most users of Knobs probably are not using the Zookeeper integration, so moving this to a separate module might be a good pragmatic decision. However if that's not the only blocker I guess its a bit academic... Any likely ETA? |
Yes we are aware people are waiting for an official release. Me and @rossabaker are working on fixing the mess with the |
@SteveDraper the zookeeper issue was resolved, so thats no longer an issue. |
I have extended this pull request with #51. It builds with the Thanks to all for the contributions and interest in this effort. |
Huge thank you to @reactormonk @ppurang and @rhyskeepence for your persistence in this PR... and my sincere apologies for having had little time to make this a priority. With that frame, also thanks to @rossabaker for stepping up to get this done for everyone :-) We've factored the work done in this PR and a couple of other PRs into #51 and made the following choices:
I've added a few small comments, and @rossabaker will be able to fix these up Friday, so then we can get a release done. Once again, thanks everyone for your interest in Knobs and contributions here. This took far longer than it should have :-D All the best Tim |
Depends on Verizon/ermine-parser#2 and Verizon/sbt-rig#3, fixes #45