Eclipse Kepler - PHP 代码完成不起作用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17407880/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse Kepler - PHP Code completion not working
提问by valepu
Today i've downloaded Eclipse Kepler and i've noticed that PHP code completion is not working anymore. when i type the first letters of a standard php function then press CTRL+Space, it gives me an empty list ("No Default Proposal"). This used to work with the older version (i was using Juno) and i've made no modification.
今天我下载了 Eclipse Kepler,我注意到 PHP 代码完成不再起作用了。当我输入标准 php 函数的第一个字母然后按 CTRL+Space 时,它给了我一个空列表(“无默认建议”)。这曾经适用于旧版本(我使用的是 Juno)并且我没有进行任何修改。
I've already tried removing the PHP nature and adding it again (through Right Click => Configure => Add PHP Support), but it didn't help.
我已经尝试删除 PHP 特性并再次添加它(通过右键单击 => 配置 => 添加 PHP 支持),但它没有帮助。
In both versions the only plugin i have installed is Aptana Studio 3.5.0 (nightly build) but i'm using Eclipse's editor for PHP, not Aptana's, nor i'm using Aptana's PHP nature, but Eclipse's
在这两个版本中,我安装的唯一插件是 Aptana Studio 3.5.0(每晚构建),但我使用的是 Eclipse 的 PHP 编辑器,而不是 Aptana 的,也不是我使用 Aptana 的 PHP 特性,而是 Eclipse 的
回答by nitind
Try clearing the PDT index. See http://www.eclipse.org/forums/index.php/mv/msg/489559/1065653/#msg_1065653
尝试清除 PDT 索引。见http://www.eclipse.org/forums/index.php/mv/msg/489559/1065653/#msg_1065653
回答by Baster
One more hint, because the solution mentioned above did not help for me: After additionally installing "Dynamic Languages Toolkit Core Frameworks", content assist works again.
还有一个提示,因为上面提到的解决方案对我没有帮助:另外安装“Dynamic Languages Toolkit Core Frameworks”后,内容辅助再次起作用。