Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 6.0.0
-
Ubuntu 20.04
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.