Clion stuck forever while scanning files to index.

Answered

Hi,

I am using Clion 2019.1.2 and whenever I load my project it is stuck at "Scanning files for indexing" indefinitely. I ran CLion overnight and it is still stuck there. After reading a lot of posts with the same issue on Stackoverflow and jetbrains forums, I tried to invalidate the cache and restart. It did not resolve the issue. I tried increasing my CLion memory to 8GB but it still did not work. In CLion 2018 we had the option to mark some folders as libraries which could avoid indexing folders. But for some reason that feature was removed in 2019 version. I am using a bazel based project by the way. Any help is appreciated.

1
1 comment

Hello!

>In CLion 2018 we had the option to mark some folders as libraries which could avoid indexing folders. But for some reason that feature was removed in 2019 version.

In CLion 2019.1 you still can mark directory as Excluded: https://www.jetbrains.com/help/clion/controlling-source-library-and-exclude-directories.html#Mark_dir_as. This option wasn't removed.

 

0

Please sign in to leave a comment.