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

Summary: CC does not offer declared variables and functions
Product: javascript Reporter: Martin Schovanek <mschovanek>
Component: EditorAssignee: Torbjorn Norbye <tor>
Status: RESOLVED FIXED    
Severity: blocker CC: pjiricka
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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