1

I've installed Eclipse 3.5.1 (PDE), which I believe I got from Zend's download site (it was a while ago on my travel laptop). I can't get auto-complete to work for any of my included libraries. I've tried both adding the libraries to the 'include path' and just linking the files to a subdirectory of the project. Neither gets me auto-complete of the library classes.

My normal development system has an older version of Eclipse which I don't update, because it currently works well, and I fear an update will change that. I find configuring eclipse more work that actual coding, and more voodoo that mod_rewrite. I doubt I'm alone.

Any secret to getting auto-complete working?

Tim Lytle
  • 17,008
  • 9
  • 59
  • 88
  • I do not no PDE, but is there a setting similar to http://stackoverflow.com/questions/908489/eclipse-java-code-completion-not-working/908930#908930? Plus, you can install as many new Eclipse as you want and try them out to see if they work, instead of updating your current (and working) Eclipse. – VonC Mar 06 '10 at 07:19
  • @VonC True, I guess I could move the working copy on my main system to my backup/travel system. Just would like to know who to make it work - ya know? – Tim Lytle Mar 06 '10 at 16:20
  • basically, you can uncompressed an eclipse anywhere you want, and use an eclipse.ini like mine (http://stackoverflow.com/questions/142357/what-are-the-best-jvm-settings-for-eclipse/1409590#1409590) to reference any current workspace you have. – VonC Mar 06 '10 at 16:40

2 Answers2

1

No you're definitely not alone! I have experienced this problem in many installations of Eclipse (after updates and such etc etc). Try running Build Project. I know that solution has worked in some instances for me. My last installation I was running Eclipse Galileo and once I finally got the intellisense to at least work it was extremely slow. I tried lowering the time delay for the intellisense which helped in php files (still had a 1.5 second delay at least) but made it way over-sensative in my view scripts for example.

I finally bit the bullet and switched to Zend Studio 8. (At least they've knocked the price down $100 haha).

Eclipse has a quirky auto-complete but the Zend one is excellent! :)

Yes Barry
  • 8,896
  • 4
  • 43
  • 63
0

You can add a PHP library to the project in Project properties/PHP Include Path/Libraries. After that, autocomplete will index all php files in that directory.

Maybe it's not the best solution for you, because it doesn't care about whether the file is included or not in the given script. If I include /usr/share/pear, and now I see all PEAR libs' functions everywhere.

sevcsik
  • 852
  • 9
  • 11