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 243995

Summary: autocomplete occassionally broken
Product: editor Reporter: xenoterracide
Component: Completion & TemplatesAssignee: Dusan Balek <dbalek>
Status: REOPENED ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description xenoterracide 2014-04-22 13:02:36 UTC
Product Version = NetBeans IDE 8.0 (Build 201403022200)
Operating System = Linux version 3.14.1-1-ARCH running on amd64
Java; VM; Vendor = 1.8.0
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.0-b70

this doesn't appear to be source related, as I reloaded netbeans in one case and it fixed it. Hoping that my IDE log sheds light on the issue. Sometimes I'm typing out classes which should receive suggestions and don't. I also had a potentially related issue (which won't be in this log) where the autocomplete was offered, but when selected it deleted the thing instead of completing.
Comment 1 xenoterracide 2014-04-22 13:02:42 UTC
Created attachment 146882 [details]
IDE log
Comment 2 Dusan Balek 2014-05-26 09:50:48 UTC
Hard to fix without a reproducible test case.
Comment 3 petteyg359 2014-08-25 14:11:20 UTC
Just ran into this this morning. Auto-complete won't complete class names upon enter. Instead, it blanks the previous input. It will compete them on pressing punctuation. My wild guess is that somehow the enter press is not getting consumed, and is passed on to the editor which overwrites the selected stockinette prefix.
Comment 4 petteyg359 2014-08-25 15:41:17 UTC
(In reply to petteyg359 from comment #3)
> Just ran into this this morning. Auto-complete won't complete class names
> upon enter. Instead, it blanks the previous input. It will compete them on
> pressing punctuation. My wild guess is that somehow the enter press is not
> getting consumed, and is passed on to the editor which overwrites the
> selected stockinette prefix.

s/stockinette/autocomplete/

Note that it is _only_ class names this affected. Variable names had no problem completing. Also, like bug 207568, the bug seems to resolve itself sporadically.
Comment 5 petteyg359 2014-10-14 15:01:01 UTC
This seems related to automatic imports. Where normally hitting enter on an auto-completed class name would add that import in addition to auto-completing the typed code, when this bug happens it does neither. Variables and already-imported classes auto-complete without error. Also, all Java runtime classes auto-complete even if they are not already imported. This bug may be rooted in the indexer for project libraries.
Comment 6 Martin Balin 2016-07-07 07:29:21 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 7 passhico 2016-10-28 14:55:35 UTC
Hi , im with the same problem in the 8.2 i add some PHP templates but the completion only show the templates by default.