Auto-completion not working for semantic candidates expression property [message #1596393] |
Sun, 01 February 2015 16:49 |
Elvis Dowson Messages: 65 Registered: December 2011 |
Member |
|
|
Hi,
I'm using Sirius with Eclipse 4.4 Luna and have installed all the latest updates.
I notice that I'm unable to get auto-complete to work for semantic candidates expressions as described in https://wiki.eclipse.org/Sirius/Tutorials/4MinTutorial
This happens for every field that can accept a semantic candidates expression.
The following screen-shot shows an example from the library.design project. If I press ctrl+space, it displays the [/]
After I place the cursor after the first square brace [|/] and press ctrl+space, nothing happens in the Eclipse runtime instance,
and the main Eclipse instance displays the following unhanded exception stack trace:
Quote:
!ENTRY org.eclipse.ui 4 0 2015-02-01 22:10:17.869
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
at org.eclipse.sirius.common.acceleo.mtl.business.internal.interpreter.AcceleoMTLInterpreter.createCompilationContext(AcceleoMTLInterpreter.java:567)
at org.eclipse.sirius.common.acceleo.mtl.ide.AcceleoProposalProvider.getProposals(AcceleoProposalProvider.java:125)
at org.eclipse.sirius.common.tools.api.interpreter.CompoundInterpreter.getProposals(CompoundInterpreter.java:785)
at org.eclipse.sirius.ui.tools.api.assist.TextContentProposalProvider.getProposals(TextContentProposalProvider.java:88)
at org.eclipse.jface.fieldassist.ContentProposalAdapter.getProposals(ContentProposalAdapter.java:2057)
at org.eclipse.jface.fieldassist.ContentProposalAdapter.openProposalPopup(ContentProposalAdapter.java:1903)
at org.eclipse.jface.fieldassist.ContentProposalAdapter.access$16(ContentProposalAdapter.java:1898)
at org.eclipse.jface.fieldassist.ContentProposalAdapter$1.handleEvent(ContentProposalAdapter.java:1769)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4188)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1467)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1490)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1475)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1504)
at org.eclipse.swt.widgets.Text.sendKeyEvent(Text.java:1634)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1500)
at org.eclipse.swt.widgets.Text.sendKeyEvent(Text.java:1600)
at org.eclipse.swt.widgets.Control.doCommandBySelector(Control.java:1060)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5719)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:221)
at org.eclipse.swt.widgets.Widget.superKeyDown(Widget.java:1908)
at org.eclipse.swt.widgets.Widget.keyDown(Widget.java:1085)
at org.eclipse.swt.widgets.Control.keyDown(Control.java:2400)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5629)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:221)
at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:2105)
at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2329)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5691)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:5128)
at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5277)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
at org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:128)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3655)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
Is there a fix for this problem?
Regards,
Elvis Dowson
[Updated on: Sun, 01 February 2015 16:51] Report message to a moderator
|
|
|
|
|
|
Re: Auto-completion not working for semantic candidates expression property [message #1619527 is a reply to message #1609986] |
Mon, 16 February 2015 16:49 |
|
Hi Elvis,
It seems that the collection of EPackage used in
AcceleoMTLInterpreter.java:567 might contain a null entry.
In your odesign on which you have the issue, do you use the metamodels
property (advanced tab) on your representation descriptions ?
If this property is emtpy, Sirius will get the available EPackage from
the EcoreRegistry, but if it is used it will get the EPackages
referenced in your odesign file.
Could you check you workspace and look for invalid ecore files ? check
the metamodels properties in your VSM and give us some additional
feddback on the bugzilla ?
Le 10/02/2015 14:28, Elvis Dowson a écrit :
> Hi,
>
> I have an update on this bug. The auto-completion feature works *once*
> if you re-start the main eclipse instance and the run-time instance. But
> that's it, it doesn't work a second time and any subsequent attempts to
> press ctrl+space will result in the stack trace error.
>
> Regards,
>
> Elvis Dowson
Regards,
--
Maxime - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Maxime Porhel - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Re: Auto-completion not working for semantic candidates expression property [message #1644853 is a reply to message #1643620] |
Mon, 02 March 2015 07:47 |
|
Le 01/03/2015 18:29, Elvis Dowson a écrit :
> Hi Maxime,
>
> I did as you asked, and the auto-completion feature works.
>
>
>
> I have one question though, when I press ctrl+space in a [|/] expression, and select
> books:Books [0..*] and press enter, the expression gets filled as
> [books/]
>
> I do not understand the syntax and how to use it.
The syntax is Accleo 3, which is an implementation of the MTL standard
that itself extends OCL. So basically an OCL variant within [../]
delimiters.
The details of OCL and Acceleo are out of the scope of this forum,
please refer to their documentation, for example at:
-
http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.acceleo.doc%2Fpages%2Findex.html
- https://wiki.eclipse.org/Acceleo/Acceleo_Operations_Reference
- https://wiki.eclipse.org/Acceleo/OCL_Operations_Reference
--
Pierre-Charles David - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.03500 seconds