Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Auto-completion not working for semantic candidates expression property
Auto-completion not working for semantic candidates expression property [message #1596393] Sun, 01 February 2015 16:49 Go to next message
Elvis Dowson is currently offline Elvis DowsonFriend
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,

index.php/fa/20695/0/

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 #1608141 is a reply to message #1596393] Mon, 09 February 2015 09:56 Go to previous messageGo to next message
Florian Barbin is currently offline Florian BarbinFriend
Messages: 270
Registered: August 2010
Senior Member
Hi again,

Thank you for your feedback.

Your stack looks like the one described in this bug (but the scenario is
not the same): https://bugs.eclipse.org/bugs/show_bug.cgi?id=453052

Even if I have little hope regarding what has been fixed, can you
update your Sirius version toward the last Sirius 1.0 maintenance
release and check if this bug is still there?
(http://wiki.eclipse.org/Sirius/1.0.2)

If the bug is still there, can you create a new bug report on the Sirius
bugzilla (https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Sirius)
with your test case ?

Regards,

--
Florian - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Auto-completion not working for semantic candidates expression property [message #1609855 is a reply to message #1608141] Tue, 10 February 2015 11:34 Go to previous messageGo to next message
Elvis Dowson is currently offline Elvis DowsonFriend
Messages: 65
Registered: December 2011
Member
Hi Florian,

I updated my Eclipse 4.4 Luna Sirius installation to the 1.0.2 maintenance release, as recommended.

However, the auto-complete feature still doesn't work and still gives the stack trace error output in the main eclipse instance console window.

I have filed a bug report as suggested:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=459539

Regards,

Elvis Dowson
Re: Auto-completion not working for semantic candidates expression property [message #1609986 is a reply to message #1609855] Tue, 10 February 2015 13:28 Go to previous messageGo to next message
Elvis Dowson is currently offline Elvis DowsonFriend
Messages: 65
Registered: December 2011
Member
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
Re: Auto-completion not working for semantic candidates expression property [message #1619527 is a reply to message #1609986] Mon, 16 February 2015 16:49 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
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 #1643620 is a reply to message #1619527] Sun, 01 March 2015 17:29 Go to previous messageGo to next message
Elvis Dowson is currently offline Elvis DowsonFriend
Messages: 65
Registered: December 2011
Member
Hi Maxime,

I did as you asked, and the auto-completion feature works.

index.php/fa/21027/0/

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.

Is it retrieving a list of all linked books? How can I for example, filter on all books beginning with the letter "U"?

Could you please point me to a tutorial where I can learn the syntax?

Regards,

Elvis Dowson
Re: Auto-completion not working for semantic candidates expression property [message #1644853 is a reply to message #1643620] Mon, 02 March 2015 07:47 Go to previous message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 703
Registered: July 2009
Senior Member
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
Previous Topic:Import Excel file into a Table
Next Topic:The last item of Combobox in Properties View is blank
Goto Forum:
  


Current Time: Wed Apr 24 16:28:19 GMT 2024

Powered by FUDForum. Page generated in 0.03500 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top