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 258698 - Problem with auto code completion
Summary: Problem with auto code completion
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 8.1
Hardware: Macintosh Mac OS X
: P1 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-07 00:09 UTC by akshaybabloo
Modified: 2016-04-08 11:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot (207.59 KB, image/png)
2016-04-07 23:25 UTC, akshaybabloo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description akshaybabloo 2016-04-07 00:09:02 UTC
Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Mac OS X version 10.11.4 running on x86_64
Java; VM; Vendor = 1.8.0_77
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.77-b03

Hi,

There seems to be a problem when auto code completion is turned on.

For example:

Scene scene = new Scene(root, 650, 480);
scene.getStylesheets().clear();
     ^
     |
     |

At the '.', I get a list of methods, then when I type 'g' whatever is in the first of the list gets selected without me pressing the return key.

In my case its 'scene.addEventFilter(EventType.ROOT, eventFilter);'

Is there any workaround for this bug?

Thanks.
Comment 1 Jiri Prox 2016-04-07 17:04:55 UTC
Can you please check code completion settings?
Preferences -> Editor -> Code Completion -> Java -> Completion Selectors for Java
Comment 2 akshaybabloo 2016-04-07 23:25:24 UTC
Created attachment 159155 [details]
Screenshot
Comment 3 akshaybabloo 2016-04-07 23:28:00 UTC
I have attached a screenshot of the code completion. I used to have "Auto popup on typing any java identifier part" and changed the completion selector to "[.,;:([+-=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVXYZ]", I thought this was the problem so I disabled it. but still no workaround.
Comment 4 Jiri Prox 2016-04-08 07:39:25 UTC
Autopopup on any Java Identifier Part and Code completion selector are two independent settings. 

If the first one is checked the completion is invoked when typing any letter of identifier. Otherwise the completion is invoked only when typing '.' 

The second one controls the keys which accepts selected item from completion list. The default value is .,;:([+-=

the problem is that you've set that the completion item is selected by any letter, so the list is not filtered by the item is accepted when typing 'g'.

Please set it to proper value again.
Comment 5 akshaybabloo 2016-04-08 11:39:13 UTC
Yes! My bad. I though the more the letters in the field, the better is the search criteria on key press.

This has resolved my problem.

Thank you very much.