Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-23603

New files added to wrong project

    XMLWordPrintable

Details

    • Linux/Other display system
    • 7f1c1baf8c5c88cd4c40cffd35299bde3c915c72 (qt-creator/qt-creator/4.11)

    Description

      I added a comment to  this old issue

      before seeing that it is very old and already resolved. So, I'm creating a new one here.

       

      I got a "Add new ..." problem using the recent versions of QtCreator (can't tell exactly when it began). Last occurrence this morning with version:

      Qt Creator 4.11.0

      Based on Qt 5.14.0 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit)
      Built on Dec 10 2019 14:25:08
      From revision 017ed74400

       

      Got bug in this context:

      • multiple projects opened in QtCreator
      • right click on the currently active project
      • "Add new ..."
      • adding new class / base class QObject / Q_OBJECT
      • adding to git repo

       

      The consequences for the files .h & .cpp were:

      • files location is correct, in the active project folder
      • SOURCE += & HEADERS += added to the .pro of another project, not the active one
      • in consequence; #include of .h is OK, since the .h is in the correct folder. But the .cpp is not compiled nor linked since it is assigned to another project. This takes some time to guess (missing symbols or something during link).
      • git repo of the wrong project also altered. Must do some git checkout or git rm to rollback the changes

      Attachments

        1. AddNewBug.tar.gz
          31 kB
        2. image-2020-02-13-17-37-27-877.png
          image-2020-02-13-17-37-27-877.png
          58 kB
        3. sample.pro
          4 kB
        4. Screenshot_20200213_173458.png
          Screenshot_20200213_173458.png
          41 kB
        5. Screenshot_20200213_173515.png
          Screenshot_20200213_173515.png
          46 kB
        6. Screenshot_20200306_171005.png
          Screenshot_20200306_171005.png
          160 kB
        7. Screenshot_20200306_171145.png
          Screenshot_20200306_171145.png
          417 kB
        8. Screen Shot 2020-03-05 at 12.41.06 PM.png
          Screen Shot 2020-03-05 at 12.41.06 PM.png
          37 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            christohe_beugnet Christophe Beugnet
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes