英文:
Eclipse hangs when I use Content Assist
问题
我正在使用适用于企业 Java 开发者的 Eclipse IDE。
版本:2020-09(4.17.0)<br>
构建 ID:20200910-1200
我从 Eclipse Marketplace 安装了用于 Hibernate 的 JBoss 工具插件。然后,大约过了一天,突然之间内容助手停止工作了。我不会说是 JBoss 导致的问题,但我读到过从 Eclipse Marketplace 安装插件似乎会导致此类错误。因此,每当我尝试按下 Ctrl + Space 进行建议时,Eclipse 都会卡住,我不得不强制关闭它。对我来说,重新安装并不是一个解决方案,因为我正在工作中。
英文:
I am using Eclipse IDE for Enterprise Java Developers.
Version: 2020-09 (4.17.0)<br>
Build id: 20200910-1200
I installed the JBoss tools plugin from the Eclipse Marketplace which is used for Hibernate. Then, after like a day, out of the blue the content assist stopped working. I wouldn't say JBoss is the culprit but I've read that installing plugins from the Eclipse marketplace seems to cause such errors. So whenever I tried to press Ctrl + Space for suggests, Eclipse would just hang and I had to force close it. Reinstalling it wouldn't be a solution for me as it's work through.
答案1
得分: 3
这种错误通常在您从Eclipse Marketplace添加新插件时发生,所以尝试卸载插件并查看错误是否消失。对于我的情况,我不得不转到"Windows" > "首选项" > "Java" > "编辑器" > "内容辅助" > "高级"。我不确定是否对每个人都适用,但我有一些默认的建议类型没有任何图标,基本上是空白的。在这张图片中,“基本建议”和“WebSocket建议”被选中,图标是空白的。我取消了它们,现在内容辅助功能正常工作了。卸载Jboss插件后,空白图标建议消失了。因此,如果您的内容辅助在任何情况下受阻,那么请检查您的插件并尝试安全卸载它们。那应该会解决问题。
英文:
Such errors occur when you usually add a new plugin from Eclipse Marketplace, so do try uninstalling the plugin and see if the error goes off. Also...
For my case, I had to go to Windows > Preferences > Java > Editor > Content Assist > Advanced.
I am not sure if this is the case for everyone, but I had these Default Proposal Kinds that didn't have any icon and were basically blank. Here in the image, "Basic proposals" and "WebSocket Proposals" were ticked and the icons were blank. I unchecked them and them and now the Content Assist works perfectly. The blank icon proposals disappeared when I uninstalled the Jboss plugin. So if your content assist is hindered anyhow, then do check your plugins and try uninstalling them safely. That should do the trick.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论