Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Quickfixes do not appear reliably
Quickfixes do not appear reliably [message #910895] Mon, 10 September 2012 15:25 Go to next message
Michael A. is currently offline Michael A.Friend
Messages: 8
Registered: June 2012
Junior Member
Hi,

currently I am having a problem with my quickfixes not appearing reliably. Does anyone else know this issue or even how to fix it?

Here are the details:


    - In my validator class there are two checks, one issueing a warning the other one an info
    - The relevant part of my model is instantiated by a text on a single line
    - On this line there are two model (abstract syntax tree) nodes
    - For the parent there is an info-issue and for the child there is a warning-issue
    - When hovering my mouse pointer above the icons on the left border both issues are displayed
    - Both issues appear in the Problems-view
    - When I click the issues-icon on the left border, only the quickfix for the info (parent-node) is offered
    - When I hover my mouse pointer above the child-nodes text most often but not always the quickfix for the warning (child-node) will be offered
    - The best workaround I have so far, is left-clicking the desired issue (parent or child nodes) in the Problems view and then clicking the symbol on the left border,


To me it seems like the parent nodes info is obscuring the child nodes warning in the resolution registration process. Even after inserting a couple of line breaks before the child nodes text I can see both symbols info and warning on different lines, each with the expected text when hovering my mouse pointer above it, but the parent nodes resolution will be offered even if I click on the child nodes issue-icon. Works "fine" again if I click, the child nodes issue in the Problems-View before. Btw my resolution-registration method (@Fix) for the child issue is not even entered - so it's not related to some exception in my code. I've debugged a bit into the framework code .. and it seems as the missing issue is not even on the list resolutions are created for.

Anyone else run into that one?
Bug or Feature?
Better Workarounds?
True Fixes?

thanks, Micha
Re: Quickfixes do not appear reliably [message #911062 is a reply to message #910895] Mon, 10 September 2012 22:43 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Michael,

the implementation is symmetric to other Eclipse IDEs like JDT. Consider
the following java code (inner classes).

class First implements Runnable {} class Second implements Runnable {}

There are two issues in a single line. The gutter action will only offer
a quickfix for the first problem. After you fixed that, a second one
will be displayed.

Does that make sense to you?

Regards,
Sebastian
--
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 10.09.12 17:25, schrieb Michael A.:
> Hi,
>
> currently I am having a problem with my quickfixes not appearing
> reliably. Does anyone else know this issue or even how to fix it?
>
> Here are the details:
>
>
> - In my validator class there are two checks, one issueing a warning
> the other one an info
> - The relevant part of my model is instantiated by a text on a single
> line
> - On this line there are two model (abstract syntax tree) nodes
> - For the parent there is an info-issue and for the child there is a
> warning-issue
> - When hovering my mouse pointer above the icons on the left border
> both issues are displayed
> - Both issues appear in the Problems-view
> - When I click the issues-icon on the left border, only the quickfix
> for the info (parent-node) is offered
> - When I hover my mouse pointer above the child-nodes text most often
> but not always the quickfix for the warning (child-node) will be offered
> - The best workaround I have so far, is left-clicking the desired
> issue (parent or child nodes) in the Problems view and then clicking the
> symbol on the left border,
>
> To me it seems like the parent nodes info is obscuring the child nodes
> warning in the resolution registration process. Even after inserting a
> couple of line breaks before the child nodes text I can see both symbols
> info and warning on different lines, each with the expected text when
> hovering my mouse pointer above it, but the parent nodes resolution will
> be offered even if I click on the child nodes issue-icon. Works "fine"
> again if I click, the child nodes issue in the Problems-View before. Btw
> my resolution-registration method (@Fix) for the child issue is not even
> entered - so it's not related to some exception in my code. I've
> debugged a bit into the framework code .. and it seems as the missing
> issue is not even on the list resolutions are created for.
>
> Anyone else run into that one?
> Bug or Feature?
> Better Workarounds?
> True Fixes?
>
> thanks, Micha
Re: Quickfixes do not appear reliably [message #911831 is a reply to message #911062] Wed, 12 September 2012 12:04 Go to previous message
Michael A. is currently offline Michael A.Friend
Messages: 8
Registered: June 2012
Junior Member
Thanks for the answer,

I had circumvented the problem by attaching both issues to the same model node.
But still I guess this issue is worth investigating, because what had puzzled me most was that there seemed to be an indeterministic behaviour, sometimes klicking the child nodes issue icon would yield the expected resolution sometimes not. Currently I am a bit to busy to provide a debugging example.

Cheers, Micha
Previous Topic:Problem markers don't get cleaned if project doesn't have xtext nature
Next Topic:Creating a Graphiti editor on top of Xtext editor
Goto Forum:
  


Current Time: Fri Mar 29 01:08:18 GMT 2024

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

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

Back to the top