Uploaded image for project: 'Qt Visual Studio Tools'
  1. Qt Visual Studio Tools
  2. QTVSADDINBUG-498

Error in qt5.natvis: “identifier "$T1" is undefined”

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 2.8.1
    • 2.1.2, 2.2.2
    • General
    • None
    • VS2017, Qt5.9; VS2015, Qt 5.10.1 x64.
    • a29a31e946c627a12de4c4f8249b2a4aea174e7b (qt-labs/vstools/dev)

    Description

      Repro:

      1. Have Visual Studio 2015 with Qt Visual Studio Tools 2.2.2 set up to use Qt 5.10.1 x64 (in case it matters).
      2. Using the Add New Project wizard, add a new Qt console app project with all defaults (maybe except the project name).
      3. Replace the source code with the following: 
        #include <QStringList>
        void main() { QStringList l; }
        
      4. Build the x64 Debug configuration.
      5. Set a breakpoint in the main() line, run the app in the debugger.

      Expected: when the breakpoint is hit, there are no natvis errors in the Output pane.

      Actual: when the breakpoint is hit, there is the following error in the Output pane:

      Natvis: C:\USERS\MY_ACCOUNT\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\14.0\EXTENSIONS\4KF5SRFQ.U2A\Visualizer\qt5.natvis(399,28): Error: identifier "$T1" is undefined
          Error while evaluating '*reinterpret_cast<$T1*>((sizeof($T1) > sizeof(void*))                     ? reinterpret_cast<Node*>(d->array + d->begin + $i)->v                     : reinterpret_cast<$T1*>(d->array + d->begin + $i))' in the context of type 'ConApp.exe!QStringList'.
      

      Attachments

        Issue Links

          For Gerrit Dashboard: QTVSADDINBUG-498
          # Subject Branch Project Status CR V

          Activity

            People

              heimrich Karsten Heimrich
              tmac tmac
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes