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 149387 - CC on jQuery Function not working correct
Summary: CC on jQuery Function not working correct
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-07 16:56 UTC by urkman
Modified: 2011-12-13 07:46 UTC (History)
1 user (show)

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 urkman 2008-10-07 16:56:17 UTC
Code Completion on jQuery is not working correct.

When I type:

$.a

I expect to get $.ajax, but it is not shown. 

The same goes for $.post, $.get, $.browser etc...

The Code Completion when using 

$().

seams to be OK.

Greetings,
Stefan Sturm

PS: Using lastest dev Build.
Comment 1 Torbjorn Norbye 2008-10-08 20:34:45 UTC
Fixed in changeset ef0a3c054ee1 (main) and d251db00fafe (misc).

Note however that you have to throw away your code index ($userdir/var/cache/gsf-index) for this fix to take effect.
That will be the case for all users migrating from 6.1 to 6.5 (or using 6.5 for the first time).    I did it this way
(instead of rev'ing the index schema version) to minimize the risk; otherwise I would have had to regenerate the various
library database indices.

As it is the fix was trivial and low risk.

I'm justifying this as a priority 2 because jQuery is becoming an important JavaScript library, code completion for it
is vital and this basic scenario should work.
Comment 2 urkman 2008-10-09 16:29:41 UTC
Hello,

I tried the last dev( 200810090201 ) and this fix is not working for me. I not just deleted
$userdir/var/cache/gsf-index. I deleted the complete userdir.

I still don't see functions like $.ajax or $.post. But now I see $.browser...

Greetings,
Stefan Sturm
Comment 3 Torbjorn Norbye 2008-10-10 04:53:54 UTC
This should be fixed in 52a5574c2c34 (main) and e8fb27a03bc4 (misc).

There was a bug in the code which extracts metainfo from the jquery documentation; some functions had the wrong
signature; $.ajax was one of these.

Fixed (but you'll need to throw again your var/cache/gsf-index yet again).
Comment 4 Vladimir Riha 2011-12-13 07:46:33 UTC
v.