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

Strange project filters that do not really match reality with CMake projects

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 17.0.1
    • None

      Hi.

       

      in my project we generate source code files and also have a custom target "codegen" that generates some source code files in the build tree.

      However:

      1. The "codegen" target is not visible by default unless "Hide Empty Directories" is deselected. This is non-obvious as this is a target, not a directory. All user-defined targets should be visible and not mixed with directories or automatically created targets (like e.g. the autogen targets).
      2. The user-defined targets have generated files attached as source files. However they are not visible unless "Hide Generated Files" is deselected. So I can only choose if I want to also browse the generated source code files and see useless things like .rule files and autogen stuff, OR not see any of this. 
      3. When I select "Simplify Tree", I am greeted with a looooooooong list of CMakeLists.txt files. This is not a simplification, this is non-sense.
      4. I never heard about "disabled files", so this filter option is quite a mystery.

      Additionally, QtCreator immediately sees that the generated files are created (font color changes from gray to black). However, I manually have to select Build->Rescan Project to fix the errors in other files referencing those generated files.

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

            cadam Cristian Adam
            hendrik.sattler Hendrik Sattler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes