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

Using JS template literals breaks qmlls' auto-completion list

XMLWordPrintable

    • macOS
    • 93da6f240 (6.8), df4d48a05 (6.8), 04d0b0d27 (6.8), ba1ca79d5 (6.8), aa361ba8e (6.8), 1f728c508 (6.8)

      Code

      import QtQuick
      
      Window {
          width: 800
          height: 600
          visible: true
          title: ` `
      
      
      }
      

       

      Steps to reproduce

      1. At the end of the Window block, type in "Component." and inspect the auto-completion list
      2. Undo your changes
      3. Comment out title: ` ` (or replace the backticks ` with double-quotes ")
      4. Repeat Step #1

       

      Expected Outcomes (Step 4)
      Without backticks, we get a sensible list for Component:

       

      Actual Outcomes (Step 1)
      With backticks, we get a list that is unrelated to Component:

       

       

      Notes
      The customer reported this on macOS, and I could reproduce it on macOS. However, I can't reproduce it on Windows.

      I notice that QMLLS' auto-completion is very fast on macOS, but very slow on Windows. Could it be a race condition of some kind?

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

            sami.shalayel Sami Shalayel
            skoh-qt Sze Howe Koh
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes