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 189568 - Code hinting stops after array() as parameter in function
Summary: Code hinting stops after array() as parameter in function
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-16 20:59 UTC by caesar2k
Modified: 2011-09-02 15:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Before array() (26.60 KB, image/png)
2010-08-16 20:59 UTC, caesar2k
Details
After array() won't display hint (24.37 KB, image/png)
2010-08-16 20:59 UTC, caesar2k
Details

Note You need to log in before you can comment on or make changes to this bug.
Description caesar2k 2010-08-16 20:59:04 UTC
Created attachment 101429 [details]
Before array()

Looks like the editor is treating the right parenthesis of the array() as the end of the function/method call, and it won't show the code hint after that. As noted in the "before array()" screenshot, the code hinting works, and the "after array()", it won't display anymore.
I mimic the rails behavior a lot, passing arrays as named parameters instead of parameters everytime.
Comment 1 caesar2k 2010-08-16 20:59:29 UTC
Created attachment 101430 [details]
After array() won't display hint
Comment 2 Filip Zamboj 2010-09-15 12:32:57 UTC
batch reassigning
Comment 3 enyo 2011-01-19 18:40:56 UTC
Just confirming this.
This not only happens after array(), but after any function call as parameter. So doStuff($a, otherStuff(), $c) breaks the code hinting if cursor is at $c.
Comment 4 OndrejBrejla 2011-03-04 14:23:21 UTC
It's reproducible.
Comment 5 caesar2k 2011-07-09 01:00:59 UTC
this isn't fixed yet?
Comment 6 Ondrej Brejla 2011-09-02 15:32:06 UTC
It works properly for array() and it works as expected for doStuff($a, otherStuff(), $c), because it tries to show tooltip for that otherStaff function (hints are shown before and after opening/closing bracket). If you write a space after "otherStuff() |," then tooltip for enclosing function is shown. So closing as works for me.