当前位置: 首页 > 工具软件 > JDT UI > 使用案例 >

解决org.eclipse.jdt.ui报错

谭曦
2023-12-01

不知道从哪天起,eclipse alt+/ 提示总报错,曾经找过几次解决方案也没有成功。这次下定决心来解决,反而出现更严重问题,即新建class类按finish无反应。

还好不停的折腾,终于解决了。

关于网上“代码提示报错”的解决方法有(以下方法对我无效):

报错内容:

The 'org.eclipse.jdt.ui.JavaAllCompletionProposalComputer' proposal computer from 'org.eclipse.jdt.ui' plug-in did not complete normally. The extension took too long to return from the 'computeCompletion Proposals()' operation.

To avoid this message, disable the 'org.eclipse.jdt.ui' plug-in or disable the 'Java Proposals' category on the content assist preference page.

网上方法一:build class或maven依赖导入的jar存在问题,移除提示错误的jar或非jar包

网上方法二:Content Assist里把提示时间改为200ms或者500ms。

网上方法三:

1、点击报错的那个连接(Window -> preferences -> java -> Editor -> Content Assist -> Advanced)。
2、再打开的配置了面将Default Proposal Kinds栏中Java Proposals (Code Recommenders)前面的对勾去掉就可以了。
3、生效后,我的就没有提示,然后又将剩余的两个Java Proposals、Java Proposals(Task-Focused)打上对勾才正常。


在快绝望的时候,不知道从哪里看到一句无人关注的评论,要求删除eclipse所有带netsourceforge.phhpeclipse.*.jar的插件包,照做之后奇迹般解决,代码提示的速度也是秒出。

eclipse删除文件地址: eclipse/plugins/netsourceforge.phhpeclipse.*.jar

 类似资料: