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

Provide a more helpful error message when Qt is not configured

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: 2.3.4
    • Fix Version/s: 2.5.0, 2.5.1
    • Component/s: General
    • Labels:
      None
    • Environment:
      Visual Studio 2019 (16.2.1)

      Description

      Issue

      1. Install Qt VS Tools in VS 2019 (16.2.1) for the first time.
      2. Create a new Project > Qt Console Application
      3. Fill in the project details under "Configure your new project"
      4. Click "Create"

      This produces a cryptic and unhelpful error message, "Object reference not set to an instance of an object."

      Solution

      Go to Extensions > Qt VS Tools > Qt Options, and add a valid Qt Version.

      After that, repeating the steps above will allow the project configuration to proceed normally.

      Suggestion

      Rather than the cryptic message, show a more informative message like "No Qt versions have been configured in Visual Studio yet. Go to Extensions > Qt VS Tools > Qt Options to add a version."

        Attachments

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

          Activity

            People

            Assignee:
            mecfc Miguel Costa
            Reporter:
            jksh Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes