Find in Path not finding results containing quotes

I'm on PHPStorm 2016.3.2. I'm looking for session variable info in a huge codebase. But when I try to search for a specific line, it produces no results, even though I can manually find hundreds of results. Is there some kind of setting to make it see this as a valid search term?

Example:

$_SESSION['appState']['user_state']

 

I've included an image that shows the search box returns no results, even though the open file below the modal has at least one result.

0
7 comments

Please try to run File > Invalidate Caches/Restart > Invalidate and Restart and check if the issue persists after that.

I assume that the file in a background belongs to a path specified in "Directory" field and it's not excluded?

0
Avatar
Permanently deleted user

Tried that. Still finds no results. And no, the file(s) that contain the search string are not excluded from the search results.

0

Is the directory symlinked? 

0
Avatar
Permanently deleted user

Nope. I blacked out the path in the screenshot because it's a client name, but the directory is just c:\gitRepo\clientName, and there are no symlinks - it's all right in there.

0
Avatar
Permanently deleted user

Never mind. For some reason, Regular Expression is checked by default in the search options, and of course that's going to blow up when dealing with quotes and brackets. Turning that off fixed it.

0

Wow, that's strange. That's unchecked on your screenshot. But yeah, glad this is working now

0
Avatar
Permanently deleted user

That is odd. I didn't notice that it wasn't on in the screenshot. I'm not sure why wasn't working before even with it unchecked, but it seems to work now.

0

Please sign in to leave a comment.