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 239846

Summary: Closing brace ) and semicolon not autoinserted on Enter
Product: javascript Reporter: douglasv <douglasv>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: REOPENED ---    
Severity: normal CC: vriha
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description douglasv 2013-12-29 01:16:27 UTC
Product Version = NetBeans IDE 7.4 (Build 201310111528)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_40
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.0-b56

$(document).ready(function() {
    $('#switcher-large').on('click', function (){
        $('body').addClass('large');
    });
});

with this code:  typing ( 'cli   and pressing ctrl-spacebar didn't invoke any code completion
also you have to enter the opening { and after pressing enter you have to enter the final ;
Comment 1 douglasv 2013-12-29 01:16:30 UTC
Created attachment 143499 [details]
IDE log
Comment 2 Vladimir Riha 2013-12-29 14:03:29 UTC
Thank you for reporting.

Ad no completion for "cli", this is not supported I believe (if you mean the "click" in first parameter of on()). Editor does not know that first parameter of on() call is event.

Ad { and ; Could you please describe step by step to reproduce it (what do you type and what do you expect to complete)? Thank you in advance
Comment 3 Vladimir Riha 2013-12-29 16:15:14 UTC
From reporter's email:


$(document).ready(function() { 

} ) ;

after typing the first { after function()  and pressing enter,
I would expect the editor to complete the code block by automatically typing } ) ;
Comment 4 Vladimir Riha 2013-12-30 06:53:00 UTC
Reproducible, it autocompletes the closing }, but not ); It could be useful