Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-29646

bash Language Server not working

    XMLWordPrintable

Details

    • Linux/X11

    Description

      I installed the bash language server https://github.com/bash-lsp/bash-language-server via snap on Ubuntu 22.04.

      After integrating in Creator, I get the following General Messages error:

      LanguageClient bash: The command "/snap/bin/bash-language-server start" terminated with exit code 1. (see logs in "/tmp/QtCreator-OiAZmG/lspclient.ZfPAUL.log")
      LanguageClient bash: Unexpectedly finished. 

      The log contains the following message:

       Starting server: /snap/bin/bash-language-server start
      Output:/snap/bash-language-server/69/server/node_modules/vscode-jsonrpc/lib/common/connection.js:531
                              responsePromise.reject(new messages_1.ResponseError(error.code, error.message, error.data));
                                                     ^ResponseError: The client cannot handle the method 'workspace/configuration'.
          at handleResponse (/snap/bash-language-server/69/server/node_modules/vscode-jsonrpc/lib/common/connection.js:531:48)
          at processMessageQueue (/snap/bash-language-server/69/server/node_modules/vscode-jsonrpc/lib/common/connection.js:327:17)
          at Immediate.<anonymous> (/snap/bash-language-server/69/server/node_modules/vscode-jsonrpc/lib/common/connection.js:311:13)
          at processImmediate (node:internal/timers:466:21) {
        code: -32601,
        data: undefined
      }

      It seems that "The client cannot handle the method 'workspace/configuration'" leads to permanent restarts of the language server binary so navigation is not working.

      Any hints?

      This is the configuration of the server:

      Attachments

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

        Activity

          People

            davschul David Schulz
            awe_1989 Andreas Weger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes