代码完成无法使用远程文件(带RSE) [英] Code Completion not working with remote file (with RSE)

查看:131
本文介绍了代码完成无法使用远程文件(带RSE)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是:



在主机上:

Windows 7
PHP开发人员的Eclipse

版本:Helios Service Release 2



在客机上:
Linux debian挤压



我要编辑我的远程项目通过SSH在Eclipse中使用RSE。一切都没关系,我在远程系统资源管理器的角度来看:





然后我去看PHP。右键单击project-> Configure->添加PHP支持。然后按 Ctrl + Shift + Space Ctrl + Space 。没有完成(代码协助)可用。





好的,我发现这个bug(2008年)和解决方案描述(2009年): Bug 251496 。我这样做:


这是我的问题的解决方案:
我刚刚删除了PHPExplorer视图中的RemoteSystemsTempFiles项目和
比重新创建它作为PHP项目(New-> PHP项目,它必须是
再次命名RemoteSystemsTempFiles)。这对我来说有效,现在代码完成是
好​​的,希望这有帮助。




它不能解决问题。因为PHP语言库没有Core API可能...
帮助。谢谢。

解决方案

PHP项目(类,函数...)的自动完成:



我发现,将最下面的行添加到.project中确实解决了PHP项目本身的自动完成问题,但是并没有使用本机PHP函数:

 < nature> org.eclipse.wst.jsdt.core.jsNature< / nature> 
< nature> org.eclipse.php.core.PHPNature< / nature>

我发现了一个办法:



本机PHP函数的自动完成(print_r()...):



你必须去你的eclipse配置文件夹找到PHP语言文件夹:



在我的情况下: C:\Program Files\EclipseSF2\configuration\org.eclipse.osgi\bundles\276\1 \.cp\Resources\language\php5.3



然后你可以:




  • 右键单击eclipse项目的根目录

  • 然后转到构建路径

  • 链接源

  • 浏览:并链接到此文件夹...



这允许自动完成对于本机PHP函数!



Symfony框架的自动完成:



对于使用Symfony框架的人员,您可以添加到你的.project文件中如下:

 < buildCommand> 
< name> com.dubture.symfony.core.symfonyBuilder< / name>
< arguments>
< / arguments>
< / buildCommand>


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.

解决方案

Autocompletion for the PHP project (classes, functions...):

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:

Autocompletion for the native PHP functions (print_r()...):

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:

  • right click at the root of your eclipse project,
  • then go to build path
  • link source
  • browse: and link to this folder...

This allows the autocompletion for native PHP function!

Autocompletion for the Symfony framework:

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)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆