Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Disable errors reported by xtext
Disable errors reported by xtext [message #1752281] Fri, 20 January 2017 15:12 Go to next message
Daniel Millard is currently offline Daniel MillardFriend
Messages: 5
Registered: November 2016
Junior Member
Hello,

I'm working on a compiler for a DSL with xtext handling the syntactic structure/UI features of the language and Haskell handling the semantics.

It is the Haskell that will identify the semantic errors however I am getting issues with the xtext reporting numerous errors. The xtext is very broad and will accept nearly allworkable code as long as the structure is correct.

Is there anyway of disabling the errors being generated by xtext as they are unneeded and clog the error reporting making it hard to find the real errors.

Thank you for your time
Re: Disable errors reported by xtext [message #1752305 is a reply to message #1752281] Fri, 20 January 2017 19:20 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1497
Registered: July 2009
Senior Member
What kind of errors? Resolving/linking errors? In that case you could consider binding a custom ILinkingDiagnosticMessageProvider.Extended and override getUnresolvedProxyMessage(). Returning null will cause the error to be ignored.

OTOH, if cross references are not resolved correctly, much of the editing & navigation support will break down, not sure that's what you want.
Re: Disable errors reported by xtext [message #1752386 is a reply to message #1752305] Mon, 23 January 2017 09:40 Go to previous message
Daniel Millard is currently offline Daniel MillardFriend
Messages: 5
Registered: November 2016
Junior Member
It would be resolving errors.

I will look into the custom linking though.

Thanks for your reply
Previous Topic:Problem with Cross-Referencing and ProxyURIs
Next Topic:Referencing nameless Cross-references
Goto Forum:
  


Current Time: Fri Aug 18 14:42:19 GMT 2017

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

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