I'm trying to use the ReSharper with CMake in Visual Studio 2017.
Our codebase is pretty huge (contains a lot of and large 3rd party libs) and the ReSharper's analysis takes a long time (maybe 30-60 minutes). I kinda get this, it does a lot of complicated things, so that's fine (at least in the latest version, restarting the Visual Studio now does not cause a new complete analysis).
But now I have the following problem - every time the CMake cache is regenerated, the whole analysis starts from the very beginning again.. this disables the whole ReSharper and even control-click stops working.
Even more, the analysis happens not only when the CMake cache is cleaned and generated, it happens every single time a CMakeLists.txt is touched.
My current case - when I add a new source file, the CMake cache is regenerated (to "catch" the new file) and this causes a completely new/clean ReSharper analysis, which does not seem normal to me. This would mean hours and hours of waiting for the analysis to finish just because of added/removed single source file.
Could you, please, advice?
Thanks in advance!
P.S. Even more, while ReSharper is analyzing, I can't even comment-out a line with ReSharper's key shortcut.. it just shows "ReSharper is thinking... (Esc to cancel)". Why would the analysis beak literally everything, related to the ReSharper?
P.P.S. Sometimes, when I open VS, the ReSharper does not load its cache/symbols/etc. It says it's OK, there's a green 'check' at the bottom, but it actually does not work at all (like it's uninstalled, but it still shadows VS's equivalent features). Restarting VS (several times) 'fixes' the issue.