-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multiple instances of rdm server for multiple projects #91
Comments
It could start an instance per project but that'd be tricky to implement and not something I'm terribly interested in. PRs welcome though. |
Hi there, I rediscover emacs as an ide, and give a try to cmake-ide. Is this issue related to the fact I can't open two CMakeLists.txt and compile them with the same running emacs ? or in fact it is possible but I'm wrong ... I'm not familiar with rtags and rdm, so I'm not sure I can try to find a patch but can investigate. |
Two |
Two CMakeLitsts.txt for two diffrents projects, By the way, something I do wrong was to call cmake-ide-run-cmake from CMakeLists.txt (then rdm failed to lauch ...) If I call cmake-ide-run-cmake from a subsequent source file, rdm start fines from emacs. It may be another issue in fact |
Two projects should work fine. I don't remember ever seeing an issue. |
Ok, I will check further (no time right now, two instance of emacs are fine) |
Hi, maybe I should open another issue, but to answer my question, it seems that there is only one value for cmake-ide-build-dir, and once set, it is used for all the opened file. (defun cmake-ide--get-build-dir ()
"Return the directory name to run CMake in."
(if (not (cmake-ide--build-dir-var)) I also try to have cmake-ide--get-build-dir dependent on cmake options (to have one build dir for debug, another one for release) by adding a cmake-opt custom variable, but I'm not sure I get the "idb" thing. |
The way to do use |
I'm still testing, but I will propose a pull request adding an hashtable of build-dir and cmake-ide-cmake-opts that allows to change opts during emacs session and keep build directories (to save compil time if I set back cmake opt to a previous value). I have only tested with persistent build directory yet (and a friend suggest to also make compiler dependent dir, if you want to switch back and forth between compilers). see https://github.com/dlyr/cmake-ide/tree/debug_release |
Hi,
Inside rtags.el (starting at line 259) there is a suggestion to start multiple instances of rdm to handle multiple projects (the exact mechanism is explained there). Since cmake-ide already starts an rdm instance if one isn't running, can it start a new one for each project (especially useful in conjunction with the persistant-naming option)?
The text was updated successfully, but these errors were encountered: