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 224800 - Code completion active and manual entry of path ../ leads to duplicate result
Summary: Code completion active and manual entry of path ../ leads to duplicate result
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-12 22:29 UTC by everflux
Modified: 2013-01-17 09:23 UTC (History)
0 users

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 everflux 2013-01-12 22:29:53 UTC
[ BUILD # : 201301102100 ]
[ JDK VERSION : other ]

Edit PHP file in a sub directory of the project.
Type:
require_<ctrl><space>, will be completed to
require_once ''; and cursor positioned at string entry, if now <ctrl><space>
triggers code completion again, popup show "../" as first item, which is fine.
Enter "../" by typing "." "." "/" leads to invocation of code completion
somehow with the result 

require_once '....//';

Expected result::

require_once '../';

Thus not triggering the code completion when manual entry is already the full
content.
Comment 1 Ondrej Brejla 2013-01-14 09:57:18 UTC
Reproducible, thanks for catching that.
Comment 2 Ondrej Brejla 2013-01-14 09:59:05 UTC
It doesn't work in 7.2 either.
Comment 3 Ondrej Brejla 2013-01-14 10:38:11 UTC
Fixed in web-main #759a2765c877
Comment 4 Quality Engineering 2013-01-15 07:28:34 UTC
Integrated into 'main-golden', will be available in build *201301150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/759a2765c877
User: Ondrej Brejla <obrejla@netbeans.org>
Log: #224800 - Code completion active and manual entry of path ../ leads to duplicate result
Comment 5 Martin Kanak 2013-01-17 09:23:39 UTC
verified

Product Version: NetBeans IDE Dev (Build 201301170001)
Java: 1.7.0_10-ea; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b17
System: Linux version 3.2.0-35-generic running on amd64; UTF-8; en_US (nb)