- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Eclipse Interpreter broken
Fri, 2009-11-27, 11:39
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... )
Mon, 2009-11-30, 00:47
#2
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
>
>
Mon, 2009-11-30, 01:07
#3
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
Mon, 2009-11-30, 01:47
#4
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
>
>
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