geany / geany

A fast and lightweight IDE
https://www.geany.org
GNU General Public License v2.0
3.1k stars 600 forks source link

Find in file not working in geany on ubuntu 16.04 #2435

Open raghuirs opened 7 years ago

raghuirs commented 7 years ago

grep -nHIF -- $mail = new Mail(); (in directory: /drive2/www/html/opcsupportocmod/opcsupport_2031/) /bin/grep: .idea: Is a directory /bin/grep: admin: Is a directory /bin/grep: catalog: Is a directory /bin/grep: image: Is a directory /bin/grep: system: Is a directory Search failed.

elextr commented 7 years ago

The directory messages are normal with a non-recursive grep command.

As for the search failed, not knowing what is in your files can't say if it should or not.

lpaulsen93 commented 7 years ago

@raghuirs: can this be closed?

raghuirs commented 7 years ago

no

Thanks & Regards, Raghu Nathan A

On 21 August 2017 at 23:27, LarsGit223 notifications@github.com wrote:

@raghuirs https://github.com/raghuirs: can this be closed?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/geany/geany-plugins/issues/593#issuecomment-323810348, or mute the thread https://github.com/notifications/unsubscribe-auth/ATYK6C980pmTTCTc9xSD184Uf6fSbPupks5sacUZgaJpZM4Oxojs .

elextr commented 7 years ago

@raghuirs whilst @LarsGit223 may be a little premature on the closing, you need to provide more information on what you think does not work if you expect any progress. As I said the messages you posted are normal and expected.

lpaulsen93 commented 7 years ago

@raghuirs: Hi, as @elextr wrote, do you have any more information for us to describe the problem in more detail? What is the expected result? How does the directory structure look like and in which files should the text be found? Could there be any permission problems?...

lpaulsen93 commented 6 years ago

I cannot reproduce your problem. If I put the line $mail = new Mail(); then it is found by find in files. Of course, if the whitespace is not matching, e.g. a tab instead of a single space then there is no match.

grubernd commented 4 years ago

Can confirm this. (xubuntu 16.04 / geany 1.27) - using "Find in Files" in geany returns "No matches found" while the exact same command run in the folder with bash returns all the matches as expected.

lpaulsen93 commented 4 years ago

@grubernd: could you provide an example file and search string so that we can reproduce the problem?

grubernd commented 4 years ago

@LarsGit223 .. I would, but of course now it works .... for the first time. The only thing I did different was create a new file and search for some string in it. From then on it worked with any string. But also in other instances, which it did not before. Very weird. I know that the commands were identical.

I took a look at the source code, but that style of coding is not my kind of sports, so no clue what's actually going on.

elextr commented 4 years ago

Find in files is part of Geany, not plugins, issue transferred.

b4n commented 4 years ago

The OP simply looks like the Recurse in subfolders option from the Find in Files dialog wasn't enabled. It is not enabled by default, which might be a bad idea, but activating it should fix the original issue (all those "is a directory" messages).