Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Error after autocomplete grammar
Error after autocomplete grammar [message #1671380] Fri, 13 March 2015 15:31 Go to next message
Luis De Bello is currently offline Luis De BelloFriend
Messages: 95
Registered: January 2015
Member
Hi guys,

I am having an issue when I try to use the autocomplete functionality, I have modified the autocomplete to add some additional proposals but sometimes after using the autocomplete the editor marks error but if I close the editor and re-opening it the error disappear.

Do you have any idea about this?

Regards,
Luis
Re: Error after autocomplete grammar [message #1671401 is a reply to message #1671380] Fri, 13 March 2015 15:43 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14664
Registered: July 2009
Senior Member
Hi,

can you be more specific on the errors you get?


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Error after autocomplete grammar [message #1671491 is a reply to message #1671401] Fri, 13 March 2015 16:29 Go to previous messageGo to next message
Luis De Bello is currently offline Luis De BelloFriend
Messages: 95
Registered: January 2015
Member
Hi Christian,

Is one syntax error because the problem is the following

{
a:
}

It is no valid in my grammar so the editor said "no viable alternative at. So I press ctrl + space to get the autocompletion and modify my document as follow

{
a: mensaje_autocompletado
}

in this case the editor continue marking the previous editor because it didn't revalidate my document, so I run the validation it works ok.

Regards,
Luis
Re: Error after autocomplete grammar [message #1671520 is a reply to message #1671491] Fri, 13 March 2015 16:45 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14664
Registered: July 2009
Senior Member
Hi,

are you sure the error does not go away if you save the file? if so this sounds like a bug.
but i cannot say this is up to your highly customizations (e.g. lexer)
maybe it is not proper configured/used in the ui/content assist parser


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Minimizing dependencies when deploying
Next Topic:NullPointerException in XtextReconcilerJob when file extension has different capitalization
Goto Forum:
  


Current Time: Tue Apr 16 10:29:19 GMT 2024

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

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

Back to the top