WebStorm 10.0.4 : Find in path does not search the entire directory, when scope is 'Directory'

I am currently working a cordova project. When looking for a string, with 'Search In Path', the entire project directory, the search does not look in 'non project files', even though i specifically searched with 'Directory' scope.

Screen Shot 2015-06-22 at 7.09.29 PM.png

Here is a screenshot of project file structure:

Screen Shot 2015-06-22 at 7.10.18 PM.png

This is the normal structure for a 'cordova' project. The reddish directories are populated when issuing a 'cordova prepare' cli command at the terminal.

How do I convince WebStorm to look in those directories please ?  most of the 'weird' error messages are in the js created for the target, i waste a lot of time stepping out of webstorm to do a recursive directory search with a good tool.

Also , the first picture, if i return there a second time, the panel does not remember my preference for 'Directory' search. Can I configure WebStorm to remember my settings ?

-- Yves

4 comments
Comment actions Permalink

The reddish directories are excluded from project - Find in path doesn't process excluded folders.
You can uncheck 'Automatically exclude 'platforms' directory on open project' in Settings | Languages & Frameworks | JavaScript | Phonegap/Cordova to avoid excluding this folder automatically. But note that including it would make the performance worse.

Also , the first picture, if i return there a second time, the panel does not remember my preference for 'Directory' search. Can I configure WebStorm to remember my settings ?


The logic is explained at http://youtrack.jetbrains.com/issue/IDEA-87037#comment=27-441723,  and we believe it's correct (although maybe selecting the last  Directory scope instead of the default Whole Project would be nice). Ifyou would like this behavior being changed, please vote for https://youtrack.jetbrains.com/issue/IDEA-87037

0
Comment actions Permalink

Two things :

  • to qualify that as 'logic' is unadulterated  sophistry at its best. There is absolutely no logic in not pre-seeding the 'last searched scope' as the choice. Often you will search for something, and oups... forgot this search option, or a term is mispelled or who knows what. After all, YOU DO REMEMBER the search term. Why not be a sport and also remember the 'last known directory'???
  • As for the main point , why then call it a search scope of 'Directory' and not 'Indexed files descending from iNode' ????  I understand that you want to gard against over indexing : my experience with all your products is that your indexing sucks big time(performance wise). BUT , you should still permit to find a string in MY project (mine, not yours).  And my projects always end up containing files that you should not index.
    • Is there a way to exclude some part of the file system structure from indexing ?
  • At the very least, you should permit me to define a scope that includes 'non project files'. And i would search on that scope.



.02


0
Comment actions Permalink

Version 2017.1.5

I would like to adamantly second the comment made my Yves!!! 

  • At the very least, you should permit me to define a scope that includes 'non project files'. And i would search on that scope.

The frustration of a search NOT coming back with results when you KNOW it's in there SOMEWHERE, just makes you blame the tool for being faulty.

You have an awesome scope selector, and then the nasty fineprint "(Non-project files are not shown)" WHY NOT!?, WHY CAN'T I CHANGE THIS?!?!

0
Comment actions Permalink

You can search in non-project files when using Directory scope - just make sure to select the directory where these files reside

0

Please sign in to leave a comment.