天天看點

eclipse alt+/智能提示錯誤問題

環境

作業系統:win10 

eclipse :neon 4.6.1、4.6.3

錯誤資訊

大概的意思是:

problems durin content assist

org.eclipse.recommenders.completion.rcp.javaCompletionProposalComputer.intelligent
proposal computer from the org.eclipse.recommenders.completion.rcp plug-in did not complete normally

the extension took too long to return from the computeCompletionProposals() operation      

看圖:

eclipse alt+/智能提示錯誤問題
eclipse alt+/智能提示錯誤問題

之後百度、​

​Google​

​一個小時,百度得到的答案是: 

方法一、告訴你你的​

​build path​

​引入了非​

​jar​

​包,如​

​html、txt​

​等等。 

方法二、告訴你把提示時間改為200ms或者500ms。

我都試過了,都沒有用,依然會報這種錯誤。 

在這裡說明下我的情況是,雖然報這個錯誤,但是還是會出現代碼提示的。 

隻是這樣弄得人很煩,不想把時間浪費在這上面。

​Google​

​得到的答案是這個是​

​eclipse​

​的​

​bug​

​。又有說提高eclipse的啟動記憶體。。。各種英文看的也不是很懂。後來我又下載下傳了最新版的​

​eclipse neon3​

​,但是還是有這個問題。就在放棄的時候,想想我在公司裡用從來就沒有過這個問題。我在公司裡使用的是​

​sts​

​(在公司裡也就我用這個)。于是下載下傳最新的​

​sts​

​,測試下,沒問題。好吧,隻能猜測​

​sts​

​對​

​eclipse​

​進行了優化,這個問題可能解決啦!(全稱:spring tool suite)當然後來其實我也發現​

​sts​

​也有這個問題;隻是太忙,懶得改,反正評論裡有解決方案:

——–2017年12月7日—–今天有閑情改下——謝謝—-樓下的答案——–

評論裡的解決辦法:

1、點選報錯的那個連接配接`(Window -> preferences -> java -> Editor -> Content Assist -> Advanced)`。
2、再打開的配置了面将`Default Proposal Kinds`欄中`Java Proposals (Code Recommenders)`前面的對勾去掉就可以了。
3、生效後,我的就沒有提示,然後又将剩餘的兩個`Java Proposals`、`Java Proposals(Task-Focused)`打上對勾才正常。