Uploaded image for project: 'Qt Tools for Android'
  1. Qt Tools for Android
  2. QTTA-315

Language Server implementation doesn't shutdown cleanly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • QtTAS 4.0
    • None
    • macOS, Windows

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            nikunj Nikunj Arora
            olvuolte Olli Vuolteenaho
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes