Welcome to Scala version 2.10.0-20120806-133428-114367c0b2 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_35).Type in expressions to have them evaluated.Type :help for more information.scala> reflect.runtime.universe.reify("foo")<console>:8: error: type mismatch;found : $u.Expr[String("foo")]required: reflect.runtime.universe.Expr[String]reflect.runtime.universe.reify("foo")^
Ah - apologies - I thought that using SNAPSHOT in SBT would always get me the most recent? Clearly I was labouring under a misapprehension.
On 18 Sep 2012, at 09:50, Paul Butcher <pa...@paulbutcher.com> wrote:Ah - apologies - I thought that using SNAPSHOT in SBT would always get me the most recent? Clearly I was labouring under a misapprehension.In fact, now that I look at it, it's not downloaded a new snapshot for *ages*. How the hell *do* you tell SBT to get the most recent?!
--
paul.butcher->msgCount++
Snetterton, Castle Combe, Cadwell Park...
Who says I have a one track mind?
http://www.paulbutcher.com/
LinkedIn: http://www.linkedin.com/in/paulbutcher
MSN: pa...@paulbutcher.com
AIM: paulrabutcher
Skype: paulrabutcher
Wait a second. I can't reproduce this. Could you please check with the very latest nightly?Yesterday I saw something similar, but assume the problem there was due to existentials. Therefore I became so agitated without even checking.
I know almost nothing about sbt, but maybe "sbt update"? If that doesn't help, how about deleting the entire .sbt and .ivy2? :)
On 18 September 2012 10:56, Paul Butcher <pa...@paulbutcher.com> wrote:
On 18 Sep 2012, at 09:54, Eugene Burmako <eugene....@epfl.ch> wrote:Wait a second. I can't reproduce this. Could you please check with the very latest nightly?Yesterday I saw something similar, but assume the problem there was due to existentials. Therefore I became so agitated without even checking.Sorry Eugene - I think that this is SBT screwing me up. I naively (clearly) imagined that if I told it to use SNAPSHOT I would get the most recently version. Clearly not.Please (please!) tell me that there's some way to do this *without* compiling the compiler myself?!--
paul.butcher->msgCount++
Snetterton, Castle Combe, Cadwell Park...
Who says I have a one track mind?
http://www.paulbutcher.com/
LinkedIn: http://www.linkedin.com/in/paulbutcher
MSN: pa...@paulbutcher.com
AIM: paulrabutcher
Skype: paulrabutcher
Just go with milestones if you can - it makes life *much* easier!
On 18 Sep 2012, at 10:02, Kevin Wright <kev.lee...@gmail.com> wrote:Just go with milestones if you can - it makes life *much* easier!I'd love to go with milestones, but I'm trying to get ScalaMock to work with Eugene's latest changes (I learned the hard way between M6 and M7 that waiting for a milestone was a bad plan).So the moral of the story seems to be that SBT is just broken with snapshots :-( I'm frankly amazed - searching for SNAPSHOT in the SBT mailing list shows up *many* threads with people complaining about the problem, most of them with *no* answers whatsoever - for example:Speechless.I'll resort to local Scala builds, I guess. What a massive pain in the arse.
On 18 Sep 2012, at 10:02, Kevin Wright <kev.lee...@gmail.com> wrote:Just go with milestones if you can - it makes life *much* easier!I'd love to go with milestones, but I'm trying to get ScalaMock to work with Eugene's latest changes (I learned the hard way between M6 and M7 that waiting for a milestone was a bad plan).So the moral of the story seems to be that SBT is just broken with snapshots :-( I'm frankly amazed - searching for SNAPSHOT in the SBT mailing list shows up *many* threads with people complaining about the problem, most of them with *no* answers whatsoever - for example:Speechless.I'll resort to local Scala builds, I guess. What a massive pain in the arse.
--
paul.butcher->msgCount++
Snetterton, Castle Combe, Cadwell Park...
Who says I have a one track mind?
http://www.paulbutcher.com/
LinkedIn: http://www.linkedin.com/in/paulbutcher
MSN: pa...@paulbutcher.com
AIM: paulrabutcher
Skype: paulrabutcher
On 18 Sep 2012, at 10:02, Kevin Wright <kev.lee...@gmail.com> wrote:Just go with milestones if you can - it makes life *much* easier!I'd love to go with milestones, but I'm trying to get ScalaMock to work with Eugene's latest changes (I learned the hard way between M6 and M7 that waiting for a milestone was a bad plan).So the moral of the story seems to be that SBT is just broken with snapshots :-( I'm frankly amazed - searching for SNAPSHOT in the SBT mailing list shows up *many* threads with people complaining about the problem, most of them with *no* answers whatsoever - for example:
Speechless.I'll resort to local Scala builds, I guess. What a massive pain in the arse.--
paul.butcher->msgCount++
Snetterton, Castle Combe, Cadwell Park...
Who says I have a one track mind?
http://www.paulbutcher.com/
LinkedIn: http://www.linkedin.com/in/paulbutcher
MSN: pa...@paulbutcher.com
AIM: paulrabutcher
Skype: paulrabutcher
On Tue, Sep 18, 2012 at 12:09 PM, √iktor Ҡlang <viktor...@gmail.com> wrote:So far it worked well for many Maven based projects. I had the same
>
>
> On Tue, Sep 18, 2012 at 11:05 AM, Paul Butcher <pa...@paulbutcher.com> wrote:
>>
>> On 18 Sep 2012, at 10:02, Kevin Wright <kev.lee...@gmail.com> wrote:
>>
>> Just go with milestones if you can - it makes life *much* easier!
>>
>>
>> I'd love to go with milestones, but I'm trying to get ScalaMock to work
>> with Eugene's latest changes (I learned the hard way between M6 and M7 that
>> waiting for a milestone was a bad plan).
>>
>> So the moral of the story seems to be that SBT is just broken with
>> snapshots :-( I'm frankly amazed - searching for SNAPSHOT in the SBT mailing
>> list shows up *many* threads with people complaining about the problem, most
>> of them with *no* answers whatsoever - for example:
>>
>> https://groups.google.com/d/topic/simple-build-tool/tYwXAikPpSs/discussion
>>
>> Speechless.
>>
>> I'll resort to local Scala builds, I guess. What a massive pain in the
>> arse.
>
>
>
> The entire _idea_ of snapshots is broken. It's like a var to a dependency.
problem and solved it successfully with scala-maven-plugin. It works
for me. Maybe it wont work for you ...
@Paul Butcher: you may download the latest builds with some script.
See https://gist.github.com/3740024 for example. Do this once per day.
It should save you some time.
>
> Cheers,
> √
>
>>
>>
>> --
>> paul.butcher->msgCount++
>>
>> Snetterton, Castle Combe, Cadwell Park...
>> Who says I have a one track mind?
>>
>> http://www.paulbutcher.com/
>> LinkedIn: http://www.linkedin.com/in/paulbutcher
>> MSN: pa...@paulbutcher.com
>> AIM: paulrabutcher
>> Skype: paulrabutcher
>>
>
>
>
> --
> Viktor Klang
>
> Akka Tech Lead
> Typesafe - The software stack for applications that scale
>
> Twitter: @viktorklang
>
I think most of this is fixed in upcoming sbt, which is great news for us all.
Sbt treats scala different from any other dependency right now, and so it stinks for snapshots.
Note: do you want scalamock in the community nightlies? These have enough sbt hackery to always build correctly against current scala nightly, although "using at home" is not seamless yet.
Note: do you want scalamock in the community nightlies? These have enough sbt hackery to always build correctly against current scala nightly, although "using at home" is not seamless yet.
Ultimately, that would be great - but not until I've fixed it to work again. It worked fine with M6, but the changes in M7 killed it. I've finally found time to look at it again, hence this e-mail thread :-)