Community
Participate
Working Groups
Build Identifier: If there is a non-existing rule while writing a new Xtext grammar, a quick fix which creates this rule would be nice for lazy people :) Example: The developer writes a new rule, e.g. 'Type' like so Type: Basetype|Entity; Assuming that the rule 'Basetype' doesn't yet exist, an error is shown. A quick fix could now create a new rule 'Basetype', with colon and semicolon and placing the cursor after the colon. Reproducible: Always
Created attachment 176640 [details] proposed patch with tests
Created attachment 176641 [details] proposed patch with tests fixed wrong package name to o.e.xtext.xtext.ui
Michael, thanks for the patch. Could you please remove the quick-fix for the fully qualified grammar name? I don't like the implementation of the validation rule and would rather reimplement that one based on the actual package fragments. A fix would thereby imply a package-rename which seems to be out of scope.
Created attachment 176642 [details] proposed patch with tests removed quick-fix for the fully qualified grammar name
Scheduled for M2 to make sure the patch gets some attention.
Very nice! :-) Only two things: 1) Please move the XtextGrammarLinkingDiagnosticMessageProvider to the runtime bundle "org.eclipse.xtext.xtext.XtextLinkingDiagnosticMessageProvider". 2) The enum fix seems to be meant to fix the empty literal by setting the id's name as keyword. However, when testing the keyword is just removed (Which is also ok, but the code looks different).
fixed in HEAD
Closing bug which were set to RESOLVED before Eclipse Neon.0.