views:

1591

answers:

6

hi all,

i have againg a problem with completition. now i can't get any suggestion. Sure i can type var_dump, but it is more comfortable with autocompletion.

I'm using Eclipse PHP Ide 3.5 with PDT 2.1.

+1  A: 

Not sure it'll do, but maybe you can try adding the "PHP library" by hand :

  • right click on your project
  • properties
  • PHP Include Path
  • tab Libraries
  • add external source folder
  • navigate through your directories, to something like "eclipse/dropins/eclipse/plugins/org.eclipse.php.core_2.0..../Resources/language/php5"
  • add this directory

Does it help ?

(BTW, with this solution, you can get auto-completion / suggestions for PEAR libraries, for instance ; just add whatever library you're using to the PHP Include Path)

Else... Hu... Are you using a recent version of the JAVA VM ?

Pascal MARTIN
I solved it....the problem is, that i import a project from subversion and its not e pure PHP Project. On PHP-Project is working fine. Yesterday i've imported the project first as PHP and not from Subversion ;)
cupakob
hu, ok ^^ thanks for the info :-)
Pascal MARTIN
A: 

Indeed, same problem this side, got it working by not choosing "enable Project Specific settings".

its not working for me...
cupakob
A: 

Thanks Pascal MARTIN

i had the same Prob with Eclipse Ganymede 3.4.2. Adding the PHP library by hand worked fine!

Greetz Wert

A: 

Adding PHP library by hand fixed the problem. Bad thing is that I need to do this for all projects. Is there a way to fix this in one shot for entire workspace?

A: 

i almost give up it does not work with me

i get msg "The selection cannot be lunched , and are no recent lunches"

and when i try to make new php project

in project name (field): test_app ...... when i press finish

igot the following msg "creation of element failed reason : Build path contain duplicate entry : 'C:eclipse-php-galileo-win32/eclipse/plugins/org.eclipse.php.core_2.1.0.v20091017-2341/resources/language/php5' for project test_app "

please advice me ? what should i do ?

+1  A: 

I solved it....the problem is, that i import a project from subversion and its not e pure PHP Project. On PHP-Project is working fine. Yesterday i've imported the project first as PHP and not from Subversion ;)

cupakob