Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsFailed to set 'self' context
https://www.eclipse.org/forums/index.php/mv/msg/1092367/1783915/#msg_1783915
I am walking through the online documentation on OCL.
I had a quick question on the Getting Started part.
I am executing the steps:
"You may evaluate custom OCL queries interactively. From the editor for Tutorial.xmi, invoke OCL->Show Xtext OCL Console from the context menu. Select Book b2 in the editor, then in the bottom line of the console enter the OCL expression loans.member and then Enter. The results are shown in the panel and identify that all three loans are by Member m3."
When I execute this I get a dialog box "OCL Console Selection Error" - Failed to set 'self' context. Reason: org.eclipse.xtext.completeocl.utilities.CompleteOCLASResourceFactory.getASElement
Also I see on the console:
Diagnostic ERROR source=org.eclipse.ocl.examples.debug.evaluation code=120 Execution failed data=[org.eclipse.ocl.examples.debug.vm.utils.VMRuntimeException: Execution failed]
[Java cause:]
org.eclipse.ocl.examples.debug.vm.utils.VMRuntimeException: Execution failed
at org.eclipse.ocl.examples.debug.vm.launching.InternalDebuggableExecutor.execute(InternalDebuggableExecutor.java:287)
at org.eclipse.ocl.examples.debug.vm.launching.DebuggableRunner.execute(DebuggableRunner.java:112)
at org.eclipse.ocl.examples.debug.vm.launching.DebuggableRunner$2.execute(DebuggableRunner.java:83)
at org.eclipse.ocl.examples.debug.vm.VMVirtualMachine.execute(VMVirtualMachine.java:161)
at org.eclipse.ocl.examples.debug.vm.VMVirtualMachine.access$14(VMVirtualMachine.java:158)
at org.eclipse.ocl.examples.debug.vm.VMVirtualMachine$1.run(VMVirtualMachine.java:218)
at java.lang.Thread.run(Unknown Source)
Diagnostic ERROR source=org.eclipse.ocl.examples.debug.evaluation code=120 Execution failed data=[org.eclipse.ocl.examples.debug.vm.utils.VMRuntimeException: Execution failed]
Just wanted to know if this is expected, a problem of if I am doing something wrong.
Regards,
Bruce]]>Bruce Trask2018-03-20T10:39:53-00:00Re: Failed to set 'self' context
https://www.eclipse.org/forums/index.php/mv/msg/1092367/1783921/#msg_1783921
No this is not what is expected. I see something very similar in my workspace. Thank you. I'll investigate.
Ed Willink]]>Ed Willink2018-03-20T12:26:40-00:00Re: Failed to set 'self' context
https://www.eclipse.org/forums/index.php/mv/msg/1092367/1783925/#msg_1783925
I am on Windows with
Eclipse Modeling Tools
Version: Oxygen.1a Release (4.7.1a)
Regards,
Bruce]]>Bruce Trask2018-03-20T13:01:25-00:00Re: Failed to set 'self' context
https://www.eclipse.org/forums/index.php/mv/msg/1092367/1783933/#msg_1783933
Just another piece of information. The dialog box I mention above pops up after a certain amount of time while walking throught the OCLinECore tutorial as well. Seems to come up when I make the OCLinEcore editor tab active.
Regards,
Bruce]]>Bruce Trask2018-03-20T14:04:01-00:00Re: Failed to set 'self' context
https://www.eclipse.org/forums/index.php/mv/msg/1092367/1783935/#msg_1783935
Thanks, but my only trouble with the repro is embarrassment at how solid it is.
(A refactoring introduced an infinite recursion for any attempt to step into/over an iteration. The OCL debugger is now subject to a JUnit test.)
Regards
Ed Willink]]>Ed Willink2018-04-12T08:16:30-00:00Re: Failed to set 'self' context
https://www.eclipse.org/forums/index.php/mv/msg/1092367/1785523/#msg_1785523
Was this also the problem (as fix) with the OCL console and the unimplemented method I believe?
Regards,
Bruce]]>Bruce Trask2018-04-16T08:39:20-00:00Re: Failed to set 'self' context
https://www.eclipse.org/forums/index.php/mv/msg/1092367/1785525/#msg_1785525
The UOE was a separate much more easily fixed problem. https://bugs.eclipse.org/bugs/show_bug.cgi?id=532666