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

Eclipse Interpreter broken

4 replies
Sciss
Joined: 2008-12-17,
User offline. Last seen 28 weeks 5 days ago.

hi (miles),

it seems that the interpreter for the eclipse plug-in is currently
broken. this is what i get:

Welcome to Scala version 2.8.0.r19890-b20091126020351 (Java HotSpot
(TM) Client VM, Java 1.5.0_19).
Type in expressions to have them evaluated.
Type :help for more information.

scala> :9: error: not found: type Interpreter
class InterpreterSettings(repl: Interpreter) {
^
:3: error: type InterpreterSettings is not a member of
package scala.tools.nsc
var value: scala.tools.nsc.InterpreterSettings = _
^
:4: error: type InterpreterSettings is not a member of
package scala.tools.nsc
def set(x: Any) = value = x.asInstanceOf
[scala.tools.nsc.InterpreterSettings]
^
Exception in thread "main" java.util.NoSuchElementException: None.get
at scala.None$.get(Option.scala:169)
at scala.None$.get(Option.scala:167)
at scala.tools.nsc.Interpreter.scala$tools$nsc$Interpreter$
$loadByName(Interpreter.scala:155)
at scala.tools.nsc.Interpreter.bind(Interpreter.scala:471)
at scala.tools.nsc.InterpreterLoop$$anonfun$bindSettings$1.apply
(InterpreterLoop.scala:124)
at scala.tools.nsc.InterpreterLoop$$anonfun$bindSettings$1.apply
(InterpreterLoop.scala:122)
at scala.tools.nsc.Interpreter$$anonfun$beQuietDuring$2.apply
(Interpreter.scala:101)
at scala.util.control.Exception$Catch.apply(Exception.scala:79)
at scala.tools.nsc.Interpreter.beQuietDuring(Interpreter.scala:99)
at scala.tools.nsc.InterpreterLoop.bindSettings
(InterpreterLoop.scala:122)
at scala.tools.nsc.InterpreterLoop.repl(InterpreterLoop.scala:218)
at scala.tools.nsc.InterpreterLoop.main(InterpreterLoop.scala:379)
at scala.tools.nsc.InterpreterLoop.main(InterpreterLoop.scala:415)
at scala.tools.nsc.MainInterpreter$.main(MainInterpreter.scala:12)
at scala.tools.nsc.MainInterpreter.main(MainInterpreter.scala)

( is this related with java 1.5 versus 1.6? i hope i can continue to
run the eclipse plug-in of my java 1.5 only machine... i have a
project upcoming and won't be able to get and install 10.6 before
xmas... )

milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.
Re: Eclipse Interpreter broken

On Fri, Nov 27, 2009 at 10:39 AM, Sciss wrote:
> it seems that the interpreter for the eclipse plug-in is currently broken.
> this is what i get:

Could you create a ticket in Trac for this. Thanks.

Cheers,

Miles

jleuenberger
Joined: 2009-09-12,
User offline. Last seen 3 years 7 weeks ago.
Re: Eclipse Interpreter broken

Hello,
Actually i wrote and posted (in the mailing list) a patch some days ago
for this bug.
The patch is in the attachment.

-Johan

Miles Sabin wrote:
> On Fri, Nov 27, 2009 at 10:39 AM, Sciss wrote:
>
>> it seems that the interpreter for the eclipse plug-in is currently broken.
>> this is what i get:
>>
>
> Could you create a ticket in Trac for this. Thanks.
>
> Cheers,
>
>
> Miles
>
>

milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.
Re: Eclipse Interpreter broken

On Sun, Nov 29, 2009 at 11:40 PM, Johan Leuenberger
wrote:
> Actually i wrote and posted (in the mailing list) a patch some days ago for
> this bug.
> The patch is in the attachment.

Thanks for the effort, but I've just this minute committed a fix.
Which mailing list did you post your patch on? I didn't see it.

As it happens I took the opportunity to deal with a few other issues
as well ... hopefully Windows and Mac OS users will have a more
pleasant experience with the embedded interpreter now.

Cheers,

Miles

jleuenberger
Joined: 2009-09-12,
User offline. Last seen 3 years 7 weeks ago.
Re: Eclipse Interpreter broken

Ok great, at least the bug is fixed now :)
I posted the patch on this mailing list (scala-tools) on 21st November.

Cheers,

-Johan

Miles Sabin wrote:
> On Sun, Nov 29, 2009 at 11:40 PM, Johan Leuenberger
> wrote:
>
>> Actually i wrote and posted (in the mailing list) a patch some days ago for
>> this bug.
>> The patch is in the attachment.
>>
>
> Thanks for the effort, but I've just this minute committed a fix.
> Which mailing list did you post your patch on? I didn't see it.
>
> As it happens I took the opportunity to deal with a few other issues
> as well ... hopefully Windows and Mac OS users will have a more
> pleasant experience with the embedded interpreter now.
>
> Cheers,
>
>
> Miles
>
>

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