英文:
Eclipse not responding on startup
问题
由于某种原因,今晚我无法再启动Eclipse了。我不知道从这些日志中该取什么信息,因为我对Eclipse并不是很熟悉。任何帮助将不胜感激!以下是Eclipse的.log
文件中在启动时冻结并显示“未响应”时的日志:
!ENTRY org.eclipse.egit.ui 2 0 2020-10-07 01:44:16.258
!MESSAGE 警告:环境变量HOME未设置。以下目录将用于存储Git用户全局配置并定义存储存储库的默认位置:'C:\Users\Calgary'。如果不正确,请设置HOME环境变量并重新启动Eclipse。否则,Git for Windows和EGit可能会因为它们看到不同的配置选项而表现不同。此警告可以在“团队”>“Git”>“确认和警告”首选项页面上关闭。
!ENTRY org.eclipse.lsp4e 4 0 2020-10-07 01:52:01.676
!MESSAGE
!STACK 0
java.util.concurrent.TimeoutException
at java.base/java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1957)
at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2092)
at org.eclipse.lsp4e.operations.declaration.OpenDeclarationHyperlinkDetector.detectHyperlinks(OpenDeclarationHyperlinkDetector.java:90)
at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:81)
at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)
...
!SESSION 2020-10-08 01:41:14.347 -----------------------------------------------
eclipse.buildId=4.15.0.I20200305-0155
java.version=13.0.2
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=fi_FI
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product
请注意,我已按照您的要求,只返回了翻译好的部分,没有其他内容。
英文:
For some reason this evening I can't launch my Eclipse anymore? I don't know what to take from these logs, as I am not that experienced with Eclipse. Any help will be highly appreciated! The log from Eclipses .log file when it freezes on startup to "not responding":
I don't know what to take from these logs, as I am not that experienced with Eclipse
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Calgary'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!ENTRY org.eclipse.lsp4e 4 0 2020-10-07 01:52:01.676
!MESSAGE
!STACK 0
java.util.concurrent.TimeoutException
at java.base/java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1957)
at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2092)
at org.eclipse.lsp4e.operations.declaration.OpenDeclarationHyperlinkDetector.detectHyperlinks(OpenDeclarationHyperlinkDetector.java:90)
at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:81)
at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)
at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:262)
at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:457)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:216)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4105)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1037)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3922)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3524)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1160)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1049)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:658)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:557)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:154)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:150)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
at org.eclipse.equinox.launcher.Main.run(Main.java:1447)
!SESSION 2020-10-08 01:41:14.347 -----------------------------------------------
eclipse.buildId=4.15.0.I20200305-0155
java.version=13.0.2
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=fi_FI
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product```
</details>
# 答案1
**得分**: 1
这看起来与影响 LSP4E 的问题 [545447][1] 类似,该项目包含了将任何符合 [Language Server Protocol 规范][3] 的语言服务器或符合 [Debug Adapter Protocol][4] 的调试适配器集成到 Eclipse IDE 中所需的代码。
据说在 lsp4e 0.10.0 中已修复。
尝试下载(用于测试)[最新版本的 Eclipse][5],看看问题是否仍然存在。
(从您当前的 4.15.0.I20200305-0155 版本升级到当前的 Eclipse 4.17 2020-09 版本)
还要检查您的 Eclipse 工作区涉及的路径中是否有任何空格。
[1]: https://bugs.eclipse.org/bugs/show_bug.cgi?id=545447
[2]: https://wiki.eclipse.org/LSP4E
[3]: https://github.com/Microsoft/language-server-protocol
[4]: https://github.com/Microsoft/vscode-debugadapter-node
[5]: https://www.eclipse.org/downloads/
<details>
<summary>英文:</summary>
That looks similar to [issue 545447][1] affecting [LSP4E][2], the project includes the necessary code to integrate any language server (conforming to the [Language Server Protocol specification][3]) or Debug Adapter (conforming to the [Debug Adapter Protocol][4]) in the Eclipse IDE.
It is supposed to be fixed with lsp4e 0.10.0.
Try and see if the issue persists when downloading (for testing) the [latest Eclipse][5].
(Upgrade from your current 4.15.0.I20200305-0155 to a current Eclipse 4.17 2020-09)
Check also [if there is any space][6] in the paths involved by your Eclipse workspace.
[1]: https://bugs.eclipse.org/bugs/show_bug.cgi?id=545447
[2]: https://wiki.eclipse.org/LSP4E
[3]: https://github.com/Microsoft/language-server-protocol
[4]: https://github.com/Microsoft/vscode-debugadapter-node
[5]: https://www.eclipse.org/downloads/
[6]: https://stackoverflow.com/a/53597575/6309
</details>
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论