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 129036 - CC does not offer declared variables and functions
Summary: CC does not offer declared variables and functions
Status: RESOLVED 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-03-03 16:29 UTC by Martin Schovanek
Modified: 2009-02-27 14:26 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 Martin Schovanek 2008-03-03 16:29:27 UTC
[#200803021202, jdk1.5.0]

to reproduce:
-------------
1) have a .js like (| represents cursor):
  var myVar;
  function myFunc() {}
  my|
2) invoke CC

ERROR: CC does not offer the declared variable and function.
Comment 1 Torbjorn Norbye 2008-03-03 17:08:02 UTC
This works okay in my build - but I'm still working on code completion stuff and I have a bunch of stuff to check in
(which I didn't dare to do right before the M2 codefreeze since I'll travelling and may have sporadic web access this week).
Comment 2 Martin Schovanek 2008-03-10 12:33:10 UTC
Strictly speaking it does not work at global context. Eg this sample works:

function func() {
  var abc;
  ab|
}
Comment 3 Torbjorn Norbye 2008-03-11 02:37:02 UTC
Fixed in build #987 and later by changeset e2b659dacc7c.

Thanks for the discovery that this bug only shows up in the J2EE build, not in the Full build. The root problem here was
that the classpath support was depending on something in the ruby project. When that module was not installed, things
were not working right. I've moved that code out of the ruby project and into GSF such that it should work properly now.
Comment 4 polan 2008-06-09 14:38:02 UTC
Verified.
Comment 5 Marian Mirilovic 2008-08-01 11:20:43 UTC
move back to consistent state RESOLVED/FIXED