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 223373 - Autocomplete is not completing properly
Summary: Autocomplete is not completing properly
Status: RESOLVED WORKSFORME
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-06 08:49 UTC by Vladimir Riha
Modified: 2015-06-22 14:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2012-12-06 08:49:12 UTC
Try this in JS file:

var oldP3 = $("td[data-type=\"p3container_container\"]").attr("title") || '';
if (oldP3.length > 0) {
    oldP3 = oldP
}

and press Ctrl+Space here:
    oldP3 = oldP|


oldP should be completed to oldP3



Product Version: NetBeans IDE Dev (Build web-main-9444-on-20121206)
Java: 1.7.0_10-ea; Java HotSpot(TM) Client VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b17
System: Linux version 3.2.0-33-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Petr Pisl 2012-12-07 16:24:30 UTC
Do you mean automatically? I'm asking because I get the code completion with offering the oldP3 for me. But I have tried it in global context. Do you see the problem in the latest build.
Comment 2 Vladimir Riha 2012-12-07 16:31:39 UTC
Yes I mean "autoinserted" so if I have this

var oldP3 = $("td[data-type=\"p3container_container\"]").attr("title") || '';
if (oldP3.length > 0) {
    oldP3 = oldP
}

and invoke cc at the mentioned place, it should (or could?) be auto completed/inserted so result is


    oldP3 = oldP3

without need to confirm the item in cc. Like in Java if there's only one option left, it is inserted.



Product Version: NetBeans IDE Dev (Build web-main-9461-on-20121207)
Java: 1.7.0_10-ea; Java HotSpot(TM) Client VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b17
System: Linux version 3.2.0-33-generic-pae running on i386; UTF-8; en_US (nb)
Comment 3 Petr Pisl 2012-12-07 16:50:36 UTC
Thanks, just to be sure that we are talking about the same:)
Comment 4 Roman Svitanic 2015-06-22 14:47:50 UTC
This seems to be working in:

Product Version: NetBeans IDE Dev (Build 20150622-3159206f97b3)
Java: 1.7.0_80; Java HotSpot(TM) 64-Bit Server VM 24.80-b11
Runtime: Java(TM) SE Runtime Environment 1.7.0_80-b15
System: Mac OS X version 10.10.3 running on x86_64; UTF-8; en_US (nb)