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 269830

Summary: Missing imports are still highlighted as erorrs after they are added using ALT+ENTER
Product: java Reporter: haslam223
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: DEFECT Exception Reporter:
Attachments: Screenshot of the bug. Red highlight is still shown after the import was added using ALT+ENTER.

Description haslam223 2017-02-15 01:14:12 UTC
Created attachment 163634 [details]
Screenshot of the bug. Red highlight is still shown after the import was added using ALT+ENTER.

Many times during development I use the ALT+ENTER shortcut to rectify a missing import. Netbeans will add the import for me but it doesn't always remove the red underline from the error. ALT+ENTER will still show the suggestions, even after the import has been added.

I have attached an example screenshot.
There is seemingly no way to remove the bug apart from closing and reopening the file.