Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
QtTAS 4.0
-
None
Description
Steps to reproduce:
1) Open some Qt Quick for Android project in Android Studio
2) Open language servers view in Android Studio
3) Open a QML file to start the LS
4) Close all QML files
5) Wait (10s)
Expected:
LS shuts down cleanly
Actual:
Shutting down QmlLanguageServerFactory timeouts after 10s and throws a trace
java.lang.Exception: Timeout error while shutdown the language server 'QmlLanguageServerFactory' at com.redhat.devtools.lsp4ij.LanguageServerWrapper.shutdownLanguageServerInstance(LanguageServerWrapper.java:635) at com.redhat.devtools.lsp4ij.LanguageServerWrapper.shutdownAll(LanguageServerWrapper.java:601) at com.redhat.devtools.lsp4ij.LanguageServerWrapper.lambda$stop$16(LanguageServerWrapper.java:569) at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(Unknown Source) at java.base/java.util.concurrent.CompletableFuture$AsyncRun.exec(Unknown Source) at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source) at java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source) at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)Caused by: java.util.concurrent.TimeoutException at java.base/java.util.concurrent.CompletableFuture.timedGet(Unknown Source) at java.base/java.util.concurrent.CompletableFuture.get(Unknown Source) at com.redhat.devtools.lsp4ij.LanguageServerWrapper.shutdownLanguageServerInstance(LanguageServerWrapper.java:629) ... 9 more
Maybe we are missing some kind of shutdown implementation?
This isn't critical because if the user doesn't have the language servers view open they don't see anything.