views:

2371

answers:

3
+7  A: 

I've tried opening your project, and the completion seems to be working just fine for me.

The only thing I can think of is to try to delete your entire NB cache, which should be located in $HOME/.netbeans/$VERSION/var/cache/. This is a wild guess

Create a backup first, I didn't try this!

If that fails, maybe you should try creating a new project, maybe that will kick NB in the butt.

dr Hannibal Lecter
I was _really_ hesistant to try this, but it did actually fix the problem. (rm -rf'ing the cache)
Kris
Kewl, now I know what to do if this ever happens to me :) Strange that it happened at all...
dr Hannibal Lecter
Worked for me, thanks!
Some Canuck
I've got a similar problem, in that the project only seems to be scanned when netbeans starts, so code completion doesn't work for variables/methods that were defined in this coding session. (The code navigator knows about though). Unfortunately deleting my netbeans home directory hasn't fixed this. For reference, this is on: NetBeans IDE 6.7 (Build 200906241340), Java: 1.6.0_14; Java HotSpot(TM) 64-Bit Server VM 14.0-b16, System: Linux version 2.6.28-14-generic running on amd64; UTF-8; en_GB (nb)
therefromhere
I've worked out a trigger for the bug I'm seeing - it's something to do with adding folders to the PHP include path within netbeans. If I add the project root to the path (actually duplicating what's set in the include_path), then I get code completion for stuff from my other projects, but it won't update without a restart. If I don't add it then I only get code completion for the current project, but it will update for new code. Frustrating!
therefromhere
had some odd issues with code completion in NB6.8 for python. Clearing the cache solved my problems.
David
+1  A: 

What worked for me was clearing the cache, then explicitly including some key subdirectories in the Global include path. Appears that for some reason NB 6.7 wasn't recursing the directories.

Jonathan Hendler
A: 

I'll be darned - this worked for me too (clearing the Cache). Nice.

Darren