Community
Participate
Working Groups
This is a follow up for bug 347012. I think the main problem is this pattern in the grammar Root: a=A* A: b=B .. B: {B} c=C* which could be simplified to Root: a=A* A: b=B? .. B: c=C+
Is there any progress on this? I'm facing the same situation as described in bug 347012. Look at the following situation: File in Editor: domain MyDomain { entity A } If I hit ctrl-space after the 'A' I get the situation described in this bug. On the other hand if the file looks like the following: domain MyDomain { entity A entity B { name : String } } And I do the same as before (ctrl-space after 'A') everything works, i.e. I get the correct assistance. The grammar at that particular point is: Entity: 'entity' name=ID (doc=STRING)? (ann+=Annotations)* '{' where STRING starts with ' or " and Annotations starts with 'annotation'. I also tried the same with the following grammar: Entity: 'entity' name=ID '{' but surprisingly the outcome is still the same (eclipse locking up). See also the attached stack trace (look at Worker-12 and main)
Created attachment 214235 [details] Stack Trace
Which version do you use?
The version is Xtext 2.2.1
Please provide a grammar file that allows to reproduce the issue if the grammar is different from the one in bug 347012
Created attachment 214240 [details] Xtext grammar The grammar is similar and might actually be equivalent but I'm not quite sure. I tried to strip it down as much as possible. In reality its much larger and the ecore is not generated but imported.
see also bug 382088