- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Re: 2.8.0.RC1 Compiler stack trace with ScalaTest
Thu, 2010-04-15, 07:22
Hi Ismael,
Unfortunately, I'm getting this:
BUILD FAILED
/Users/bv/nobkp/delus/stForScala2.8h/build.xml:158: Parameter
'-Xnospecialize' is not recognised by Scalac.
I can't find documentation of the parameter. I tried a few different
spellings, and double checked I was using 2.8.0.RC1, just to make sure
I was looking at the right thing.
Bill
On Wed, Apr 14, 2010 at 6:13 PM, Ismael Juma wrote:
> On Thu, Apr 15, 2010 at 2:12 AM, Bill Venners wrote:
>> Forgot to mention you'd need to add "--username guest" to the end of
>> the svn checkout command. And that this compiled fine under
>> 2.8.0.Beta1.
>
> As Martin suggested in another thread, it may be worth trying to
> compile it with -Xnospecialize.
>
> Best,
> Ismael
>
Thu, 2010-04-15, 08:47
#2
Re: 2.8.0.RC1 Compiler stack trace with ScalaTest
On Thu, Apr 15, 2010 at 7:22 AM, Bill Venners wrote:
> BUILD FAILED
> /Users/bv/nobkp/delus/stForScala2.8h/build.xml:158: Parameter
> '-Xnospecialize' is not recognised by Scalac.
I had just copied the compiler switch from a different mailing list
thread without actually trying it myself. :) I see that Iulian has
already given you the right one though (and even better, an actual fix
is on the way).
Best,
Ismael
Thu, 2010-04-15, 10:37
#3
Re: Re: 2.8.0.RC1 Compiler stack trace with ScalaTest
Hi Iulian,
I hit this problem building Scalaz with specialization.
https://lampsvn.epfl.ch/trac/scala/ticket/3301
-jason
On Thu, Apr 15, 2010 at 8:43 AM, Iulian Dragos wrote:
> The parameter name is '-no-specialization'. I believe I already have a fix
> for this one, waiting to build scalatest and the test suite before I commit.
> There may be delays though, with the first day of Scala Days.
> iulian
>
> On Thu, Apr 15, 2010 at 8:22 AM, Bill Venners wrote:
>>
>> Hi Ismael,
>>
>> Unfortunately, I'm getting this:
>>
>> BUILD FAILED
>> /Users/bv/nobkp/delus/stForScala2.8h/build.xml:158: Parameter
>> '-Xnospecialize' is not recognised by Scalac.
>>
>> I can't find documentation of the parameter. I tried a few different
>> spellings, and double checked I was using 2.8.0.RC1, just to make sure
>> I was looking at the right thing.
>>
>> Bill
>>
>> On Wed, Apr 14, 2010 at 6:13 PM, Ismael Juma wrote:
>> > On Thu, Apr 15, 2010 at 2:12 AM, Bill Venners wrote:
>> >> Forgot to mention you'd need to add "--username guest" to the end of
>> >> the svn checkout command. And that this compiled fine under
>> >> 2.8.0.Beta1.
>> >
>> > As Martin suggested in another thread, it may be worth trying to
>> > compile it with -Xnospecialize.
>> >
>> > Best,
>> > Ismael
>> >
>>
>>
>>
>> --
>> Bill Venners
>> Artima, Inc.
>> http://www.artima.com
>
>
>
> --
> « Je déteste la montagne, ça cache le paysage »
> Alphonse Allais
>
Thu, 2010-04-15, 14:57
#4
Re: 2.8.0.RC1 Compiler stack trace with ScalaTest
Hi Ismael,
I had tried a few different spellings, but didn't guess that one. That
worked! I got past the compiler stack trace and was able to compile
ScalaTest itself under RC1. Now trying to compile its tests.
Thanks.
Bill
On Thu, Apr 15, 2010 at 12:39 AM, Ismael Juma wrote:
> On Thu, Apr 15, 2010 at 7:22 AM, Bill Venners wrote:
>> BUILD FAILED
>> /Users/bv/nobkp/delus/stForScala2.8h/build.xml:158: Parameter
>> '-Xnospecialize' is not recognised by Scalac.
>
> I had just copied the compiler switch from a different mailing list
> thread without actually trying it myself. :) I see that Iulian has
> already given you the right one though (and even better, an actual fix
> is on the way).
>
> Best,
> Ismael
>
Thu, 2010-04-15, 18:17
#5
Re: 2.8.0.RC1 Compiler stack trace with ScalaTest
Hi Ismael,
The -no-specialization flag did the trick. Everything compiles and I
deployed a snapshot. I'd guess everyone is seeing the same problem,
but I'll file a ticket anyway for completeness.
Bill
On Thu, Apr 15, 2010 at 6:54 AM, Bill Venners wrote:
> Hi Ismael,
>
> I had tried a few different spellings, but didn't guess that one. That
> worked! I got past the compiler stack trace and was able to compile
> ScalaTest itself under RC1. Now trying to compile its tests.
>
> Thanks.
>
> Bill
>
> On Thu, Apr 15, 2010 at 12:39 AM, Ismael Juma wrote:
>> On Thu, Apr 15, 2010 at 7:22 AM, Bill Venners wrote:
>>> BUILD FAILED
>>> /Users/bv/nobkp/delus/stForScala2.8h/build.xml:158: Parameter
>>> '-Xnospecialize' is not recognised by Scalac.
>>
>> I had just copied the compiler switch from a different mailing list
>> thread without actually trying it myself. :) I see that Iulian has
>> already given you the right one though (and even better, an actual fix
>> is on the way).
>>
>> Best,
>> Ismael
>>
>
>
>
> --
> Bill Venners
> Artima, Inc.
> http://www.artima.com
>
Wed, 2010-04-21, 15:37
#6
Re: Re: 2.8.0.RC1 Compiler stack trace with ScalaTest
I just committed a fix for this and I can compile and run scalatest. It is a fundamental change in the way specialized overrides are treated, so it's likely to fix a lot of bugs/crashes. However, I have a number of scalatest tests that fail, and I am wondering if the branch I checked out (trunk-for-scala-2.8h) is actually up to date. I get the same failures with and without specialization, and most of them have to do with either class names (expecting WrappedArray instead of a native Java array -- a change that predates specialization) or order of keys in Maps.
It would be great if someone could help here and tell me if these failures are due to specialization or simply out-of-date code.
Thanks!iulian
On Thu, Apr 15, 2010 at 7:08 PM, Bill Venners <bill@artima.com> wrote:
--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais
It would be great if someone could help here and tell me if these failures are due to specialization or simply out-of-date code.
Thanks!iulian
On Thu, Apr 15, 2010 at 7:08 PM, Bill Venners <bill@artima.com> wrote:
Hi Ismael,
The -no-specialization flag did the trick. Everything compiles and I
deployed a snapshot. I'd guess everyone is seeing the same problem,
but I'll file a ticket anyway for completeness.
Bill
On Thu, Apr 15, 2010 at 6:54 AM, Bill Venners <bill@artima.com> wrote:
> Hi Ismael,
>
> I had tried a few different spellings, but didn't guess that one. That
> worked! I got past the compiler stack trace and was able to compile
> ScalaTest itself under RC1. Now trying to compile its tests.
>
> Thanks.
>
> Bill
>
> On Thu, Apr 15, 2010 at 12:39 AM, Ismael Juma <mlists@juma.me.uk> wrote:
>> On Thu, Apr 15, 2010 at 7:22 AM, Bill Venners <bill@artima.com> wrote:
>>> BUILD FAILED
>>> /Users/bv/nobkp/delus/stForScala2.8h/build.xml:158: Parameter
>>> '-Xnospecialize' is not recognised by Scalac.
>>
>> I had just copied the compiler switch from a different mailing list
>> thread without actually trying it myself. :) I see that Iulian has
>> already given you the right one though (and even better, an actual fix
>> is on the way).
>>
>> Best,
>> Ismael
>>
>
>
>
> --
> Bill Venners
> Artima, Inc.
> http://www.artima.com
>
--
Bill Venners
Artima, Inc.
http://www.artima.com
--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais
Fri, 2010-04-23, 21:07
#7
Re: Re: 2.8.0.RC1 Compiler stack trace with ScalaTest
Hi Iulian,
Yes, that's the latest branch. I have yet to finish fixing those
tests, which broke when arrays were changed in 2.8.
Bill
On Wed, Apr 21, 2010 at 7:34 AM, Iulian Dragos wrote:
> I just committed a fix for this and I can compile and run scalatest. It is a
> fundamental change in the way specialized overrides are treated, so it's
> likely to fix a lot of bugs/crashes. However, I have a number of scalatest
> tests that fail, and I am wondering if the branch I checked
> out (trunk-for-scala-2.8h) is actually up to date. I get the same failures
> with and without specialization, and most of them have to do with either
> class names (expecting WrappedArray instead of a native Java array -- a
> change that predates specialization) or order of keys in Maps.
> It would be great if someone could help here and tell me if these failures
> are due to specialization or simply out-of-date code.
> Thanks!
> iulian
>
> On Thu, Apr 15, 2010 at 7:08 PM, Bill Venners wrote:
>>
>> Hi Ismael,
>>
>> The -no-specialization flag did the trick. Everything compiles and I
>> deployed a snapshot. I'd guess everyone is seeing the same problem,
>> but I'll file a ticket anyway for completeness.
>>
>> Bill
>>
>> On Thu, Apr 15, 2010 at 6:54 AM, Bill Venners wrote:
>> > Hi Ismael,
>> >
>> > I had tried a few different spellings, but didn't guess that one. That
>> > worked! I got past the compiler stack trace and was able to compile
>> > ScalaTest itself under RC1. Now trying to compile its tests.
>> >
>> > Thanks.
>> >
>> > Bill
>> >
>> > On Thu, Apr 15, 2010 at 12:39 AM, Ismael Juma wrote:
>> >> On Thu, Apr 15, 2010 at 7:22 AM, Bill Venners wrote:
>> >>> BUILD FAILED
>> >>> /Users/bv/nobkp/delus/stForScala2.8h/build.xml:158: Parameter
>> >>> '-Xnospecialize' is not recognised by Scalac.
>> >>
>> >> I had just copied the compiler switch from a different mailing list
>> >> thread without actually trying it myself. :) I see that Iulian has
>> >> already given you the right one though (and even better, an actual fix
>> >> is on the way).
>> >>
>> >> Best,
>> >> Ismael
>> >>
>> >
>> >
>> >
>> > --
>> > Bill Venners
>> > Artima, Inc.
>> > http://www.artima.com
>> >
>>
>>
>>
>> --
>> Bill Venners
>> Artima, Inc.
>> http://www.artima.com
>
>
>
> --
> « Je déteste la montagne, ça cache le paysage »
> Alphonse Allais
>
iulian
On Thu, Apr 15, 2010 at 8:22 AM, Bill Venners <bill@artima.com> wrote:
--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais