Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Errors and warnings not shown in my editor
Errors and warnings not shown in my editor [message #989486] Thu, 06 December 2012 13:02 Go to next message
Marco Naddeo is currently offline Marco Naddeo
Messages: 62
Registered: November 2012
Member
Hi

I'm trying to understand why errors and warnings are not shown in the editor for my language... Shocked

According to the manual, I would expect error messages generated automatically (basing on grammar definition, for example) by the underlying parser technology to be automatically displayed on the screen. Instead, on the left side of the editor does not appear any icon for errors or warnings.

I also implemented a custom validator (subclass of AbstractDeclarativeValidator) and tested it to be sure it throws correctly a warning. But when I start the editor, nothing appears when it should appear.

Finally, I noticed that if I open Window -> Preferences and then I select My language -> Compiler, there isn't an Errors/Warnings sub-item of the menu, as for Java.

Could you help me, please? Crying or Very Sad


Marco

[Updated on: Thu, 06 December 2012 13:11]

Report message to a moderator

Re: Errors and warnings not shown in my editor [message #989490 is a reply to message #989486] Thu, 06 December 2012 13:22 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6384
Registered: July 2009
Senior Member
Hi this should work out Of The box. Did you try a plain new greeting
example. BTW there should be already a mydsljavavalidator class you
can simply edit

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de
Re: Errors and warnings not shown in my editor [message #989498 is a reply to message #989490] Thu, 06 December 2012 13:58 Go to previous messageGo to next message
Marco Naddeo is currently offline Marco Naddeo
Messages: 62
Registered: November 2012
Member
Christian Dietrich wrote on Thu, 06 December 2012 08:22
Hi this should work out Of The box.


What do you mean? :/

Christian Dietrich wrote on Thu, 06 December 2012 08:22
BTW there should be already a mydsljavavalidator class you can simply edit


As I said, I implemented a check method in that class and tested it with a JUnit test case, but when I launch the editor, it has no effect (I don't see my warning Shocked ).
Re: Errors and warnings not shown in my editor [message #989500 is a reply to message #989498] Thu, 06 December 2012 14:03 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6384
Registered: July 2009
Senior Member
Can you post your code

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de
Re: Errors and warnings not shown in my editor [message #989713 is a reply to message #989500] Fri, 07 December 2012 11:37 Go to previous message
Marco Naddeo is currently offline Marco Naddeo
Messages: 62
Registered: November 2012
Member
I solved by recreating my project from zero.

Now, it's ok. Smile

Thanks anyway, bye! Smile


Marco
Previous Topic:CharSequence inside while
Next Topic:Embedded editor is missing some functionality
Goto Forum:
  


Current Time: Thu Oct 23 08:06:57 GMT 2014

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

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