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

Starting Copilot language-server.js fails with "error: required option '--stdio' not specified"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 15.0.1
    • Copilot
    • None
    • macOS

    Description

      from "General Messages" in Qt Creator i get the messages:

      LanguageClient Copilot: The command "/usr/local/bin/node /Users/jin/language-server.js" terminated with exit code 1. (see logs in ...)
      LanguageClient Copilot: Unexpectedly finished.

      Checking the content of the mentioned log (...)

      Starting server: /usr/local/bin/node /Users/jin/.local/share/nvim/plugged/copilot.vim/dist/language-server.js Output: error: required option '--stdio' not specified

      Running the command manually in terminal has the same error result. But adding the mentioned "–stdio" seems to work...

      Workaround:

      I created wrapper for node executable like this:

      #!/bin/bash
      
      exec /usr/local/bin/node "$1" --stdio "${@:2}" 

      and set the path to this wrapper  in preferences > Copilot > Node.js path.

      Now copilot works.

       

      Attachments

        Issue Links

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

          Activity

            People

              madwinter Marcus Tillmanns
              count_zer0 Jürgen Anders
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes