Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-114679

qmlls cannot handle "~" (tilde) on unix like machines

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • 6.9
    • dev
    • None
    • Linux/Other display system, macOS

    Description

      The "~" is a common symbol on unix-like machines to reference the home directory.

      When passing in such a path to the qmlls, we get errors from the LSP

      E.g.

      /usr/bin/qt6/bin/qmlls -l ~/Temp/qmlls.log
      
      // Will produce errors like this:
      [START][2023-06-19 11:36:37] LSP logging initiated
      [ERROR][2023-06-19 11:36:37] .../vim/lsp/rpc.lua:734    "rpc"    "/usr/lib/qt6/bin/qmlls"    "stderr"    'QIODevice::write (QFile, "~/Temp/qmlls.log"): device not open\nQIODevice::write (QFile, "~/Temp/qmlls.log"): device not open\nQIODevice::write (QFile, "~/Temp/qmlls.log"): device not open\nQIODevice::write (QFile, "~/Temp/qmlls.log"): device not open\n'

       

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            dennisoberst Dennis Oberst
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes