简体   繁体   English

Eclipse 3.2.2内容有助于在项目中找不到类

[英]Eclipse 3.2.2 content assist not finding classes in the project

In Eclipse 3.2.2 on Linux content assist is not finding classes within the same project. 在Linux 3.2.2中,Linux内容辅助不是在同一个项目中查找类。 Upgrading above 3.2 is not an option as SWT is not available above 3.2 for Solaris. 升级3.2以上不是一种选择,因为Solaris上的SWT不可用于3.2以上。

I have seen suggestions to clean the workspace, reopen the workspace, run eclipse with the -clean command, none of which has worked. 我已经看到了清理工作区,重新打开工作区,使用-clean命令运行eclipse的建议,但没有一个工作。

Go to Java/Editor/Content Assist/Advanced in Preferences, and make sure that the correct proposal kinds are selected. 转到首选项中的Java / Editor / Content Assist / Advanced,并确保选择了正确的提案种类。 Same kind of thing happened to me when I first moved to 3.4. 当我第一次搬到3.4时,发生了同样的事情。

Are you sure that "build automatically" in the Project menu is checked? 您确定选中了“项目”菜单中的“自动构建”吗? :-) :-)

Another thing: is the Problems view, unfiltered, completely clear of compilation errors and of classpath errors? 另一件事是:问题视图,未经过滤,完全清除编译错误和类路径错误?

Thanks for your last comment it worked partially. 感谢您的最后评论,它的部分工作。 If there is any kind of errors, the content assist wont work. 如果有任何错误,内容辅助将无法正常工作。 Once fixed, it partially works. 一旦修复,它部分工作。 I say partially because, there appear to be a bug, when I do Perl EPIC inheritance ex: 我部分说因为,当我做Perl EPIC继承ex时,似乎有一个bug:

package FG::CatalogueFichier;
use FG::Catalogue;
our @ISA = qw(FG::Catalogue);
use strict;

, the inheritted subroutines are not displayed in the content assist. ,继承的子例程不会显示在内容辅助中。

I sometimes find I "lose" content assist because the "content assist computers" get disabled. 我有时会发现“丢失”内容辅助,因为“内容辅助计算机”被禁用。

This is in: 这是:

[Workspace]\.metadata\.plugins\org.eclipse.core.runtime\.settings

org.eclipse.jdt.ui.prefs

and I just have to remove this property: content_assist_disabled_computers= 我只需删除此属性:content_assist_disabled_computers =

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM