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

Qt Vs Tools projects randomly stop functioning if ReSharper C++ extension is also installed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 2.4.2 (rev.14), 2.4.3
    • 2.4.2
    • General
    • None
    • VS Professional 2019
      Qt Vs Tools 2.4.2
    • Windows
    • e2396892c5494b05e2d2c76bd41423c989357acc

    Description

       

      I observed that Qt Vs Tool projects randomly stop functioning if ReSharper C++ extension if installed side-by-side with Qt Vs Tools. This issue was not present in 2.3.* versions.

       

      1) Start VS 2019

      2) Click "Create a new project"

      3) Select "Qt Console Application" template

      4) Accept all defaults and create the project

      5) Build the project.

      6) If the build succeeds, repeat from 1) until build fails, keeping existing VS instance open

      7) Build fails:

      ---- Build started: Project: QtConsoleApplication7, Configuration: Debug Win32 ------
      1>QtMsBuild: could not locate qt.targets, qt.props; project may not build correctly.
      1>main.cpp
      1>C:\Users\mikhail.kostukov\source\repos\QtConsoleApplication7\QtConsoleApplication7\main.cpp(1,10): fatal error C1083: Cannot open include file: 'QtCore/QCoreApplication': No such file or directory
      1>Done building project "QtConsoleApplication7.vcxproj" -- FAILED.
      ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
      
      

      8) Accessed the project settings. "Qt Project Settings" is missing:

      9) Unload/reload the project. Sometimes, the build will now succeed and the settings show up:

      The issue is usually replicable after opening 2-3 instance of VS 2019.

      The issue also affects existing projects - same results as above can be achieved by opening 2-3 instances of VS with Qt Vs Tools projects.

      Attachments

        Activity

          People

            mecfc Miguel Costa
            r0ll1ngst0ne Michael Kostukov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: