Details
-
Bug
-
Resolution: Won't Do
-
Not Evaluated
-
None
-
Qt Creator 4.8.2
Description
The cmake server process seems to be restarted a lot more than it should on my Qt creator set-up; I frequently get new lines like
Running "/usr/pgs/contrib/cmake -E server --pipe=/tmp/cmake-19yA98/socket --experimental" in /usr/work/msat/src/trunk/core/build-0.0.0"
in General Messages , and checks using ps etc. confirm that a new process has started every time. The message itself is pretty annoying in that it forces the messages pane to re-open if I had closed it, and I suspect that actual processing of the cmake config gets disturbed sometimes.
Closer inspection has revealed that the restart may be triggered by a switch between files in the editor. My editor area is generally split in two, with a different file visible in each part, and I often get the cmake message when I change focus from one "split" to the other. Furthermore, I'm working on different projects, and there is a chance that the problem is limited to cases where the files belong to different ones. That has been quite typical lately as I've been working in parallel on a library and an application using it, defined as parts of separate projects.
The files and projects are not necessarily related to the actual cmake being run, although that project is open too. The projects mentioned above are in fact plain makefile ones. So, to summarise, the following are loaded in Qt Creator:
- A plain Makefile project for a library
- A plain Makefile project for an application using the library
- An unrelated CMake project
The issue is that whenever I switch from a file belonging to one project to a file belonging to another in the editor, a cmake server command related to project 3 is executed. That happens even when going from a project 1 file to a project 2 file or vice versa. Which project is active seems not to matter. I haven't tested with multiple cmake projects yet.