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

Automatic project reread when generated files change

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 4.9.0
    • None

    Description

      I have several protobuf classes in my project which are generated using a QMAKE_EXTRA_COMPILER:

       

      protobuf_decl.name = protobuf

      protobuf_decl.input = PROTOS

      protobuf_decl.output = ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.pb.cpp

      protobuf_decl.commands = shell_path($$PWD/bin/protoc.bat) .\ProtocolBuffers\ \"$$PWD/bin/protoc.exe\" --cpp_out=\"$${CPP_OUT}\" $${PROTOPATHS} \"${QMAKE_FILE_BASE}${QMAKE_FILE_EXT}\"}}
      protobuf_decl.variable_out = GENERATED_SOURCES
      protobuf_decl.dependency_type = TYPE_C
      QMAKE_EXTRA_COMPILERS += protobuf_decl

       

      Problem is now that whenever I delete, regenerate or manually edit one of those generated files Qt Creator automatically rereads the project.

      Since this is a rather big project this freezes the UI for ~30 seconds.

      This did not happen in versions prior to 4.9.0

      Attachments

        Issue Links

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

          Activity

            People

              kandeler Christian Kandeler
              titus Sepp Forcher
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes