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 119582

Summary: wrong parenthesis place in autocompletion of function with parameters
Product: ruby Reporter: lamyseba <lamyseba>
Component: Code CompletionAssignee: issues@ruby <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description lamyseba 2007-10-21 13:02:27 UTC
If I type

def redirect_to_index(

automatically netbeans close my parenthesis, and I type in the parameter name. At the end, the cursor is as the place
shown by the |

def redirect_to_index(msg|)

if I hit "return", I think It should be good to have

def redirect_to_index(msg)
    |
end

and not

def redirect_to_index(msg
    |      
end)

I mean, the parenthesis should not go at the end of the block.
Comment 1 lamyseba 2007-10-21 13:05:17 UTC
Note: there is a workaround, using the template feature (hitting tab)
typing "def", then "tab", then "redirect_to_index(msg" (the right parenthesis is written by netbeans), then "return".
Everythings fine in this use-case