Guildenstern
Guildenstern

Reputation: 3801

Can't launch Rascal files in Eclipse: 'no such java method: org.rascalmpl.library.Prelude.remove'

When trying to run any rascal file in eclipse (by right-clicking on file in Rascal Navigator and pressing Run as → Rascal Application), I get this error

An internal error occurred during: "Launching Hello.rsc".
No such Java method:
org.rascalmpl.library.Prelude.remove(org.eclipse.imp.pdb.facts.ISourceLocation, /
org.rascalmpl.interpreter.IEvaluatorContext)

(/ here used as a line separator.)

I haven't had this problem on this installation before.

java version:    1.7.0_65
Eclipse version: 4.2.2 (Juno)
Rascal version:  0.6.2.201312171007

Update

It seems that there are more things that don't work.

If I import a standard module, like

import IO;

I get this error:

could not load module import IO;[No such Java method:
org.rascalmpl.library.Prelude.remove(org.eclipse.imp.pdb.facts.ISourceLocation, /
org.rascalmpl.interpreter.IEvaluatorContext)

And if I try to use the syntax construct:

module Syntax

start syntax Program = Expr;
...
[rest of syntax-declarations]

Then I get this error:

could not load module start syntax Program = Expr;[value(...) /
is not allowed in patterns

So it might be that the problem is more fundamental than simply not being able to run files/load them into the console.

Upvotes: 0

Views: 106

Answers (1)

Guildenstern
Guildenstern

Reputation: 3801

I had rascal (git clone of this repository) as part of my workspace. I deleted that repository and now things seem to be back to normal (can load files into console etc.).

Upvotes: 0

Related Questions