Community
Participate
Working Groups
Build Identifier: Eclipse Helios Build id: 20110218-0911 Xtext 2.0.0.v201106010845 I have a grammar for language whose syntax is already defined. In this grammar I have a rule that has several lists of elements, each section starting with a keyword. In one of the sections I have lists of alternatives via an alternatives rule, where each alternative has its own rule that includes a name, an optional element with two keywords and an enumeration. If I am after the name, content asssist not only shows the legal elements of the subrule, but also offers the keyword of the next section, which is not legal and the parser then marks. This occurs only if I have three or more alternatives in the alternative rule and both the optional and enumeration in each of the subrules. It does not occur if I have only two alternatives, or a single keyword in the optional, or only the optional and not the enumeration. It also does not occur if I do not have three subrules, but a single rule that returns the appropriate subclasses - in this case all the subclasses are stored in a single list rather than the desirable separate lists for each subclass. Reproducible: Always Steps to Reproduce: 1.Install the attached grammar and generate the editor using MyDsl 2.Open the editor on the attached example file 3.Place the cursor after the colon (:) in the port declaration and activate content assist. The example has several places (marked with comments) wherre content assist works or does not work.
Created attachment 197410 [details] Grammar that produces the bug
Created attachment 197411 [details] generation script for grammar (generic from new Xtext project)
Created attachment 197412 [details] Example model that produces the bug
XText Build 2.0.0.v201106010845 under Helios.
Pushed to master.
Closing all bugs that were set to RESOLVED before Neon.0