find in path recursively does too much


since recently (I think), find in path with options "directory" and "recursively" searches along header include paths (and maybe more). This often results in thousands of hits and a dialog asking whether I want to abort the search. Please note that I never wanted to search the header path - in fact, I cannot remember seeing a need for this in all my career. In any case - for me, this behavior is very annoying. All attempts to find a switch to turn it off have failed so far. Did I miss something? Please!


Comment actions Permalink

Hi Christian.

Could you please specify which CLion version are you using and which OS do you have?
I've tried to reproduce your case using CLion 1.1.1, but it correctly works on my environment. I've tried the following:

Create source/cpp.cpp:

#include <h.h>

class Bar{};


class Foo{};


cmake_minimum_required(VERSION 3.3)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

set(SOURCE_FILES main.cpp  header/h.h source/cpp.cpp)
add_executable(find_in_path ${SOURCE_FILES}

The result of Find in Path in the source folder: Bar was found, Foo wasn't found.

Could you please describe your case more detailed? If you could send us a sample project it would be perfect!

Comment actions Permalink

Hello Anna,

actually, right now I cannot reproduce it myself (I am at a different machine currently, but also on 1.1.1). It happened on 1.1.1, and it seems it appears out of nowhere (and maybe goes away the same). I cannot send you our project, because it is huge + proprietary. I think it makes more sense to let the developer in charge check whether this hidden option (I never saw it mentioned anywhere) to also search the header include path might get activated accidentally.



Please sign in to leave a comment.