views:

2711

answers:

3

I searched a lot, checked many times the neccesary steps, but it still don't work.

My environment is :

  1. Latest eclipse for PHP developer package

  2. Project is newed, not check out directly from SVN

  3. .project has a line

    <nature>org.eclipse.php.core.PHPNature</nature>
    
  4. .buildpath has a line

    <buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
    
  5. .settings/org.eclipse.core.resources.prefs has a line

    include_path=0;/projectname
    
  6. file ensured opened in PHP Editor

Something works:

  1. PHP core function defination displayed when mouse over, and Ctrl+Click will open its defined file, but input 'arr' nothing happens
  2. Autocomplete does work for internal functios/variables such as class members But never works for PHP core functions, neither syntax highlighting
A: 
VonC
not this one, in my project (no namespace specified), also tried a clean PHP project, autocomplete does work for class members, just no effect when input core functions.
Edward
+2  A: 

Right-Click on your project -> Configure -> Add PHP Support...

Works for me on Eclipse 3.5 / PDT 2.1

Benjamin Cremer
ever checked this option, it's gray
Edward
wow thanks, this worked for me on Galileo, it's a pain to work without autocomplete for core features
sinisterff
A: 

If have the problem that $this-> does nothing, so eclipse can't find the function names and variables that are right there in the class! also from outside $class-> does nothing either. Come to think about, nothing related to classes auto-completes. Variables and core functions and self-defined (non class) functions auto-complete though.

Allocater