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

Object reference not set to an instance of an object

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 3.2.0
    • Installer
    • None
    • Windows 11
    • Windows

    Description

      I have a Windows11 virtual machine with shared folders enabled to the location i have Qt installed.

      I have two sources compiled "normal" and static, the normal it did recognized correctly, everything is working properly, however, when i try the static version (which is on the same parent folder), i get this message:

       

      When i get the pop up it also prints on the output window:

       

      --- qmake(12768): Started Z:\C\Qt\6.6.0_static\qtbase\bin\qmake.exe
      --- qmake(12768): Querying persistent properties
      --- qmake(12768): Exit code 0 (45.26 msecs)
      An exception (KeyNotFoundException) occurred.
      Message:
         qmake error: no value for QT_INSTALL_PREFIX/src
      Stack Trace:
         at QtVsTools.Core.QMakeConf..ctor(QMakeQuery qmakeQuery)
         at QtVsTools.Core.VersionInformation..ctor(String qtDir)
      

      I tested on VMWare and VirtualBox  machines, both same error and only with the static source.

      I also tried settings the folder when i had no project open, just Visual Studio open without anything loaded, but i get the same error.

      Im using the latest version and VS22

      Attachments

        1. image-2024-09-12-01-02-47-322.png
          image-2024-09-12-01-02-47-322.png
          26 kB
        2. image-2024-09-27-21-08-10-286.png
          image-2024-09-27-21-08-10-286.png
          19 kB
        3. log.txt
          3 kB
        4. json.txt
          4.64 MB
        5. dialog.png
          dialog.png
          21 kB
        6. image-2024-10-15-14-52-44-434.png
          image-2024-10-15-14-52-44-434.png
          69 kB
        7. image-2025-01-18-02-53-13-483.png
          image-2025-01-18-02-53-13-483.png
          123 kB
        8. image-2025-01-18-03-02-58-755.png
          image-2025-01-18-03-02-58-755.png
          12 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            heimrich Karsten Heimrich
            james33 Ruan Sebastian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes