Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ide hangs waiting for language server on ctrl click actions #29

Closed
fosorio opened this issue Dec 14, 2017 · 4 comments
Closed

Ide hangs waiting for language server on ctrl click actions #29

fosorio opened this issue Dec 14, 2017 · 4 comments
Milestone

Comments

@fosorio
Copy link

fosorio commented Dec 14, 2017

-Start fresh install of sts4 beta
-Create a demo project (similar to https://spring.io/blog/2017/12/04/spring-tips-spring-tool-suite-4)
-Open DemoApplication.java
-Ctrl-click on an annotation, (or press ctrl-6)
-Eclipse hangs for around a minute, then nothing happens.

This is the main thread stacktrace during that time:
java.util.concurrent.locks.LockSupport.parkNanos line: 215 java.util.concurrent.CompletableFuture$Signaller.block line: 1695 java.util.concurrent.ForkJoinPool.managedBlock line: 3323 java.util.concurrent.CompletableFuture.timedGet line: 1775 java.util.concurrent.CompletableFuture.get line: 1915 org.eclipse.lsp4e.LanguageServerWrapper.getServerCapabilities line: 488 org.eclipse.lsp4e.LanguageServiceAccessor.getLSWrappers line: 243 org.eclipse.lsp4e.LanguageServiceAccessor.getLSPDocumentInfosFor line: 354 org.eclipse.lsp4e.operations.documentLink.DocumentLinkDetector.detectHyperlinks line: 86 org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks line: 78 org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks line: 286 org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks line: 259 org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove line: 454 org.eclipse.swt.widgets.TypedListener.handleEvent line: 213 org.eclipse.swt.widgets.EventTable.sendEvent line: 86 org.eclipse.swt.widgets.Display.sendEvent line: 4428 org.eclipse.swt.widgets.Widget.sendEvent line: 1079 org.eclipse.swt.widgets.Display.runDeferredEvents line: 4238 org.eclipse.swt.widgets.Display.readAndDispatch line: 3817

I also noted that when opening sts, a long time (several minutes) was spent on "Initialize Languague Server For DemoApplication". Stacktrace:

sun.misc.Unsafe.park line: not available [native method] java.util.concurrent.locks.LockSupport.park line: 175 java.util.concurrent.CompletableFuture$Signaller.block line: 1693 java.util.concurrent.ForkJoinPool.managedBlock line: 3323 java.util.concurrent.CompletableFuture.waitingGet line: 1729 java.util.concurrent.CompletableFuture.join line: 1934 org.eclipse.lsp4e.LanguageServerWrapper.getServer line: 445 org.eclipse.lsp4e.LanguageServiceAccessor.getLSPDocumentInfosFor line: 357 org.eclipse.lsp4e.ConnectDocumentToLanguageServerSetupParticipant$1.run line: 74 org.eclipse.core.internal.jobs.Worker.run line: 56

@martinlippert
Copy link
Member

Running on Windows? Then it is probably a duplicate of #25 . Wanna try a latest CI build to see if that works better?
http://dist.springsource.com/snapshot/STS4/nightly-distributions.html

Gonna release an updated public beta with a fix very soon.

@fosorio
Copy link
Author

fosorio commented Dec 14, 2017

Yes, I'm on Windows, probably a duplicate. Sorry, didn't see that one. I'll try the latest build.

Thanks for the quick response!

@fosorio fosorio closed this as completed Dec 14, 2017
@fosorio
Copy link
Author

fosorio commented Dec 14, 2017

Confirmed it's working with latest CI build

@martinlippert
Copy link
Member

Great to hear the CI build is working for you. And thanks for checking.

@martinlippert martinlippert added this to the 4.0.0.M7 milestone Dec 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants