Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » XBASE content assist inconsistent behavior(XBASE content assist inconsistent behavior)
XBASE content assist inconsistent behavior [message #1786425] Thu, 03 May 2018 08:22 Go to next message
Thomas Petrou is currently offline Thomas PetrouFriend
Messages: 12
Registered: April 2018
Junior Member
Dear all,

Sorry for bothering you again but i have encountered strange (=newbie) problem that is bothering me for more than a week now.

I have the following simple grammar
grammar org.xtext.example.mydsl.MyDsl with org.eclipse.xtext.xbase.Xbase

import "http://www.eclipse.org/xtext/xbase/Xbase"

generate myDsl "http://www.xtext.org/example/mydsl/MyDsl"

Model:
	greetings+=Greeting*;
	
Greeting:
	'Hello' name=ID '!';



AS you can see it simply the one generated by eclipse but i have replaced the usage of terminals with the usage of XBase.

In the first screenshot (with terminals no Xbase )
index.php/fa/32747/0/
you can clearly see that content assist works after the work hello and suggests the word 'name' as a possible option. Same after the word name it suggests the symbol "!"

After i introduce Xbase content assist stops working for both name and the "1".
index.php/fa/32748/0/
index.php/fa/32749/0/

Console is clean from any errors and i cant find any other errors anywhere.

Any ideas about this specific problem?

Also i assume that there is somekind of way to introduce more detailed logging in order to troubleshoot this type of problems (e.g. force eclipse to stop as soon as it encounters an exception, tracing etc). Can someone give me a direction on an introductory level article about debugging/troubleshooting my dsl?

Thank you again!
Thomas

Re: XBASE content assist inconsistent behavior [message #1786436 is a reply to message #1786425] Thu, 03 May 2018 09:24 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 12229
Registered: July 2009
Senior Member
dupes https://www.eclipse.org/forums/index.php/t/1093092/

Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Debugging DSL based on Xbase
Next Topic:XBASE content assist inconsistent behavior
Goto Forum:
  


Current Time: Tue Sep 18 14:19:59 GMT 2018

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

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

Back to the top