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

Repeating last print()/console.log() produces "SyntaxError:​ Unexpected token ILLEGAL" in QML/JS Console

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 2.7.0
    • Qt Creator 2.7.0
    • Quick / QML Support
    • None
    • Ubuntu 12.04 64-bit
      Qt 5
    • 7bba366482faf6cd34465a67f076be7f0c41db9a

    Description

      Steps to reproduce:

      1. Put a breakpoint within the Component.onCompleted handler below and start debugging.
      2. Open the QML/JS Console.
      3. Type:
        console.log(y)

        The result will be:

        400
            undefined
        
      4. Press the up key to repeat the last command. The result will be:
        console.​​log(​​y)​​
            SyntaxError:​ Unexpected token ILLEGAL
        

      The bug can be reproduced with any line that can be hit by the QML debugger.

      import QtQuick 2.0
      import QtQuick.Controls 1.0
      import QtQuick.Controls.Styles 1.0
      
      ApplicationWindow {
          x: 800
          y: 400
          width: 450
          height: 500
      
          Component.onCompleted: {
              y;
          }
      }
      

      Attachments

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

        Activity

          People

            ajana Aurindam Jana
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes