Find In Path igores one specific file

I'm sure I'm missing something obvious, but for some reason Find In Path never finds any text in one specific file in one of my main projects. It finds text in other files in that same directory, including ones with the same extension (.sql), but not in a copy of that one file in another directory.

The Mark As Plain Text option is enabled for that file, which from my understanding means that it hasn't already been marked as ignored. It doesn't match any of the patterns in Settings > File Types > Ignore Files and Folders.

The file is pretty big, 5.6 Megs (it's a generated SQL dump, used in installation). Is there a file size threshold for search, and if so, can I set it, and where?

Or am I missing something? Is this a bug?

17 comments
Comment actions Permalink

Please check IDE installation directory, bin/idea.properties, idea.max.intellisense.filesize property.

Regards,
Alexander.

0
Comment actions Permalink

Will do, but I'm confused. Are you saying that the same property that controls the max Intellisense file size controls whether searches look in the file?

0
Comment actions Permalink

Sorry. I was sure it does, but now checked it again and see that Find is really not affected.

Will try to find correct answer.

Thank you,
Alexander.

0
Comment actions Permalink

I've checked the source code. The file size limit is really hard-coded to 5 Mb, so there is no way to scan such a big file at the moment. VCS comment says, this is OOM errors prevention.

Regards,
Alexander.

0
Comment actions Permalink

Thanks very much for doing that investigation Alexander, I appreciate it, good fact to know.

It's odd though, since I can actually edit the file, and can search within it from there. I'm aware that IDEA isn't as well optimized for huge files as say UltraEdit, but it can do it.

At minimum, it seems like there should be a msg shown in the search results, listing out any files that were skipped, so you know. One of the things I always hated about Eclipse was that searches sometimes failed to find things I knew were there for no reason I could figure out. I didn't expect IDEA to do that, for whatever reason, and this actually tripped me up for quite a while recently; I was mislead about what was in the code I was working on.

Do you think I should file an enhancement rrequest?

0
Comment actions Permalink

The message is shown to me. When the search is finished a green balloon appears new the Find tool window button. It contains a clickable hyperlink-like notification about skipped files. Please check.

Thanks,
Alexander.

0
Comment actions Permalink

Hmmm, I can't find anything like that. Is this new? I'm still on IDEA 12, not 13.

When I run the search, the Find dlg itself closes, results appear in a pane at the bottom, and I don't see a green balloon there. There is a '>>' button in the lower left of that pane that opens a menu, but I don't think that balloon is in there. I say I don't THINK it's there because when I hover over it it shows, but as soon as I stop moving the mouse, the horizontal image-based menu turns into a text-based vertical one, most of which extends below the bottom of the window so I can't see it. Pretty sure there's no menu item like you're talking about in there though.

Where exactly do you see that balloon again?

0
Comment actions Permalink

I've created 2 screenshots, one after getting the first balloon and one after clicking on link. The project is dummy, blue frame is my drawing.

FindBalloon1.jpg

FindBalloon2.jpg

I suspected that you have this balloon turned off, but when tried to reproduce the case, met the fact that it is always shown (for me): http://youtrack.jetbrains.com/issue/IDEA-119341

Regards,
Alexander.

0
Comment actions Permalink

Strange happenings. I really apprecciate you looking into this, otherwise I'd just think I was crazy ot stupid or something.

First off, I didn't have the tool window buttons showing at all, so if that notification appears over the Find Results button, normally I wouldn't see it. It's not great to require those buttons to be visible to see that notification, if that's in fact how it works.

So I showed the tool window buttons  (even though they seem like a waste of space to me), and still didn't see a balloon there.

Checked Settings > Notifications (which I hadn't looked at before, at least that I remember), and FindInPath was set to Tool window ballon. Changed it to Sticky balloon, figuring that'd be the most noticable, and then I saw a msg about the number of files found, but nothing about skipped files.

I tried every other setting except No popup, and didn't see any FindInPath notifications ever again, including when I went back to Sticky balloon, which had shown the number of finds msg before.

That last bit seems like it has to do with the IDEA-119341 bug you ran into, maybe this whole thing does. In any event, I'm unable to get the skipped filees msg to show, even with the tool window buttonsI don't want displayed.

Are you testing this on IDEA 13? As I said, I'm on 12. Any idea if the skipped files msg is supposed to work in 12?

Thanks again for your help.

0
Comment actions Permalink

Checked IDEA 12.1.7. Yes, there is some change: the balloon is not green and has no hyperlink, it's yellow and shows the big file name at once. Anyway, it's shown. In general, this warning is introduced years before, and our bugtracker is full of old laments about its _annoyance_.

Also, this message (same to limit of 5 Mb) is unconditional since 2009. I expect that in your case some not yet identified setting is "sticking" and affects the behavior. Can't say anything certain right now, will try to find something tomorrow.

Regards,
Alexander.

0
Comment actions Permalink

Thanks again for looking into this.

FYI, I'm on 12.1.6. I see an update to 13 available, but not 12.1.7. Don't know if that's got anything to do with any of this or not.

Do you know if it's supposed to be the case that these notifications don't show unless tool window buttons are shown?

0
Comment actions Permalink

IDEA versions should not make much difference. In different versions the message had different appearance: a popup, yellow balloon, green balloon, but anyway, the message is 4 years old at minimum.

Also it is shown for me when tool window buttons are hidden. In this case balloon appears near IDE frame border.

I'm actually running out thoughts. The last suggestion is check exceptions in idea.log (to find it see https://intellij-support.jetbrains.com/entries/23358108).

Regards,
Alexander.

0
Comment actions Permalink

Sorry I didn't reply sooner, didn't see your msg for some reason.

I ran the same search that misses that one large sql file, it missed it as usual, got the msg that no occurances were found, but as usual, nothing about skipped files, and no files in .IntelliJIdea12\system\log were modified at that time.

Attached is the section of idea.log from this morning's startup onward. One thing I wondered about, but seems to my ignorant eye like it's probably not related, was line 24:
  50 ms execution limit failed for:com.intellij.util.Alarm$Request@1fa82eaProgress indicator active=true scheduled=0,56

Any further suggestions would be appreciated. If nothing else, at some point I'll probably upgrade to IDEA 13, we'll see if this behavior changes then, but I don't actually see any reason to think it will.

Thanks again for your help.



Attachment(s):
idea.log.zip
0
Comment actions Permalink

Do you search with whole words only option enabled?

On 1/10/2014 5:57 PM, Dave Merrill wrote:

I'm sure I'm missing something obvious, but for some reason Find In Path never finds any text in one specific file in one of my main projects. It finds text in other files in that same directory, including ones with the same extension (.sql), but not in a copy of that one file in another directory.

>

The Mark As Plain Text option is enabled for that file, which from my understanding means that it hasn't already been marked as ignored. It doesn't match any of the patterns in Settings > File Types > Ignore Files and Folders.

>

The file is pretty big, 5.6 Megs (it's a generated SQL dump, used in installation). Is there a file size threshold for search, and if so, can I set it, and where?

>

Or am I missing something? Is this a bug?

>

---
Original message URL: http://devnet.jetbrains.net/message/5507096#5507096

>

0
Comment actions Permalink

I did, but unchecking it makes no difference, either in what gets found in that big file (nothing), or in whether a msg about skipped files shows (it doesn't).

Thanks for keeping looking at this though (:-).

0
Comment actions Permalink

To avoid OOME IntelliJ IDEA skips large files when searching with
information baloon when NO whole word option is specified and skips
without information (bug) if the option is set

On 1/22/2014 9:31 PM, Dave Merrill wrote:

I did, but unchecking it makes no difference, either in what gets found in that big file (nothing), or in whether a msg about skipped files shows (it doesn't).

>

Thanks for keeping looking at this though (:).

>

---
Original message URL: http://devnet.jetbrains.net/message/5507939#5507939

>

0
Comment actions Permalink

Sorry, but that's not what I see. With Whole Words checked or unchecked, I get the balloon saying nothing was found, but nothing talking about skipped files. I'm not sure what's different, but that is in fact the case.

Also, obviously I don't know enough about IDEA internals to have a real opinion, but it seems odd that I can edit that big file in IDEA, meaning it loads and parses the whole thing, building an AST, formatting it, checking syntax, TODOs, etc, but thinks it can't search through it for a string.


Thanks again,
Dave

0

Please sign in to leave a comment.