Quickfixes do not appear reliably [message #910895] |
Mon, 10 September 2012 15:25 |
Michael A. 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 |
Sebastian Zarnekow 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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03753 seconds