rascal icon indicating copy to clipboard operation
rascal copied to clipboard

util::IDEservices cannot link to BasicIDEServices

Open reijne opened this issue 4 years ago • 4 comments

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

reijne avatar Nov 08 '21 11:11 reijne

Thanks for reporting this bug. It looks like the wrong version of the interpreter was linked into that release 0.18.2

jurgenvinju avatar Nov 08 '21 15:11 jurgenvinju

@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 avatar Nov 16 '21 14:11 reijne

@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:

https://releases.usethesource.io/maven/org/rascalmpl/rascal-update-site/0.19.4.RC2/rascal-update-site-0.19.4.RC2.zip

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!

jurgenvinju avatar Nov 17 '21 09:11 jurgenvinju

@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.

jurgenvinju avatar Nov 17 '21 09:11 jurgenvinju