This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 256528

Summary: Hints icon showing on wrong line
Product: javascript Reporter: mclaborn <mclaborn>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: REOPENED ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
See Also: https://netbeans.org/bugzilla/show_bug.cgi?id=257103
https://netbeans.org/bugzilla/show_bug.cgi?id=267242
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log
the hint icon on the wrong line
the text of the hint

Description mclaborn 2015-11-11 21:27:50 UTC
Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Linux version 3.13.0-68-generic running on amd64
Java; VM; Vendor = 1.8.0_51
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.51-b03

Reproducibility: Happens sometimes, but not always

See attached screen shots. After working in a Javacript file for a while, sometimes the hint icons start showing on the wrong line. Closing and re-opening the file clears the problem. 
(I think I saw this an a JSP file earlier, but I was in a hurry and didn't capture any information.
Comment 1 mclaborn 2015-11-11 21:27:53 UTC
Created attachment 157291 [details]
IDE log
Comment 2 mclaborn 2015-11-11 21:29:07 UTC
Created attachment 157292 [details]
the hint icon on the wrong line
Comment 3 mclaborn 2015-11-11 21:29:11 UTC
Created attachment 157293 [details]
the text of the hint
Comment 4 mclaborn 2015-11-11 21:30:16 UTC
May be related to 256154?
Comment 5 Petr Pisl 2016-08-15 11:39:10 UTC
 I'm not sure, but I did some fixes in the hint positions. I can not reproduce it now in dev build? Could you attach a file, where we can reproduce this?

I'm closing this as fixed, but please reopen if you have still reproducible case. Thanks.
Comment 6 mclaborn 2016-08-15 16:03:54 UTC
Quick tests in 201608150002 cannot reproduce.  Will keep my eye on it.
Comment 7 Petr Pisl 2016-08-16 11:50:34 UTC
If you run in it and if you can, please attach the file, where it can be reproduce it and reopen the bug. Thanks.
Comment 8 mclaborn 2017-02-07 18:03:08 UTC
I'm fairly certain that 256526, 257103 and 267242 all have the same root cause. There is some action I do regularly that messes up some internal table of line numbers in the Java source file with what is actually present in the editor. (My hypothesis.) Once in this state, Fix Imports, refactoring and error/hint icons are all messed up.  Closing the file and reopening it usually fixes the problem. 

How can I go about capturing what is needed to catch this?