Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1285

Switching branches in git forces QBS to recompile files over and over in some cases

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 1.10.1
    • 1.10.0
    • Dependency Tracking
    • None
    • d61c5f66ff507fb496aeafbae424e5f789afa26a

      I have a repo in which a certain file has switched locations between git branches, now after I switch between those branches QBS build graph ends up stuck in a state that makes it recompile the files dependant on that file each time until the build graph is deleted completely (forcing a full recompile).

      I am attaching a minimal repository that reproduces that problem.

      check out the initial commit, build repro.qbs,
      checkout the second commit, build repro.qbs,
      check out the initial commit, build repro.qbs, now build again (incremental, not full rebuild)
      FieldFactoryBase.cpp will get rebult over, and over, and over. Despite it being up to date

      Tracing the --vv of the qbs build shows that it repeatedly tries to access FieldFactoryBase.h (the file that switched locations) using its old path

        For Gerrit Dashboard: QBS-1285
        # Subject Branch Project Status CR V

            kandeler Christian Kandeler
            zekses Nikolai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes