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

时间:2023-01-12 23:02:29

In Eclipse 3.2.2 on Linux content assist is not finding classes within the same project. Upgrading above 3.2 is not an option as SWT is not available above 3.2 for Solaris.

在Eclipse 3.2.2中,Linux内容辅助不是在同一个项目中查找类。升级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的建议,但没有一个工作。

4 个解决方案

#1


1  

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.

,继承的子例程不会显示在内容辅助中。

#2


2  

Go to Java/Editor/Content Assist/Advanced in Preferences, and make sure that the correct proposal kinds are selected. Same kind of thing happened to me when I first moved to 3.4.

转到首选项中的Java /编辑器/内容辅助/高级,并确保选择了正确的提案类型。当我第一次搬到3.4时,同样的事情发生在我身上。

#3


1  

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?

另一件事是:问题视图,未经过滤,完全清除编译错误和类路径错误?

#4


0  

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 =

#1


1  

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.

,继承的子例程不会显示在内容辅助中。

#2


2  

Go to Java/Editor/Content Assist/Advanced in Preferences, and make sure that the correct proposal kinds are selected. Same kind of thing happened to me when I first moved to 3.4.

转到首选项中的Java /编辑器/内容辅助/高级,并确保选择了正确的提案类型。当我第一次搬到3.4时,同样的事情发生在我身上。

#3


1  

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?

另一件事是:问题视图,未经过滤,完全清除编译错误和类路径错误?

#4


0  

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 =