niosus / EasyClangComplete

:boom: Robust C/C++ code completion for Sublime Text 3/4
https://niosus.github.io/EasyClangComplete/
MIT License
575 stars 79 forks source link

EasyClangComplete's "cmake-builds"/Database Files/Directory Setting? #736

Open MattMicheletti opened 3 years ago

MattMicheletti commented 3 years ago

System info:

What happens:

EasyClangComplete works fine as far as I can see (I have CMake projects so "it just works"). I want to know if and what setting is used to control where EasyClangComplete generates its files (specifically its cmake-builds directory). Right now it is putting its own directory in /private/var/folders/.../.../T/EasyClangComplete/ which is probably fine for out-of-the-box usage but I would like to control where any and all files relating my projects are stored (to keep an eye on them and in case I need to do anything by hand, manually for whatever reason).

Does this exist as a setting in EasyClangComplete, if not could it be added? If not add'able then where in the source code is this handled, generally and/or specifically (I would at least like to attempt to manually set it to another location). I really love the plugin, it's a definite plus to the Sublime Text environment, but I like to maintain control over where any and all project files reside no matter if they are plugin related or not.

Please and thanks.

niosus commented 3 years ago

Hey @MattMicheletti for now this is not really supported. ECC would always generate a new build in a temporary folder, wherever that is on any system. I've been thinking of allowing it to reuse the actual build folder but never ended up doing it. You can look into this line if you want to poke around it a bit: https://github.com/niosus/EasyClangComplete/blob/master/plugin/flags_sources/cmake_file.py#L124

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Just comment here to prevent this from happening.