rascal
rascal copied to clipboard
util::IDEservices cannot link to BasicIDEServices
Describe the bug I was asked to create a bug report from this stackoverflow question: https://stackoverflow.com/questions/69859615/navigating-to-a-source-location-from-within-code
The bug occurs when using the edit function from IDEservices.
It gives me the following error message:
|std:///util/IDEServices.rsc|(26,181,<3,0>,<8,26>): Cannot link method org.rascalmpl.library.experiments.Compiler.RVM.Interpreter.ideservices.BasicIDEServices because: class not found
To Reproduce
Within a rascal terminal: import util::IDEServices;
Shows the error listed above in the terminal.
Expected behavior
I expected to import the library, such that the edit(loc uri) could be used to open a file at a specific location.
Full output
rascal>import util::IDEServices; |std:///util/IDEServices.rsc|(26,181,<3,0>,<8,26>): Cannot link method org.rascalmpl.library.experiments.Compiler.RVM.Interpreter.ideservices.BasicIDEServices because: class not found Advice: |http://tutor.rascal-mpl.org/Errors/Static/JavaMethodLink/JavaMethodLink.html| ok
Desktop:
- Context: Eclipse plugin, Commandline REPL
- Rascal Version [e.g. 0.18.2], stable release
Thanks for reporting this bug. It looks like the wrong version of the interpreter was linked into that release 0.18.2
@jurgenvinju Could you help me fix the bug in the current version locally? I'm hesitant to update my entire project to a new version right before a demo.
@reijne I've been trying to think of a quick-hack solution, but came up short. All I can think of is to try and install an older or newer version which does not have this bug. You could try this one:
Of course that might lead to new and different issues. There is no guarantees on unstable versions. What I'd recommend it installing it in a fresh copy of Eclipse, such that you can easily return to your old setup. Going back in time with plugins in Eclipse is not recommended/working.
Thanks for your patience!
@reijne to use the zip, download it and add it as a new "update site" from file... and then install Rascal from that update site.