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

    • Bug
    • Resolution: Done
    • P4: Low
    • 2.5.0, 2.5.1
    • 2.3.4
    • General
    • None
    • Visual Studio 2019 (16.2.1)
    • 7e5afa9719b63b5b8bce7a51f55932b566e4175a

    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

            mecfc Miguel Costa
            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