Bug 563862 - Hovering over syntax error underline doesn't show the syntax error information
Summary: Hovering over syntax error underline doesn't show the syntax error information
Status: CLOSED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.16   Edit
Hardware: All All
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2020-06-02 14:50 EDT by Gayan Perera CLA
Modified: 2020-06-03 05:08 EDT (History)
3 users (show)

See Also:


Attachments
Syntax-2020-03.png (12.04 KB, image/png)
2020-06-02 14:50 EDT, Gayan Perera CLA
no flags Details
Syntax-2020-06 (25.02 KB, image/png)
2020-06-02 14:51 EDT, Gayan Perera CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gayan Perera CLA 2020-06-02 14:50:09 EDT
Hovering over syntax error underline doesn't show the syntax error information. Please see the screenshots.
Comment 1 Gayan Perera CLA 2020-06-02 14:50:35 EDT
Created attachment 283125 [details]
Syntax-2020-03.png
Comment 2 Gayan Perera CLA 2020-06-02 14:51:52 EDT
Created attachment 283126 [details]
Syntax-2020-06
Comment 3 Gayan Perera CLA 2020-06-02 14:55:25 EDT
The same problem seems to there for all the highlighting including sonar violations. I had to enable annotations in ruler to read the sonar violation descriptions.
Comment 4 Andrey Loskutov CLA 2020-06-02 15:01:00 EDT
I've tried with this snippet:

import java.util.logging.Logger;
public class App {
	public static void main(String[] args) {
		Logger
	}
}

and can't reproduce. I'm using I20200528-0200. Which exact Eclipse version are you using?
Comment 5 Gayan Perera CLA 2020-06-03 01:37:17 EDT
(In reply to Andrey Loskutov from comment #4)
> I've tried with this snippet:
> 
> import java.util.logging.Logger;
> public class App {
> 	public static void main(String[] args) {
> 		Logger
> 	}
> }
> 
> and can't reproduce. I'm using I20200528-0200. Which exact Eclipse version
> are you using?

Build Id : I20200602-0510
Comment 6 Sarika Sinha CLA 2020-06-03 02:01:05 EDT
I cna reproduce this but what error do you expect there?
If you make it
Logger.getAnonymousLogger(ff);

Hovering underlined "ff" shows that ff can not be resolved.
Comment 7 Andrey Loskutov CLA 2020-06-03 02:39:18 EDT
(In reply to Gayan Perera from comment #5)
> (In reply to Andrey Loskutov from comment #4)
> > I've tried with this snippet:
> > 
> > import java.util.logging.Logger;
> > public class App {
> > 	public static void main(String[] args) {
> > 		Logger
> > 	}
> > }
> > 
> > and can't reproduce. I'm using I20200528-0200. Which exact Eclipse version
> > are you using?
> 
> Build Id : I20200602-0510

Same here, I can't reproduce it also in a fresh new workspace.
Comment 8 Gayan Perera CLA 2020-06-03 03:00:47 EDT
(In reply to Sarika Sinha from comment #6)
> I cna reproduce this but what error do you expect there?
> If you make it
> Logger.getAnonymousLogger(ff);
> 
> Hovering underlined "ff" shows that ff can not be resolved.

Here when u have just the Logger. A error icon is shown in annotations ruler. When i hover over that it shows syntax error descriptions. But if i hover over the underline error i get javadoc. Seems like the javadoc popup has more prio than the error popup.
Comment 9 Gayan Perera CLA 2020-06-03 03:03:57 EDT
(In reply to Sarika Sinha from comment #6)
> I cna reproduce this but what error do you expect there?
> If you make it
> Logger.getAnonymousLogger(ff);
> 
> Hovering underlined "ff" shows that ff can not be resolved.

I tried the ff sample of yours. I dont get any popup hovering over ff as well. I will try to update last night build and see if it makes a difference
Comment 10 Sarika Sinha CLA 2020-06-03 03:07:55 EDT
Ok, so I guess I was wrong when I said I could reproduce the bug.
It shows me errors on hover. Please try with a new build and workspace.
Comment 11 Lars Vogel CLA 2020-06-03 03:25:43 EDT
Gayan, also try to reset hovers settings to default. Search for hover in the preference page to find the setting.
Comment 12 Andrey Loskutov CLA 2020-06-03 03:35:31 EDT
(In reply to Lars Vogel from comment #11)
> Gayan, also try to reset hovers settings to default. Search for hover in the
> preference page to find the setting.

Just start with a new workspace and make sure you don't use Oomph.
Comment 13 Gayan Perera CLA 2020-06-03 05:08:09 EDT
With the latest build its working. We can close this issue.