Eclipse 4.9 STS 4非常慢并且经常卡住

时间:2018-10-29 18:40:18

标签: java spring eclipse

我在StackOverflow中看到了几个类似的问题,但是没有一个关于STS 4的具体问题,我在处理项目时遇到了一个大问题。 IDE几乎无法使用,大部分时间卡住了:在自动完成过程中,在保存过程中,在编辑一个简单的.java文件时也多次。

我遵循了许多技巧来提高Eclipse性能,但是没有人解决我的问题。

我在config.ini中添加了以下几行:

-Xverify:none
-Xms1024m
-Xmx4096m
-XX:PermSize=128m
-XX:MaxPermSize=1024m

我禁用了许多标签装饰:

enter image description here enter image description here enter image description here

我的计算机是:

CPU Intel I6700-K
RAM: 32GB
HDD: SSD M2 Samsung 970 EVO
Windows 10 professional

我试图查看当STS变得无响应时CPU是否过载,但是从此图像来看似乎不是:

enter image description here

在某个时候,我看到了Java进程中的线程计数很高(即使我不知道这是否是一个问题):

enter image description here

几分钟后,我杀死STS时出现此错误:

enter image description here

我已经尝试过:

  1. 格式化我的电脑并从头开始重新安装Windows 10专业版
  2. 从头开始安装STS 4
  3. 创建新的工作空间并导入源,而无需进行任何先前的配置

要完成此方案,请看以下Eclipse的日志:

!ENTRY org.eclipse.lsp4e 4 0 2018-10-26 16:45:50.345
!MESSAGE 
!STACK 0
java.util.concurrent.TimeoutException
    at java.util.concurrent.CompletableFuture.timedGet(Unknown Source)
    at java.util.concurrent.CompletableFuture.get(Unknown Source)
    at org.eclipse.lsp4e.operations.hover.LSBasedHover.getHoverInfo(LSBasedHover.java:168)
    at org.springframework.tooling.boot.ls.jdt.SpringBootJavaHoverProvider.getHoverInfo(SpringBootJavaHoverProvider.java:35)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:173)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:133)
    at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
    at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:169)

!ENTRY org.springframework.tooling.ls.eclipse.commons 1 0 2018-10-26 16:46:29.411
!MESSAGE changeEvent = org.eclipse.jdt.core.ElementChangedEvent[source=Java Model[*]: {CHILDREN}
    test-server[*]: {CHILDREN | CONTENT}
        src/main/java[*]: {CHILDREN}
            cloud.test.server.model.medical.exams[*]: {CHILDREN}
                [Working copy] EyeExam.java[*]: {CONTENT | FINE GRAINED | PRIMARY RESOURCE}
        ResourceDelta(/test-server/src)[*]]

!ENTRY org.springframework.tooling.ls.eclipse.commons 1 0 2018-10-26 16:46:29.693
!MESSAGE changeEvent = org.eclipse.jdt.core.ElementChangedEvent[source=Java Model[*]: {CHILDREN}
    test-server[*]: {CONTENT}
        ResourceDelta(/test-server/src)[*]
        ResourceDelta(/test-server/target)[*]]

!ENTRY org.eclipse.lsp4e 4 0 2018-10-26 16:46:38.688
!MESSAGE 
!STACK 0
java.util.concurrent.TimeoutException
    at java.util.concurrent.CompletableFuture.timedGet(Unknown Source)
    at java.util.concurrent.CompletableFuture.get(Unknown Source)
    at org.eclipse.lsp4e.operations.hover.LSBasedHover.getHoverInfo(LSBasedHover.java:168)
    at org.springframework.tooling.boot.ls.jdt.SpringBootJavaHoverProvider.getHoverInfo(SpringBootJavaHoverProvider.java:35)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:173)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:133)
    at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
    at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:169)

!ENTRY org.springframework.tooling.ls.eclipse.commons 1 0 2018-10-26 16:46:41.184
!MESSAGE changeEvent = org.eclipse.jdt.core.ElementChangedEvent[source=Java Model[*]: {CHILDREN}
    test-server[*]: {CHILDREN | CONTENT}
        src/main/java[*]: {CHILDREN}
            cloud.test.server.model.medical.exams[*]: {CHILDREN}
                [Working copy] EyeExam.java[*]: {CONTENT | FINE GRAINED | PRIMARY RESOURCE}
        ResourceDelta(/test-server/src)[*]]

!ENTRY org.springframework.tooling.ls.eclipse.commons 1 0 2018-10-26 16:46:41.791
!MESSAGE changeEvent = org.eclipse.jdt.core.ElementChangedEvent[source=Java Model[*]: {CHILDREN}
    test-server[*]: {CONTENT}
        ResourceDelta(/test-server/src)[*]
        ResourceDelta(/test-server/target)[*]]

!ENTRY org.eclipse.lsp4e 4 0 2018-10-26 16:46:46.642
!MESSAGE 
!STACK 0
java.util.concurrent.TimeoutException
    at java.util.concurrent.CompletableFuture.timedGet(Unknown Source)
    at java.util.concurrent.CompletableFuture.get(Unknown Source)
    at org.eclipse.lsp4e.operations.hover.LSBasedHover.getHoverInfo(LSBasedHover.java:168)
    at org.springframework.tooling.boot.ls.jdt.SpringBootJavaHoverProvider.getHoverInfo(SpringBootJavaHoverProvider.java:35)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:173)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:133)
    at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
    at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:169)

!ENTRY org.eclipse.lsp4e 4 0 2018-10-26 16:46:56.143
!MESSAGE 
!STACK 0
java.util.concurrent.TimeoutException
    at java.util.concurrent.CompletableFuture.timedGet(Unknown Source)
    at java.util.concurrent.CompletableFuture.get(Unknown Source)
    at org.eclipse.lsp4e.operations.hover.LSBasedHover.getHoverInfo(LSBasedHover.java:168)
    at org.springframework.tooling.boot.ls.jdt.SpringBootJavaHoverProvider.getHoverInfo(SpringBootJavaHoverProvider.java:35)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:173)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:133)
    at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
    at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:169)

!ENTRY org.eclipse.lsp4e 4 0 2018-10-26 16:47:13.019
!MESSAGE 
!STACK 0
java.util.concurrent.TimeoutException
    at java.util.concurrent.CompletableFuture.timedGet(Unknown Source)
    at java.util.concurrent.CompletableFuture.get(Unknown Source)
    at org.eclipse.lsp4e.operations.hover.LSBasedHover.getHoverInfo(LSBasedHover.java:168)
    at org.springframework.tooling.boot.ls.jdt.SpringBootJavaHoverProvider.getHoverInfo(SpringBootJavaHoverProvider.java:35)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:173)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:133)
    at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
    at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:169)

!ENTRY org.eclipse.lsp4e 4 0 2018-10-26 16:47:15.209
!MESSAGE 
!STACK 0
java.lang.InterruptedException
    at java.util.concurrent.CompletableFuture.reportGet(Unknown Source)
    at java.util.concurrent.CompletableFuture.get(Unknown Source)
    at org.eclipse.lsp4e.operations.hover.LSBasedHover.getHoverInfo(LSBasedHover.java:168)
    at org.springframework.tooling.boot.ls.jdt.SpringBootJavaHoverProvider.getHoverInfo(SpringBootJavaHoverProvider.java:35)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:173)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:133)
    at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
    at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:169)

!ENTRY org.eclipse.lsp4e 4 0 2018-10-26 16:47:31.003
!MESSAGE 
!STACK 0
java.util.concurrent.TimeoutException
    at java.util.concurrent.CompletableFuture.timedGet(Unknown Source)
    at java.util.concurrent.CompletableFuture.get(Unknown Source)
    at org.eclipse.lsp4e.operations.hover.LSBasedHover.getHoverInfo(LSBasedHover.java:168)
    at org.springframework.tooling.boot.ls.jdt.SpringBootJavaHoverProvider.getHoverInfo(SpringBootJavaHoverProvider.java:35)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:173)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:133)
    at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
    at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:169)

!ENTRY org.springframework.tooling.ls.eclipse.commons 1 0 2018-10-26 16:47:34.064
!MESSAGE changeEvent = org.eclipse.jdt.core.ElementChangedEvent[source=Java Model[*]: {CHILDREN}
    test-server[*]: {CHILDREN | CONTENT}
        src/main/java[*]: {CHILDREN}
            cloud.test.server.model.medical.exams[*]: {CHILDREN}
                [Working copy] EyeExam.java[*]: {CONTENT | FINE GRAINED | PRIMARY RESOURCE}
        ResourceDelta(/test-server/src)[*]]

!ENTRY org.springframework.tooling.ls.eclipse.commons 1 0 2018-10-26 16:47:34.355
!MESSAGE changeEvent = org.eclipse.jdt.core.ElementChangedEvent[source=Java Model[*]: {CHILDREN}
    test-server[*]: {CONTENT}
        ResourceDelta(/test-server/src)[*]
        ResourceDelta(/test-server/target)[*]]

!ENTRY org.springframework.tooling.ls.eclipse.commons 1 0 2018-10-26 16:47:34.492
!MESSAGE changeEvent = org.eclipse.jdt.core.ElementChangedEvent[source=Java Model[*]: {CHILDREN}
    test-server[*]: {CONTENT}
        ResourceDelta(/test-server/target)[*]]

!ENTRY org.springframework.tooling.ls.eclipse.commons 1 0 2018-10-26 16:48:05.543
!MESSAGE changeEvent = org.eclipse.jdt.core.ElementChangedEvent[source=Java Model[*]: {CHILDREN}
    test-server[*]: {CHILDREN | CONTENT}
        src/main/java[*]: {CHILDREN}
            cloud.test.server.model.medical.exams[*]: {CHILDREN}
                [Working copy] EyeExam.java[*]: {PRIMARY RESOURCE}
        ResourceDelta(/test-server/src)[*]]

!ENTRY org.springframework.tooling.ls.eclipse.commons 1 0 2018-10-26 16:48:05.944
!MESSAGE changeEvent = org.eclipse.jdt.core.ElementChangedEvent[source=Java Model[*]: {CHILDREN}
    test-server[*]: {CONTENT}
        ResourceDelta(/test-server/src)[*]
        ResourceDelta(/test-server/target)[*]]

!ENTRY org.springframework.tooling.ls.eclipse.commons 1 0 2018-10-26 16:48:17.486
!MESSAGE changeEvent = org.eclipse.jdt.core.ElementChangedEvent[source=Java Model[*]: {CHILDREN}
    test-server[*]: {CHILDREN | CONTENT}
        src/main/java[*]: {CHILDREN}
            cloud.test.server.model.medical.exams[*]: {CHILDREN}
                [Working copy] EyeExam.java[*]: {CONTENT | FINE GRAINED | PRIMARY RESOURCE}
        ResourceDelta(/test-server/src)[*]]

!ENTRY org.springframework.tooling.ls.eclipse.commons 1 0 2018-10-26 16:48:17.810
!MESSAGE changeEvent = org.eclipse.jdt.core.ElementChangedEvent[source=Java Model[*]: {CHILDREN}
    test-server[*]: {CONTENT}
        ResourceDelta(/test-server/src)[*]
        ResourceDelta(/test-server/target)[*]]

!ENTRY org.springframework.tooling.ls.eclipse.commons 1 0 2018-10-26 16:48:38.906
!MESSAGE changeEvent = org.eclipse.jdt.core.ElementChangedEvent[source=Java Model[*]: {CHILDREN}
    test-server[*]: {CHILDREN | CONTENT}
        src/main/java[*]: {CHILDREN}
            cloud.test.server.model.medical.exams[*]: {CHILDREN}
                [Working copy] EyeExam.java[*]: {CONTENT | FINE GRAINED | PRIMARY RESOURCE}
        ResourceDelta(/test-server/src)[*]]

!ENTRY org.springframework.tooling.ls.eclipse.commons 1 0 2018-10-26 16:48:39.237
!MESSAGE changeEvent = org.eclipse.jdt.core.ElementChangedEvent[source=Java Model[*]: {CHILDREN}
    test-server[*]: {CONTENT}
        ResourceDelta(/test-server/src)[*]
        ResourceDelta(/test-server/target)[*]]

!ENTRY org.springframework.tooling.ls.eclipse.commons 1 0 2018-10-26 16:48:44.314
!MESSAGE changeEvent = org.eclipse.jdt.core.ElementChangedEvent[source=Java Model[*]: {CHILDREN}
    test-server[*]: {CHILDREN | CONTENT}
        src/main/java[*]: {CHILDREN}
            cloud.test.server.model.medical.exams[*]: {CHILDREN}
                [Working copy] EyeExam.java[*]: {PRIMARY RESOURCE}
        ResourceDelta(/test-server/src)[*]]

!ENTRY org.springframework.tooling.ls.eclipse.commons 1 0 2018-10-26 16:48:44.640
!MESSAGE changeEvent = org.eclipse.jdt.core.ElementChangedEvent[source=Java Model[*]: {CHILDREN}
    test-server[*]: {CONTENT}
        ResourceDelta(/test-server/src)[*]
        ResourceDelta(/test-server/target)[*]]

!ENTRY org.eclipse.lsp4e 4 0 2018-10-26 16:49:03.502
!MESSAGE 
!STACK 0
java.lang.InterruptedException
    at java.util.concurrent.CompletableFuture.reportGet(Unknown Source)
    at java.util.concurrent.CompletableFuture.get(Unknown Source)
    at org.eclipse.lsp4e.operations.hover.LSBasedHover.getHoverInfo(LSBasedHover.java:168)
    at org.springframework.tooling.boot.ls.jdt.SpringBootJavaHoverProvider.getHoverInfo(SpringBootJavaHoverProvider.java:35)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:173)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:133)
    at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
    at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:169)

!ENTRY org.eclipse.lsp4e 4 0 2018-10-26 16:49:06.597
!MESSAGE 
!STACK 0
java.lang.InterruptedException
    at java.util.concurrent.CompletableFuture.reportGet(Unknown Source)
    at java.util.concurrent.CompletableFuture.get(Unknown Source)
    at org.eclipse.lsp4e.operations.hover.LSBasedHover.getHoverInfo(LSBasedHover.java:168)
    at org.springframework.tooling.boot.ls.jdt.SpringBootJavaHoverProvider.getHoverInfo(SpringBootJavaHoverProvider.java:35)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:173)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:133)
    at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
    at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:169)

!ENTRY org.eclipse.lsp4e 4 0 2018-10-26 16:49:08.697
!MESSAGE 
!STACK 0
java.lang.InterruptedException
    at java.util.concurrent.CompletableFuture.reportGet(Unknown Source)
    at java.util.concurrent.CompletableFuture.get(Unknown Source)
    at org.eclipse.lsp4e.operations.hover.LSBasedHover.getHoverInfo(LSBasedHover.java:168)
    at org.springframework.tooling.boot.ls.jdt.SpringBootJavaHoverProvider.getHoverInfo(SpringBootJavaHoverProvider.java:35)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:173)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:133)
    at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
    at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:169)

!ENTRY org.eclipse.lsp4e 4 0 2018-10-26 16:49:11.597
!MESSAGE 
!STACK 0
java.lang.InterruptedException
    at java.util.concurrent.CompletableFuture.reportGet(Unknown Source)
    at java.util.concurrent.CompletableFuture.get(Unknown Source)
    at org.eclipse.lsp4e.operations.hover.LSBasedHover.getHoverInfo(LSBasedHover.java:168)
    at org.springframework.tooling.boot.ls.jdt.SpringBootJavaHoverProvider.getHoverInfo(SpringBootJavaHoverProvider.java:35)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:173)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:133)
    at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
    at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:169)

!ENTRY org.eclipse.lsp4e 4 0 2018-10-26 16:49:14.024
!MESSAGE 
!STACK 0
java.lang.InterruptedException
    at java.util.concurrent.CompletableFuture.reportGet(Unknown Source)
    at java.util.concurrent.CompletableFuture.get(Unknown Source)
    at org.eclipse.lsp4e.operations.hover.LSBasedHover.getHoverInfo(LSBasedHover.java:168)
    at org.springframework.tooling.boot.ls.jdt.SpringBootJavaHoverProvider.getHoverInfo(SpringBootJavaHoverProvider.java:35)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:173)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:133)
    at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
    at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:169)

!ENTRY org.eclipse.lsp4e 4 0 2018-10-26 16:49:19.413
!MESSAGE 
!STACK 0
java.lang.InterruptedException
    at java.util.concurrent.CompletableFuture.reportGet(Unknown Source)
    at java.util.concurrent.CompletableFuture.get(Unknown Source)
    at org.eclipse.lsp4e.operations.hover.LSBasedHover.getHoverInfo(LSBasedHover.java:168)
    at org.springframework.tooling.boot.ls.jdt.SpringBootJavaHoverProvider.getHoverInfo(SpringBootJavaHoverProvider.java:35)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:173)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:133)
    at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
    at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:169)

!ENTRY org.eclipse.lsp4e 4 0 2018-10-26 16:49:21.825
!MESSAGE 
!STACK 0
java.lang.InterruptedException
    at java.util.concurrent.CompletableFuture.reportGet(Unknown Source)
    at java.util.concurrent.CompletableFuture.get(Unknown Source)
    at org.eclipse.lsp4e.operations.hover.LSBasedHover.getHoverInfo(LSBasedHover.java:168)
    at org.springframework.tooling.boot.ls.jdt.SpringBootJavaHoverProvider.getHoverInfo(SpringBootJavaHoverProvider.java:35)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:173)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:133)
    at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
    at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:169)

!ENTRY org.eclipse.lsp4e 4 0 2018-10-26 16:49:24.919
!MESSAGE 
!STACK 0
java.lang.InterruptedException
    at java.util.concurrent.CompletableFuture.reportGet(Unknown Source)
    at java.util.concurrent.CompletableFuture.get(Unknown Source)
    at org.eclipse.lsp4e.operations.hover.LSBasedHover.getHoverInfo(LSBasedHover.java:168)
    at org.springframework.tooling.boot.ls.jdt.SpringBootJavaHoverProvider.getHoverInfo(SpringBootJavaHoverProvider.java:35)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:173)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:133)
    at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
    at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:169)

!ENTRY org.eclipse.lsp4e 4 0 2018-10-26 16:49:27.348
!MESSAGE 
!STACK 0
java.lang.InterruptedException
    at java.util.concurrent.CompletableFuture.reportGet(Unknown Source)
    at java.util.concurrent.CompletableFuture.get(Unknown Source)
    at org.eclipse.lsp4e.operations.hover.LSBasedHover.getHoverInfo(LSBasedHover.java:168)
    at org.springframework.tooling.boot.ls.jdt.SpringBootJavaHoverProvider.getHoverInfo(SpringBootJavaHoverProvider.java:35)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:173)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:133)
    at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
    at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:169)

!ENTRY org.eclipse.lsp4e 4 0 2018-10-26 16:49:30.490
!MESSAGE 
!STACK 0
java.util.concurrent.TimeoutException
    at java.util.concurrent.CompletableFuture.timedGet(Unknown Source)
    at java.util.concurrent.CompletableFuture.get(Unknown Source)
    at org.eclipse.lsp4e.operations.hover.LSBasedHover.getHoverInfo(LSBasedHover.java:168)
    at org.springframework.tooling.boot.ls.jdt.SpringBootJavaHoverProvider.getHoverInfo(SpringBootJavaHoverProvider.java:35)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:173)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:133)
    at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
    at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:169)

!ENTRY org.eclipse.lsp4e 4 0 2018-10-26 16:49:33.414
!MESSAGE 
!STACK 0
java.lang.InterruptedException
    at java.util.concurrent.CompletableFuture.reportGet(Unknown Source)
    at java.util.concurrent.CompletableFuture.get(Unknown Source)
    at org.eclipse.lsp4e.operations.hover.LSBasedHover.getHoverInfo(LSBasedHover.java:168)
    at org.springframework.tooling.boot.ls.jdt.SpringBootJavaHoverProvider.getHoverInfo(SpringBootJavaHoverProvider.java:35)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:173)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:133)
    at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
    at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:169)

!ENTRY org.springframework.tooling.ls.eclipse.commons 1 0 2018-10-26 16:49:34.114
!MESSAGE changeEvent = org.eclipse.jdt.core.ElementChangedEvent[source=Java Model[*]: {CHILDREN}
    test-server[*]: {CHILDREN | CONTENT}
        src/main/java[*]: {CHILDREN}
            cloud.test.server.model.medical.exams[*]: {CHILDREN}
                [Working copy] EyeExam.java[*]: {CONTENT | FINE GRAINED | PRIMARY RESOURCE}
        ResourceDelta(/test-server/src)[*]]

!ENTRY org.springframework.tooling.ls.eclipse.commons 1 0 2018-10-26 16:49:34.706
!MESSAGE changeEvent = org.eclipse.jdt.core.ElementChangedEvent[source=Java Model[*]: {CHILDREN}
    test-server[*]: {CONTENT}
        ResourceDelta(/test-server/src)[*]
        ResourceDelta(/test-server/target)[*]]

!ENTRY org.eclipse.lsp4e 4 0 2018-10-26 16:49:37.749
!MESSAGE 
!STACK 0
java.lang.InterruptedException
    at java.util.concurrent.CompletableFuture.reportGet(Unknown Source)
    at java.util.concurrent.CompletableFuture.get(Unknown Source)
    at org.eclipse.lsp4e.operations.hover.LSBasedHover.getHoverInfo(LSBasedHover.java:168)
    at org.springframework.tooling.boot.ls.jdt.SpringBootJavaHoverProvider.getHoverInfo(SpringBootJavaHoverProvider.java:35)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:173)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:133)
    at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
    at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:169)

!ENTRY org.springframework.tooling.ls.eclipse.commons 1 0 2018-10-26 16:49:41.344
!MESSAGE changeEvent = org.eclipse.jdt.core.ElementChangedEvent[source=Java Model[*]: {CHILDREN}
    test-server[*]: {CHILDREN | CONTENT}
        src/main/java[*]: {CHILDREN}
            cloud.test.server.model.medical.exams[*]: {CHILDREN}
                [Working copy] EyeExam.java[*]: {CONTENT | FINE GRAINED | PRIMARY RESOURCE}
        ResourceDelta(/test-server/src)[*]]

!ENTRY org.springframework.tooling.ls.eclipse.commons 1 0 2018-10-26 16:49:41.870
!MESSAGE changeEvent = org.eclipse.jdt.core.ElementChangedEvent[source=Java Model[*]: {CHILDREN}
    test-server[*]: {CONTENT}
        ResourceDelta(/test-server/src)[*]
        ResourceDelta(/test-server/target)[*]]

!ENTRY org.eclipse.lsp4e 4 0 2018-10-26 16:49:46.767
!MESSAGE 
!STACK 0
java.util.concurrent.TimeoutException
    at java.util.concurrent.CompletableFuture.timedGet(Unknown Source)
    at java.util.concurrent.CompletableFuture.get(Unknown Source)
    at org.eclipse.lsp4e.operations.hover.LSBasedHover.getHoverInfo(LSBasedHover.java:168)
    at org.springframework.tooling.boot.ls.jdt.SpringBootJavaHoverProvider.getHoverInfo(SpringBootJavaHoverProvider.java:35)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:173)
    at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:133)
    at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
    at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:169)

!ENTRY org.eclipse.lsp4e 4 0 2018-10-26 16:49:58.720
!MESSAGE 
!STACK 0
java.lang.InterruptedException
    at java.util.concurrent.CompletableFuture.reportGet(Unknown Source)
    at java.util.concurrent.CompletableFuture.get(Unknown Source)
    at 

您能给我一些解决这个巨大问题的建议吗?

3 个答案:

答案 0 :(得分:0)

我遇到了同样的问题,您可以尝试这里:

http://download.eclipse.org/lsp4e/releases/latest/http://download.eclipse.org/lsp4j/updates/releases/

并获取最新的罐子,看看是否有帮助,它为我清除了它。您也可以签出快照版本。正如您所说的,这个问题已经在多个地方报道过了,它们已经存在了日食的缺陷。

我:

Spring Tool Suite 4

版本:4.0.1.RELEASE 建立编号:201810300749

答案 1 :(得分:0)

  

我有同样的问题。为了解决这些问题,我在位置tools.jar上添加了一个jar C:\Program Files\Java\jre1.8.0_201\lib。这个罐子对我来说不见了。现在它可以正常工作了。

答案 2 :(得分:0)

Eclipse 4.17 - New and Noteworthy”(2020-09版)中明确提到的另一种可能性

Windows 10用户:Windows 10 Defender significantly slows down Eclipse,原因是Windows 10 Defender扫描JAR文件。

问题出在reported to Microsoft here

在此之前,解决此问题的方法是将Eclipse根目录添加到Windows 10 Defender的排除列表中,详细步骤为are shared here