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 244523 - Weird code completion behavior involving parenthesis
Summary: Weird code completion behavior involving parenthesis
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: CSS Editor (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-15 23:18 UTC by voldomazta
Modified: 2014-10-06 13:24 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 voldomazta 2014-05-15 23:18:12 UTC
Try typing this on a css file and watch closely where your cursor is.

.foo {
    background: url(bar.gif);
}

When you open the parenthesis, it will do a code completion for the right parenthesis. Since it does not have a semicolon, I opt to type a right parenthesis because it is faster than pressing [End] key or right arrow before I can type the semicolon. When I do, it shows up like this:

.foo {
    background: url(bar.gif)|)
}

The expected behavior works correctly for javascript and PHP when you type say foo($bar)
Comment 1 Vladimir Riha 2014-05-16 05:55:29 UTC
reproducible

Product Version: NetBeans IDE 8.0 (Build 201403101706)
Updates: NetBeans IDE is updated to version NetBeans 8.0 Patch 1.1
Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Linux version 3.2.0-60-generic-pae running on i386; UTF-8; en_US (nb)