This page is no longer maintained — Please continue to the home page at www.scala-lang.org

2.8 gives internal compiler error on 2.7 code

14 replies
boris pezzatti
Joined: 2009-12-03,
User offline. Last seen 42 years 45 weeks ago.
Dear all,
I'm using netbeans 7.1 and currently testing 6.8 RC1.
On both versions I use the respective  netbeans plugins for scala.

I'm trying to compile the project developed under 2.7  (which works fine)  with 2.8, but I get the following internal compiler error:

Exception in thread "main" java.lang.StackOverflowError
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3662)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4071)
        at scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1171)
        at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:515)
        at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:513)
        at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1307)
        at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:761)
        at scala.tools.nsc.typechecker.Contexts$ImportInfo.qual(Contexts.scala:546)
        at scala.tools.nsc.typechecker.Contexts$ImportInfo.importedSymbol(Contexts.scala:565)
        at scala.tools.nsc.typechecker.Typers$Typer.typedIdent$1(Typers.scala:3525)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3931)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4071)
        at scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1171)
        at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:515)
        at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:513)
        at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1307)
        at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:761)
        at scala.tools.nsc.typechecker.Contexts$ImportInfo.qual(Contexts.scala:546)

................... repeated

        at scala.tools.nsc.typechecker.Contexts$ImportInfo.qual(Contexts.scala:546)
        at scala.tools.nsc.typechecker.Contexts$ImportInfo.importedSymbol(Contexts.scala:565)
        at scala.tools.nsc.typechecker.Typers$Typer.typedIdent$1(Typers.scala:3525)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3931)
/home/pezzatti/wsl/dev/dbFuel/ImporterScala/nbproject/build-impl.xml:405: The following error occurred while executing this line:
/home/pezzatti/wsl/dev/dbFuel/ImporterScala/nbproject/build-impl.xml:236: Compilation failed because of an internal compiler error; see the error output for details.
BUILD FAILED (total time: 7 seconds)

Does anybody have an idea?

Here are the implicit conversions I do (if this could be the problem):

    class RichObjectSet[T](objectSet:ObjectSet[T]) extends Iterator[T] {
        def hasNext:Boolean =  objectSet.hasNext()
        def next:T = objectSet.next()
    }
    implicit def toRichObjectSet[T](objectSet: ObjectSet[T] ) = new RichObjectSet[T](objectSet)

    class RichFCollection[T](coll:FCollection[T]) extends Iterator[T]{
        def hasNext:Boolean =  coll.iterator.hasNext()
        def next:T = coll.iterator.next()
    }
    implicit def toRichFCollection[T](coll:FCollection[T] ) = new RichFCollection[T](coll)



Thank you,
Boris



--
P Please consider the environment before deciding to print this e-mail.
_________________________________________________________
Boris Pezzatti
Swiss Federal Research Institute WSL
Research unit Ecosystem Boundaries
Team Insubric Ecosystems
via Belsoggiorno 22
CH-6500 Bellinzona
Switzerland

phone direct ++41 91 821 52 32
phone ++41 91 821 52 30
fax ++41 91 821 52 39
boris [dot] pezzatti [at] wsl [dot] ch
http://www.wsl.ch
Caoyuan
Joined: 2009-01-18,
User offline. Last seen 42 years 45 weeks ago.
Re: 2.8 gives internal compiler error on 2.7 code

Scala-2.8.0 is not compatible with 2.7.x, do not use compiler of
Scala-2.8.0 to compile 2.7.x code.

On Thu, Dec 3, 2009 at 9:20 PM, boris pezzatti wrote:
> Dear all,
> I'm using netbeans 7.1 and currently testing 6.8 RC1.
> On both versions I use the respective  netbeans plugins for scala.
>
> I'm trying to compile the project developed under 2.7  (which works fine)
> with 2.8, but I get the following internal compiler error:
>
> Exception in thread "main" java.lang.StackOverflowError
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3662)
>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4071)
>         at
> scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1171)
>         at
> scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:515)
>         at
> scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:513)
>         at
> scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1307)
>         at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:761)
>         at
> scala.tools.nsc.typechecker.Contexts$ImportInfo.qual(Contexts.scala:546)
>         at
> scala.tools.nsc.typechecker.Contexts$ImportInfo.importedSymbol(Contexts.scala:565)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typedIdent$1(Typers.scala:3525)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3931)
>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4071)
>         at
> scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1171)
>         at
> scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:515)
>         at
> scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:513)
>         at
> scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1307)
>         at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:761)
>         at
> scala.tools.nsc.typechecker.Contexts$ImportInfo.qual(Contexts.scala:546)
>
> ................... repeated
>
>         at
> scala.tools.nsc.typechecker.Contexts$ImportInfo.qual(Contexts.scala:546)
>         at
> scala.tools.nsc.typechecker.Contexts$ImportInfo.importedSymbol(Contexts.scala:565)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typedIdent$1(Typers.scala:3525)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3931)
> /home/pezzatti/wsl/dev/dbFuel/ImporterScala/nbproject/build-impl.xml:405:
> The following error occurred while executing this line:
> /home/pezzatti/wsl/dev/dbFuel/ImporterScala/nbproject/build-impl.xml:236:
> Compilation failed because of an internal compiler error; see the error
> output for details.
> BUILD FAILED (total time: 7 seconds)
>
> Does anybody have an idea?
>
> Here are the implicit conversions I do (if this could be the problem):
>
>     class RichObjectSet[T](objectSet:ObjectSet[T]) extends Iterator[T] {
>         def hasNext:Boolean =  objectSet.hasNext()
>         def next:T = objectSet.next()
>     }
>     implicit def toRichObjectSet[T](objectSet: ObjectSet[T] ) = new
> RichObjectSet[T](objectSet)
>
>     class RichFCollection[T](coll:FCollection[T]) extends Iterator[T]{
>         def hasNext:Boolean =  coll.iterator.hasNext()
>         def next:T = coll.iterator.next()
>     }
>     implicit def toRichFCollection[T](coll:FCollection[T] ) = new
> RichFCollection[T](coll)
>
>
>
> Thank you,
> Boris
>
>
>
> --
> P Please consider the environment before deciding to print this e-mail.
> _________________________________________________________
> Boris Pezzatti
> Swiss Federal Research Institute WSL
> Research unit Ecosystem Boundaries
> Team Insubric Ecosystems
> via Belsoggiorno 22
> CH-6500 Bellinzona
> Switzerland
>
> phone direct ++41 91 821 52 32
> phone ++41 91 821 52 30
> fax ++41 91 821 52 39
> boris [dot] pezzatti [at] wsl [dot] ch
> http://www.wsl.ch

Erik Engbrecht
Joined: 2008-12-19,
User offline. Last seen 3 years 18 weeks ago.
Re: 2.8 gives internal compiler error on 2.7 code
It it crashes the compiler then it's a bug in the compiler.  If your code is invalid then the compiler should be giving you an error message, not exploding.

Please file a ticket in Trac.

On Thu, Dec 3, 2009 at 8:20 AM, boris pezzatti <boris [dot] pezzatti [at] wsl [dot] ch> wrote:
Dear all,
I'm using netbeans 7.1 and currently testing 6.8 RC1.
On both versions I use the respective  netbeans plugins for scala.

I'm trying to compile the project developed under 2.7  (which works fine)  with 2.8, but I get the following internal compiler error:

Exception in thread "main" java.lang.StackOverflowError
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3662)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4071)
        at scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1171)
        at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:515)
        at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:513)
        at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1307)
        at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:761)
        at scala.tools.nsc.typechecker.Contexts$ImportInfo.qual(Contexts.scala:546)
        at scala.tools.nsc.typechecker.Contexts$ImportInfo.importedSymbol(Contexts.scala:565)
        at scala.tools.nsc.typechecker.Typers$Typer.typedIdent$1(Typers.scala:3525)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3931)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4071)
        at scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1171)
        at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:515)
        at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:513)
        at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1307)
        at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:761)
        at scala.tools.nsc.typechecker.Contexts$ImportInfo.qual(Contexts.scala:546)

................... repeated

        at scala.tools.nsc.typechecker.Contexts$ImportInfo.qual(Contexts.scala:546)
        at scala.tools.nsc.typechecker.Contexts$ImportInfo.importedSymbol(Contexts.scala:565)
        at scala.tools.nsc.typechecker.Typers$Typer.typedIdent$1(Typers.scala:3525)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3931)
/home/pezzatti/wsl/dev/dbFuel/ImporterScala/nbproject/build-impl.xml:405: The following error occurred while executing this line:
/home/pezzatti/wsl/dev/dbFuel/ImporterScala/nbproject/build-impl.xml:236: Compilation failed because of an internal compiler error; see the error output for details.
BUILD FAILED (total time: 7 seconds)

Does anybody have an idea?

Here are the implicit conversions I do (if this could be the problem):

    class RichObjectSet[T](objectSet:ObjectSet[T]) extends Iterator[T] {
        def hasNext:Boolean =  objectSet.hasNext()
        def next:T = objectSet.next()
    }
    implicit def toRichObjectSet[T](objectSet: ObjectSet[T] ) = new RichObjectSet[T](objectSet)

    class RichFCollection[T](coll:FCollection[T]) extends Iterator[T]{
        def hasNext:Boolean =  coll.iterator.hasNext()
        def next:T = coll.iterator.next()
    }
    implicit def toRichFCollection[T](coll:FCollection[T] ) = new RichFCollection[T](coll)



Thank you,
Boris



--
P Please consider the environment before deciding to print this e-mail.
_________________________________________________________
Boris Pezzatti
Swiss Federal Research Institute WSL
Research unit Ecosystem Boundaries
Team Insubric Ecosystems
via Belsoggiorno 22
CH-6500 Bellinzona
Switzerland

phone direct ++41 91 821 52 32
phone ++41 91 821 52 30
fax ++41 91 821 52 39
boris [dot] pezzatti [at] wsl [dot] ch
http://www.wsl.ch



--
http://erikengbrecht.blogspot.com/
Ricky Clarkson
Joined: 2008-12-19,
User offline. Last seen 3 years 2 weeks ago.
Re: 2.8 gives internal compiler error on 2.7 code

Compiling 2.7 code and examining the output is a pretty normal way of
finding out what you need to change.

In any case, bug reports go in Trac, rather than getting lost in scala-user.

2009/12/3 Caoyuan :
> Scala-2.8.0 is not compatible with 2.7.x, do not use compiler of
> Scala-2.8.0 to compile 2.7.x code.
>
> On Thu, Dec 3, 2009 at 9:20 PM, boris pezzatti wrote:
>> Dear all,
>> I'm using netbeans 7.1 and currently testing 6.8 RC1.
>> On both versions I use the respective  netbeans plugins for scala.
>>
>> I'm trying to compile the project developed under 2.7  (which works fine)
>> with 2.8, but I get the following internal compiler error:
>>
>> Exception in thread "main" java.lang.StackOverflowError
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3662)
>>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4071)
>>         at
>> scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1171)
>>         at
>> scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:515)
>>         at
>> scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:513)
>>         at
>> scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1307)
>>         at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:761)
>>         at
>> scala.tools.nsc.typechecker.Contexts$ImportInfo.qual(Contexts.scala:546)
>>         at
>> scala.tools.nsc.typechecker.Contexts$ImportInfo.importedSymbol(Contexts.scala:565)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typedIdent$1(Typers.scala:3525)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3931)
>>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4071)
>>         at
>> scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1171)
>>         at
>> scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:515)
>>         at
>> scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:513)
>>         at
>> scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1307)
>>         at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:761)
>>         at
>> scala.tools.nsc.typechecker.Contexts$ImportInfo.qual(Contexts.scala:546)
>>
>> ................... repeated
>>
>>         at
>> scala.tools.nsc.typechecker.Contexts$ImportInfo.qual(Contexts.scala:546)
>>         at
>> scala.tools.nsc.typechecker.Contexts$ImportInfo.importedSymbol(Contexts.scala:565)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typedIdent$1(Typers.scala:3525)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3931)
>> /home/pezzatti/wsl/dev/dbFuel/ImporterScala/nbproject/build-impl.xml:405:
>> The following error occurred while executing this line:
>> /home/pezzatti/wsl/dev/dbFuel/ImporterScala/nbproject/build-impl.xml:236:
>> Compilation failed because of an internal compiler error; see the error
>> output for details.
>> BUILD FAILED (total time: 7 seconds)
>>
>> Does anybody have an idea?
>>
>> Here are the implicit conversions I do (if this could be the problem):
>>
>>     class RichObjectSet[T](objectSet:ObjectSet[T]) extends Iterator[T] {
>>         def hasNext:Boolean =  objectSet.hasNext()
>>         def next:T = objectSet.next()
>>     }
>>     implicit def toRichObjectSet[T](objectSet: ObjectSet[T] ) = new
>> RichObjectSet[T](objectSet)
>>
>>     class RichFCollection[T](coll:FCollection[T]) extends Iterator[T]{
>>         def hasNext:Boolean =  coll.iterator.hasNext()
>>         def next:T = coll.iterator.next()
>>     }
>>     implicit def toRichFCollection[T](coll:FCollection[T] ) = new
>> RichFCollection[T](coll)
>>
>>
>>
>> Thank you,
>> Boris
>>
>>
>>
>> --
>> P Please consider the environment before deciding to print this e-mail.
>> _________________________________________________________
>> Boris Pezzatti
>> Swiss Federal Research Institute WSL
>> Research unit Ecosystem Boundaries
>> Team Insubric Ecosystems
>> via Belsoggiorno 22
>> CH-6500 Bellinzona
>> Switzerland
>>
>> phone direct ++41 91 821 52 32
>> phone ++41 91 821 52 30
>> fax ++41 91 821 52 39
>> boris [dot] pezzatti [at] wsl [dot] ch
>> http://www.wsl.ch
>

ijuma
Joined: 2008-08-20,
User offline. Last seen 22 weeks 2 days ago.
Re: 2.8 gives internal compiler error on 2.7 code

On Thu, 2009-12-03 at 14:20 +0100, boris pezzatti wrote:
> Dear all,
> I'm using netbeans 7.1 and currently testing 6.8 RC1.
> On both versions I use the respective netbeans plugins for scala.
>
> I'm trying to compile the project developed under 2.7 (which works
> fine) with 2.8, but I get the following internal compiler error:

Before you file a bug, please check that you can reproduce it with the
command-line compiler instead of Netbeans.

Best,
Ismael

dcsobral
Joined: 2009-04-23,
User offline. Last seen 38 weeks 5 days ago.
Re: 2.8 gives internal compiler error on 2.7 code
Have you tried to clearn all class files? Ie, are you building it from a clean source tree, without any left-overs from compilation with 2.7?

On Thu, Dec 3, 2009 at 11:20 AM, boris pezzatti <boris [dot] pezzatti [at] wsl [dot] ch> wrote:
Dear all,
I'm using netbeans 7.1 and currently testing 6.8 RC1.
On both versions I use the respective  netbeans plugins for scala.

I'm trying to compile the project developed under 2.7  (which works fine)  with 2.8, but I get the following internal compiler error:

Exception in thread "main" java.lang.StackOverflowError
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3662)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4071)
        at scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1171)
        at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:515)
        at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:513)
        at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1307)
        at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:761)
        at scala.tools.nsc.typechecker.Contexts$ImportInfo.qual(Contexts.scala:546)
        at scala.tools.nsc.typechecker.Contexts$ImportInfo.importedSymbol(Contexts.scala:565)
        at scala.tools.nsc.typechecker.Typers$Typer.typedIdent$1(Typers.scala:3525)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3931)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4071)
        at scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1171)
        at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:515)
        at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:513)
        at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1307)
        at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:761)
        at scala.tools.nsc.typechecker.Contexts$ImportInfo.qual(Contexts.scala:546)

................... repeated

        at scala.tools.nsc.typechecker.Contexts$ImportInfo.qual(Contexts.scala:546)
        at scala.tools.nsc.typechecker.Contexts$ImportInfo.importedSymbol(Contexts.scala:565)
        at scala.tools.nsc.typechecker.Typers$Typer.typedIdent$1(Typers.scala:3525)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3931)
/home/pezzatti/wsl/dev/dbFuel/ImporterScala/nbproject/build-impl.xml:405: The following error occurred while executing this line:
/home/pezzatti/wsl/dev/dbFuel/ImporterScala/nbproject/build-impl.xml:236: Compilation failed because of an internal compiler error; see the error output for details.
BUILD FAILED (total time: 7 seconds)

Does anybody have an idea?

Here are the implicit conversions I do (if this could be the problem):

    class RichObjectSet[T](objectSet:ObjectSet[T]) extends Iterator[T] {
        def hasNext:Boolean =  objectSet.hasNext()
        def next:T = objectSet.next()
    }
    implicit def toRichObjectSet[T](objectSet: ObjectSet[T] ) = new RichObjectSet[T](objectSet)

    class RichFCollection[T](coll:FCollection[T]) extends Iterator[T]{
        def hasNext:Boolean =  coll.iterator.hasNext()
        def next:T = coll.iterator.next()
    }
    implicit def toRichFCollection[T](coll:FCollection[T] ) = new RichFCollection[T](coll)



Thank you,
Boris



--
P Please consider the environment before deciding to print this e-mail.
_________________________________________________________
Boris Pezzatti
Swiss Federal Research Institute WSL
Research unit Ecosystem Boundaries
Team Insubric Ecosystems
via Belsoggiorno 22
CH-6500 Bellinzona
Switzerland

phone direct ++41 91 821 52 32
phone ++41 91 821 52 30
fax ++41 91 821 52 39
boris [dot] pezzatti [at] wsl [dot] ch
http://www.wsl.ch



--
Daniel C. Sobral

I travel to the future all the time.
Caoyuan
Joined: 2009-01-18,
User offline. Last seen 42 years 45 weeks ago.
Re: 2.8 gives internal compiler error on 2.7 code

On Thu, Dec 3, 2009 at 11:40 PM, Caoyuan wrote:
> Scala-2.8.0 is not compatible with 2.7.x, do not use compiler of
> Scala-2.8.0 to compile 2.7.x code.

oops, the correct statement should be:
Scala 2.8.0 is not compatible with classes compiled under 2.7.x. You
should check if your project depends on classes/jars that were
compiled under 2.7.x, if so, may need to re-compile the sources of
classes/jars under 2.8.0 too.

>
> On Thu, Dec 3, 2009 at 9:20 PM, boris pezzatti wrote:
>> Dear all,
>> I'm using netbeans 7.1 and currently testing 6.8 RC1.
>> On both versions I use the respective  netbeans plugins for scala.
>>
>> I'm trying to compile the project developed under 2.7  (which works fine)
>> with 2.8, but I get the following internal compiler error:
>>
>> Exception in thread "main" java.lang.StackOverflowError
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3662)
>>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4071)
>>         at
>> scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1171)
>>         at
>> scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:515)
>>         at
>> scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:513)
>>         at
>> scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1307)
>>         at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:761)
>>         at
>> scala.tools.nsc.typechecker.Contexts$ImportInfo.qual(Contexts.scala:546)
>>         at
>> scala.tools.nsc.typechecker.Contexts$ImportInfo.importedSymbol(Contexts.scala:565)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typedIdent$1(Typers.scala:3525)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3931)
>>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4071)
>>         at
>> scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1171)
>>         at
>> scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:515)
>>         at
>> scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:513)
>>         at
>> scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1307)
>>         at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:761)
>>         at
>> scala.tools.nsc.typechecker.Contexts$ImportInfo.qual(Contexts.scala:546)
>>
>> ................... repeated
>>
>>         at
>> scala.tools.nsc.typechecker.Contexts$ImportInfo.qual(Contexts.scala:546)
>>         at
>> scala.tools.nsc.typechecker.Contexts$ImportInfo.importedSymbol(Contexts.scala:565)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typedIdent$1(Typers.scala:3525)
>>         at
>> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3931)
>> /home/pezzatti/wsl/dev/dbFuel/ImporterScala/nbproject/build-impl.xml:405:
>> The following error occurred while executing this line:
>> /home/pezzatti/wsl/dev/dbFuel/ImporterScala/nbproject/build-impl.xml:236:
>> Compilation failed because of an internal compiler error; see the error
>> output for details.
>> BUILD FAILED (total time: 7 seconds)
>>
>> Does anybody have an idea?
>>
>> Here are the implicit conversions I do (if this could be the problem):
>>
>>     class RichObjectSet[T](objectSet:ObjectSet[T]) extends Iterator[T] {
>>         def hasNext:Boolean =  objectSet.hasNext()
>>         def next:T = objectSet.next()
>>     }
>>     implicit def toRichObjectSet[T](objectSet: ObjectSet[T] ) = new
>> RichObjectSet[T](objectSet)
>>
>>     class RichFCollection[T](coll:FCollection[T]) extends Iterator[T]{
>>         def hasNext:Boolean =  coll.iterator.hasNext()
>>         def next:T = coll.iterator.next()
>>     }
>>     implicit def toRichFCollection[T](coll:FCollection[T] ) = new
>> RichFCollection[T](coll)
>>
>>
>>
>> Thank you,
>> Boris
>>
>>
>>
>> --
>> P Please consider the environment before deciding to print this e-mail.
>> _________________________________________________________
>> Boris Pezzatti
>> Swiss Federal Research Institute WSL
>> Research unit Ecosystem Boundaries
>> Team Insubric Ecosystems
>> via Belsoggiorno 22
>> CH-6500 Bellinzona
>> Switzerland
>>
>> phone direct ++41 91 821 52 32
>> phone ++41 91 821 52 30
>> fax ++41 91 821 52 39
>> boris [dot] pezzatti [at] wsl [dot] ch
>> http://www.wsl.ch
>

boris pezzatti
Joined: 2009-12-03,
User offline. Last seen 42 years 45 weeks ago.
Re: 2.8 gives internal compiler error on 2.7 code
Actually the project is made by only 3 scala classes and all the dependencies are java ones.
All the classes were cleaned and also compiling in a terminal gives the same error ...

... I think I will have to fire a bug.

Thank you all.

cheers,
boris


ca96bd270912030848h49d0e0dq142ba84685650fb2 [at] mail [dot] gmail [dot] com" type="cite">
On Thu, Dec 3, 2009 at 11:40 PM, Caoyuan dcaoyuan [at] gmail [dot] com (<dcaoyuan [at] gmail [dot] com>) wrote:
  
Scala-2.8.0 is not compatible with 2.7.x, do not use compiler of
Scala-2.8.0 to compile 2.7.x code.
    
oops, the correct statement should be:
Scala 2.8.0 is not compatible with classes compiled under 2.7.x. You
should check if your project depends on classes/jars that were
compiled under 2.7.x, if so, may need to re-compile the sources of
classes/jars under 2.8.0 too.

  
On Thu, Dec 3, 2009 at 9:20 PM, boris pezzatti boris [dot] pezzatti [at] wsl [dot] ch (<boris [dot] pezzatti [at] wsl [dot] ch>) wrote:
    
Dear all,
I'm using netbeans 7.1 and currently testing 6.8 RC1.
On both versions I use the respective  netbeans plugins for scala.

I'm trying to compile the project developed under 2.7  (which works fine)
with 2.8, but I get the following internal compiler error:

Exception in thread "main" java.lang.StackOverflowError
        at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3662)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at
scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at
scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at
scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at
scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at
scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at
scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4071)
        at
scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1171)
        at
scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:515)
        at
scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:513)
        at
scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1307)
        at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:761)
        at
scala.tools.nsc.typechecker.Contexts$ImportInfo.qual(Contexts.scala:546)
        at
scala.tools.nsc.typechecker.Contexts$ImportInfo.importedSymbol(Contexts.scala:565)
        at
scala.tools.nsc.typechecker.Typers$Typer.typedIdent$1(Typers.scala:3525)
        at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3931)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at
scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at
scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at
scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at
scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at
scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at
scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4071)
        at
scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1171)
        at
scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:515)
        at
scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:513)
        at
scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1307)
        at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:761)
        at
scala.tools.nsc.typechecker.Contexts$ImportInfo.qual(Contexts.scala:546)

................... repeated

        at
scala.tools.nsc.typechecker.Contexts$ImportInfo.qual(Contexts.scala:546)
        at
scala.tools.nsc.typechecker.Contexts$ImportInfo.importedSymbol(Contexts.scala:565)
        at
scala.tools.nsc.typechecker.Typers$Typer.typedIdent$1(Typers.scala:3525)
        at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3931)
/home/pezzatti/wsl/dev/dbFuel/ImporterScala/nbproject/build-impl.xml:405:
The following error occurred while executing this line:
/home/pezzatti/wsl/dev/dbFuel/ImporterScala/nbproject/build-impl.xml:236:
Compilation failed because of an internal compiler error; see the error
output for details.
BUILD FAILED (total time: 7 seconds)

Does anybody have an idea?

Here are the implicit conversions I do (if this could be the problem):

    class RichObjectSet[T](objectSet:ObjectSet[T]) extends Iterator[T] {
        def hasNext:Boolean =  objectSet.hasNext()
        def next:T = objectSet.next()
    }
    implicit def toRichObjectSet[T](objectSet: ObjectSet[T] ) = new
RichObjectSet[T](objectSet)

    class RichFCollection[T](coll:FCollection[T]) extends Iterator[T]{
        def hasNext:Boolean =  coll.iterator.hasNext()
        def next:T = coll.iterator.next()
    }
    implicit def toRichFCollection[T](coll:FCollection[T] ) = new
RichFCollection[T](coll)



Thank you,
Boris



--
P Please consider the environment before deciding to print this e-mail.
_________________________________________________________
Boris Pezzatti
Swiss Federal Research Institute WSL
Research unit Ecosystem Boundaries
Team Insubric Ecosystems
via Belsoggiorno 22
CH-6500 Bellinzona
Switzerland

phone direct ++41 91 821 52 32
phone ++41 91 821 52 30
fax ++41 91 821 52 39
boris [dot] pezzatti [at] wsl [dot] ch
http://www.wsl.ch
      

  

--
P Please consider the environment before deciding to print this e-mail.
_________________________________________________________
Boris Pezzatti
Swiss Federal Research Institute WSL
Research unit Ecosystem Boundaries
Team Insubric Ecosystems
via Belsoggiorno 22
CH-6500 Bellinzona
Switzerland

phone direct ++41 91 821 52 32
phone ++41 91 821 52 30
fax ++41 91 821 52 39
boris [dot] pezzatti [at] wsl [dot] ch
http://www.wsl.ch
Silvio Bierman
Joined: 2009-02-16,
User offline. Last seen 1 year 16 weeks ago.
Re: 2.8 gives internal compiler error on 2.7 code

Also check your stack size settings. I got the same errors when doing Scala
builds with Ant in Eclipse while the same code compiled fine in the IDE. I
had to increase the JVM stack size of the Ant process to something bigger
than the default (think I used 1M). That solved it.

Gr. Silvio

Caoyuan
Joined: 2009-01-18,
User offline. Last seen 42 years 45 weeks ago.
Re: 2.8 gives internal compiler error on 2.7 code

I recalled I encountered similar error message before, it may be
caused by that the SCALA_HOME pointed to a version of Scala runtime,
but the PATH pointed to another version of scala's runtime bin
directory. I can not remember what was the exactly condition now.

On Fri, Dec 4, 2009 at 4:15 PM, boris pezzatti wrote:
> Actually the project is made by only 3 scala classes and all the
> dependencies are java ones.
> All the classes were cleaned and also compiling in a terminal gives the same
> error ...
>
> ... I think I will have to fire a bug.
>
> Thank you all.
>
> cheers,
> boris
>
>
> On Thu, Dec 3, 2009 at 11:40 PM, Caoyuan wrote:
>
>
> Scala-2.8.0 is not compatible with 2.7.x, do not use compiler of
> Scala-2.8.0 to compile 2.7.x code.
>
>
> oops, the correct statement should be:
> Scala 2.8.0 is not compatible with classes compiled under 2.7.x. You
> should check if your project depends on classes/jars that were
> compiled under 2.7.x, if so, may need to re-compile the sources of
> classes/jars under 2.8.0 too.
>
>
>
> On Thu, Dec 3, 2009 at 9:20 PM, boris pezzatti
> wrote:
>
>
> Dear all,
> I'm using netbeans 7.1 and currently testing 6.8 RC1.
> On both versions I use the respective  netbeans plugins for scala.
>
> I'm trying to compile the project developed under 2.7  (which works fine)
> with 2.8, but I get the following internal compiler error:
>
> Exception in thread "main" java.lang.StackOverflowError
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3662)
>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4071)
>         at
> scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1171)
>         at
> scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:515)
>         at
> scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:513)
>         at
> scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1307)
>         at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:761)
>         at
> scala.tools.nsc.typechecker.Contexts$ImportInfo.qual(Contexts.scala:546)
>         at
> scala.tools.nsc.typechecker.Contexts$ImportInfo.importedSymbol(Contexts.scala:565)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typedIdent$1(Typers.scala:3525)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3931)
>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4071)
>         at
> scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1171)
>         at
> scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:515)
>         at
> scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:513)
>         at
> scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1307)
>         at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:761)
>         at
> scala.tools.nsc.typechecker.Contexts$ImportInfo.qual(Contexts.scala:546)
>
> ................... repeated
>
>         at
> scala.tools.nsc.typechecker.Contexts$ImportInfo.qual(Contexts.scala:546)
>         at
> scala.tools.nsc.typechecker.Contexts$ImportInfo.importedSymbol(Contexts.scala:565)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typedIdent$1(Typers.scala:3525)
>         at
> scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3931)
> /home/pezzatti/wsl/dev/dbFuel/ImporterScala/nbproject/build-impl.xml:405:
> The following error occurred while executing this line:
> /home/pezzatti/wsl/dev/dbFuel/ImporterScala/nbproject/build-impl.xml:236:
> Compilation failed because of an internal compiler error; see the error
> output for details.
> BUILD FAILED (total time: 7 seconds)
>
> Does anybody have an idea?
>
> Here are the implicit conversions I do (if this could be the problem):
>
>     class RichObjectSet[T](objectSet:ObjectSet[T]) extends Iterator[T] {
>         def hasNext:Boolean =  objectSet.hasNext()
>         def next:T = objectSet.next()
>     }
>     implicit def toRichObjectSet[T](objectSet: ObjectSet[T] ) = new
> RichObjectSet[T](objectSet)
>
>     class RichFCollection[T](coll:FCollection[T]) extends Iterator[T]{
>         def hasNext:Boolean =  coll.iterator.hasNext()
>         def next:T = coll.iterator.next()
>     }
>     implicit def toRichFCollection[T](coll:FCollection[T] ) = new
> RichFCollection[T](coll)
>
>
>
> Thank you,
> Boris
>
>
>
> --
> P Please consider the environment before deciding to print this e-mail.
> _________________________________________________________
> Boris Pezzatti
> Swiss Federal Research Institute WSL
> Research unit Ecosystem Boundaries
> Team Insubric Ecosystems
> via Belsoggiorno 22
> CH-6500 Bellinzona
> Switzerland
>
> phone direct ++41 91 821 52 32
> phone ++41 91 821 52 30
> fax ++41 91 821 52 39
> boris [dot] pezzatti [at] wsl [dot] ch
> http://www.wsl.ch
>
>
>
>
> --
> P Please consider the environment before deciding to print this e-mail.
> _________________________________________________________
> Boris Pezzatti
> Swiss Federal Research Institute WSL
> Research unit Ecosystem Boundaries
> Team Insubric Ecosystems
> via Belsoggiorno 22
> CH-6500 Bellinzona
> Switzerland
>
> phone direct ++41 91 821 52 32
> phone ++41 91 821 52 30
> fax ++41 91 821 52 39
> boris [dot] pezzatti [at] wsl [dot] ch
> http://www.wsl.ch

boris pezzatti
Joined: 2009-12-03,
User offline. Last seen 42 years 45 weeks ago.
Re: 2.8 gives internal compiler error on 2.7 code

I tried both from a terminal:
- without setting PATH and SCALA_HOME
- setting them (PATH to  $SCALA_HOME/bin

but both always give the same error.

To Silvio:
Is your comment valid also if I compile from a terminal? How can I set the JVM stack size? (sorry ... I'm quite a newbie ...)

Thanks
Boris

Caoyuan wrote:
ca96bd270912040426v136c377cw944ced69bd56c9e9 [at] mail [dot] gmail [dot] com" type="cite">
I recalled I encountered similar error message before, it may be
caused by that the SCALA_HOME pointed to a version of Scala runtime,
but the PATH pointed to another version of scala's runtime bin
directory. I can not remember what was the exactly condition now.

On Fri, Dec 4, 2009 at 4:15 PM, boris pezzatti boris [dot] pezzatti [at] wsl [dot] ch (<boris [dot] pezzatti [at] wsl [dot] ch>) wrote:
  
Actually the project is made by only 3 scala classes and all the
dependencies are java ones.
All the classes were cleaned and also compiling in a terminal gives the same
error ...

... I think I will have to fire a bug.

Thank you all.

cheers,
boris


On Thu, Dec 3, 2009 at 11:40 PM, Caoyuan dcaoyuan [at] gmail [dot] com (<dcaoyuan [at] gmail [dot] com>) wrote:


Scala-2.8.0 is not compatible with 2.7.x, do not use compiler of
Scala-2.8.0 to compile 2.7.x code.


oops, the correct statement should be:
Scala 2.8.0 is not compatible with classes compiled under 2.7.x. You
should check if your project depends on classes/jars that were
compiled under 2.7.x, if so, may need to re-compile the sources of
classes/jars under 2.8.0 too.



On Thu, Dec 3, 2009 at 9:20 PM, boris pezzatti boris [dot] pezzatti [at] wsl [dot] ch (<boris [dot] pezzatti [at] wsl [dot] ch>)
wrote:


Dear all,
I'm using netbeans 7.1 and currently testing 6.8 RC1.
On both versions I use the respective  netbeans plugins for scala.

I'm trying to compile the project developed under 2.7  (which works fine)
with 2.8, but I get the following internal compiler error:

Exception in thread "main" java.lang.StackOverflowError
        at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3662)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at
scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at
scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at
scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at
scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at
scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at
scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4071)
        at
scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1171)
        at
scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:515)
        at
scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:513)
        at
scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1307)
        at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:761)
        at
scala.tools.nsc.typechecker.Contexts$ImportInfo.qual(Contexts.scala:546)
        at
scala.tools.nsc.typechecker.Contexts$ImportInfo.importedSymbol(Contexts.scala:565)
        at
scala.tools.nsc.typechecker.Typers$Typer.typedIdent$1(Typers.scala:3525)
        at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3931)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at
scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at
scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at
scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at
scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4002)
        at
scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4069)
        at
scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4071)
        at
scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1171)
        at
scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:515)
        at
scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:513)
        at
scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1307)
        at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:761)
        at
scala.tools.nsc.typechecker.Contexts$ImportInfo.qual(Contexts.scala:546)

................... repeated

        at
scala.tools.nsc.typechecker.Contexts$ImportInfo.qual(Contexts.scala:546)
        at
scala.tools.nsc.typechecker.Contexts$ImportInfo.importedSymbol(Contexts.scala:565)
        at
scala.tools.nsc.typechecker.Typers$Typer.typedIdent$1(Typers.scala:3525)
        at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3931)
/home/pezzatti/wsl/dev/dbFuel/ImporterScala/nbproject/build-impl.xml:405:
The following error occurred while executing this line:
/home/pezzatti/wsl/dev/dbFuel/ImporterScala/nbproject/build-impl.xml:236:
Compilation failed because of an internal compiler error; see the error
output for details.
BUILD FAILED (total time: 7 seconds)

Does anybody have an idea?

Here are the implicit conversions I do (if this could be the problem):

    class RichObjectSet[T](objectSet:ObjectSet[T]) extends Iterator[T] {
        def hasNext:Boolean =  objectSet.hasNext()
        def next:T = objectSet.next()
    }
    implicit def toRichObjectSet[T](objectSet: ObjectSet[T] ) = new
RichObjectSet[T](objectSet)

    class RichFCollection[T](coll:FCollection[T]) extends Iterator[T]{
        def hasNext:Boolean =  coll.iterator.hasNext()
        def next:T = coll.iterator.next()
    }
    implicit def toRichFCollection[T](coll:FCollection[T] ) = new
RichFCollection[T](coll)



Thank you,
Boris



--
P Please consider the environment before deciding to print this e-mail.
_________________________________________________________
Boris Pezzatti
Swiss Federal Research Institute WSL
Research unit Ecosystem Boundaries
Team Insubric Ecosystems
via Belsoggiorno 22
CH-6500 Bellinzona
Switzerland

phone direct ++41 91 821 52 32
phone ++41 91 821 52 30
fax ++41 91 821 52 39
boris [dot] pezzatti [at] wsl [dot] ch
http://www.wsl.ch




--
P Please consider the environment before deciding to print this e-mail.
_________________________________________________________
Boris Pezzatti
Swiss Federal Research Institute WSL
Research unit Ecosystem Boundaries
Team Insubric Ecosystems
via Belsoggiorno 22
CH-6500 Bellinzona
Switzerland

phone direct ++41 91 821 52 32
phone ++41 91 821 52 30
fax ++41 91 821 52 39
boris [dot] pezzatti [at] wsl [dot] ch
http://www.wsl.ch
    

  

--
P Please consider the environment before deciding to print this e-mail.
_________________________________________________________
Boris Pezzatti
Swiss Federal Research Institute WSL
Research unit Ecosystem Boundaries
Team Insubric Ecosystems
via Belsoggiorno 22
CH-6500 Bellinzona
Switzerland

phone direct ++41 91 821 52 32
phone ++41 91 821 52 30
fax ++41 91 821 52 39
boris [dot] pezzatti [at] wsl [dot] ch
http://www.wsl.ch
boris pezzatti
Joined: 2009-12-03,
User offline. Last seen 42 years 45 weeks ago.
Re: 2.8 gives internal compiler error on 2.7 code
I also tried setting (from ticket #2748):

export ANT_OPTS="-Xms512M -Xmx1024M -Xss1M -XX:MaxPermSize=128M"

but always gives the same error

Silvio Bierman wrote:
26635874 [dot] post [at] talk [dot] nabble [dot] com" type="cite">
Also check your stack size settings. I got the same errors when doing Scala
builds with Ant in Eclipse while the same code compiled fine in the IDE. I
had to increase the JVM stack size of the Ant process to something bigger
than the default (think I used 1M). That solved it.

Gr. Silvio

  

--
P Please consider the environment before deciding to print this e-mail.
_________________________________________________________
Boris Pezzatti
Swiss Federal Research Institute WSL
Research unit Ecosystem Boundaries
Team Insubric Ecosystems
via Belsoggiorno 22
CH-6500 Bellinzona
Switzerland

phone direct ++41 91 821 52 32
phone ++41 91 821 52 30
fax ++41 91 821 52 39
boris [dot] pezzatti [at] wsl [dot] ch
http://www.wsl.ch
Stefan Langer
Joined: 2009-10-23,
User offline. Last seen 42 years 45 weeks ago.
Re: 2.8 gives internal compiler error on 2.7 code
-Xss1M is the stack size

2009/12/4 boris pezzatti <boris [dot] pezzatti [at] wsl [dot] ch>
I also tried setting (from ticket #2748):

export ANT_OPTS="-Xms512M -Xmx1024M -Xss1M -XX:MaxPermSize=128M"

but always gives the same error

Silvio Bierman wrote:
Also check your stack size settings. I got the same errors when doing Scala
builds with Ant in Eclipse while the same code compiled fine in the IDE. I
had to increase the JVM stack size of the Ant process to something bigger
than the default (think I used 1M). That solved it.

Gr. Silvio

  

--
P Please consider the environment before deciding to print this e-mail.
_________________________________________________________
Boris Pezzatti
Swiss Federal Research Institute WSL
Research unit Ecosystem Boundaries
Team Insubric Ecosystems
via Belsoggiorno 22
CH-6500 Bellinzona
Switzerland

phone direct ++41 91 821 52 32
phone ++41 91 821 52 30
fax ++41 91 821 52 39
boris [dot] pezzatti [at] wsl [dot] ch
http://www.wsl.ch

Caoyuan
Joined: 2009-01-18,
User offline. Last seen 42 years 45 weeks ago.
Re: 2.8 gives internal compiler error on 2.7 code

Also try:
ant -verbose
or
ant -debug
To see which class that is under loading causes the error message.

On Fri, Dec 4, 2009 at 11:08 PM, boris pezzatti wrote:
> I also tried setting (from ticket #2748):
>
> export ANT_OPTS="-Xms512M -Xmx1024M -Xss1M -XX:MaxPermSize=128M"
>
> but always gives the same error
>
> Silvio Bierman wrote:
>
> Also check your stack size settings. I got the same errors when doing Scala
> builds with Ant in Eclipse while the same code compiled fine in the IDE. I
> had to increase the JVM stack size of the Ant process to something bigger
> than the default (think I used 1M). That solved it.
>
> Gr. Silvio
>
>
>
> --
> P Please consider the environment before deciding to print this e-mail.
> _________________________________________________________
> Boris Pezzatti
> Swiss Federal Research Institute WSL
> Research unit Ecosystem Boundaries
> Team Insubric Ecosystems
> via Belsoggiorno 22
> CH-6500 Bellinzona
> Switzerland
>
> phone direct ++41 91 821 52 32
> phone ++41 91 821 52 30
> fax ++41 91 821 52 39
> boris [dot] pezzatti [at] wsl [dot] ch
> http://www.wsl.ch

boris pezzatti
Joined: 2009-12-03,
User offline. Last seen 42 years 45 weeks ago.
Re: 2.8 gives internal compiler error on 2.7 code (Netbeans)
So I'm back after a tour in bug reporting .... which resulted to be invalid ...
from the command line (without ant) it is possible to run the code, after setting
export JAVA_OPTS="-Xms512m -Xmx2056m -XX:MaxPermSize=512m -Xss1M -server"

Apparently this was not necessary in my case with scala 2.7.7.

The problem is that I still get the error in the Netbeans IDE.
I tried to set the JAVA_OPTS and the ANT_OPTS, but this didn't solve it.
Also setting the jvm options in the netbeans.conf file was not enough.

I noticed that in the project properties it is possible to set the compiler options, but not the compiler environment (like e.g. JAVA_OPTS for scalac). Does anybody know where scalac take his environment paramenters?
 





Caoyuan wrote:
ca96bd270912040806n596d9590q9ae64e39673e7a02 [at] mail [dot] gmail [dot] com" type="cite">
Also try:
ant -verbose
or
ant -debug
To see which class that is under loading causes the error message.

On Fri, Dec 4, 2009 at 11:08 PM, boris pezzatti boris [dot] pezzatti [at] wsl [dot] ch (<boris [dot] pezzatti [at] wsl [dot] ch>) wrote:
  
I also tried setting (from ticket #2748):

export ANT_OPTS="-Xms512M -Xmx1024M -Xss1M -XX:MaxPermSize=128M"

but always gives the same error

Silvio Bierman wrote:

Also check your stack size settings. I got the same errors when doing Scala
builds with Ant in Eclipse while the same code compiled fine in the IDE. I
had to increase the JVM stack size of the Ant process to something bigger
than the default (think I used 1M). That solved it.

Gr. Silvio



--
P Please consider the environment before deciding to print this e-mail.
_________________________________________________________
Boris Pezzatti
Swiss Federal Research Institute WSL
Research unit Ecosystem Boundaries
Team Insubric Ecosystems
via Belsoggiorno 22
CH-6500 Bellinzona
Switzerland

phone direct ++41 91 821 52 32
phone ++41 91 821 52 30
fax ++41 91 821 52 39
boris [dot] pezzatti [at] wsl [dot] ch
http://www.wsl.ch
    

  

--
P Please consider the environment before deciding to print this e-mail.
_________________________________________________________
Boris Pezzatti
Swiss Federal Research Institute WSL
Research unit Ecosystem Boundaries
Team Insubric Ecosystems
via Belsoggiorno 22
CH-6500 Bellinzona
Switzerland

phone direct ++41 91 821 52 32
phone ++41 91 821 52 30
fax ++41 91 821 52 39
boris [dot] pezzatti [at] wsl [dot] ch
http://www.wsl.ch

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland