什么是:
在主机上:
Windows 7的面向 PHP 开发人员的 Eclipse
版本:Helios Service Release 2
On Host machine:
Windows 7
Eclipse for PHP Developers
Version: Helios Service Release 2
在访客机器上:Linux debian 挤压
On guest machine: Linux debian squeeze
我想使用 RSE 在 Eclipse 中通过 SSH 编辑我的远程项目.一切都好,我在远程系统资源管理器的角度这样做:
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:
然后我进入 PHP 视角.右键单击项目->配置->添加 PHP 支持.然后按 Ctrl+Shift+Space
或 Ctrl+Space
.没有可用的补全(代码辅助).
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.
好的,我发现了这个错误(2008 年)和解决方案描述(2009 年):错误 251496.我这样做了:
Okay I'm found this bug (at 2008) and solution description (at 2009): Bug 251496. I did so:
这是我对问题的解决方案:我刚刚删除了 PHPExplorer 视图中的 RemoteSystemsTempFiles 项目,然后而不是将其重新创建为 PHP 项目(新建-> PHP 项目,当然它必须是再次命名为 RemoteSystemsTempFiles).这对我有用,现在代码完成是好的,希望这会有所帮助.
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.
它不能解决问题.因为 PHP 语言库没有核心 API 可能......帮助.谢谢.
It does not solve the problem. Because PHP Language library does not have Core API maybe... Help. Thanks.
我发现将以下几行添加到 .project 确实解决了 PHP 项目本身的类的自动完成问题,但不适用于原生 PHP 函数:
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>
我找到了解决办法:
你必须去你的eclipse配置文件夹并找到PHP语言文件夹:
You have to go to your eclipse configuration folder and find the PHP language folder:
在我的例子中:C:Program FilesEclipseSF2configurationorg.eclipse.osgiundles2761.cpResourceslanguagephp5.3
那么你可以:
这允许本地 PHP 函数的自动完成!
This allows the autocompletion for native PHP function!
对于使用 Symfony 框架的人,您可以在 .project 文件中添加以下行:
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>
这篇关于代码完成不适用于远程文件(使用 RSE)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!