What is:
On Host machine:
Windows 7
Eclipse for PHP Developers
Version: Helios Service Release 2
On guest machine: Linux debian squeeze
I want to edit my remote project through SSH in Eclipse by using RSE. All is okay, I do so in Remote System Explorer perspective:
Then I go to PHP perspective. Right click on project->Configure->Add PHP Support. And press Ctrl+Shift+Space
or Ctrl+Space
. No completions (code assist) available.
Okay I'm found this bug (at 2008) and solution description (at 2009): Bug 251496. I did so:
Here's my solution to the problem: I just deleted the RemoteSystemsTempFiles project in the PHPExplorer View and than recreated it as a PHP Project (New->PHP Project, ofcourse it has to be named again RemoteSystemsTempFiles). This worked for me, now code completion is ok, hope this helps.
It does not solve the problem. Because PHP Language library does not have Core API maybe... Help. Thanks.
I found that adding the folowing lines to the .project did solve the autocompletion issue for the classes of the PHP project itself but did not work with native PHP functions:
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
<nature>org.eclipse.php.core.PHPNature</nature>
I found a way around it:
You have to go to your eclipse configuration folder and find the PHP language folder:
In my case: C:\Program Files\EclipseSF2\configuration\org.eclipse.osgi\bundles\276\1\.cp\Resources\language\php5.3
Then you can:
This allows the autocompletion for native PHP function!
For people using the Symfony framework you can add to your .project file the following lines:
<buildCommand>
<name>com.dubture.symfony.core.symfonyBuilder</name>
<arguments>
</arguments>
</buildCommand>