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

Multiple issues with paths in QtCreator

    XMLWordPrintable

Details

    • All

    Description

      I usually work with multiple projects open at the same time in QtCreator. And I keep running into the same problems with wrong path searching. for example let's say I work with 2 projects that have the same file/function in both of them.

      ProjectNew
        file.cpp   
        somefile.cpp

      ProjectOld   
        file.cpp
        another.cpp

      when file.cpp has a function `void `someFunction()` in both versions. So if I work with `ProjectOld` and this project marked as `Active project` and so after clicking Ctrl+LMouse on a function definition it can suddenly open the  `someFunction()` declaration from `ProjectNew`. (another project, inactive).  This is very inconvenient and can lead to serious problems.

       

      Another issue with path mostly related to debugging:

      Let's say I have a project:

      Project
        src
          HttpServer.cpp
        include
          HttpServer.h
        examples
          HttpServer.cpp

       

      Actually, it can be a project that have some functionality implementation and a tester for that. in fact, everything is legal. a class definition is located in different namespaces etc. Sometimes, after setting a breakpoint, for example, in `src/HttpServer.cpp:55` and running the project in a QtCreator debugger I've found that breakpoint is in `examples/HttpServer.cpp:55` from what we can conclude that QtCreator pays attention only for filename and ignores its path. If a project has 2 files with the same name (but different path) it will cause to problems while debugging.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            folibis ruslan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes