search in selected -> 0 matches in 0 files

asked 2021-08-28 09:57:57 -0500

Chris Curvey gravatar image

updated 2021-08-30 12:55:33 -0500

I'm having a recurring problem with Wing across lots of versions (since v6) and lots of projects. (And on lots of different computers).

I go into the Project tool, right click on a directory, and choose "Search In Selected". Then I will search for a string.

But sometimes the string (which I know exists) will not be found. And if I look at the top of the search-in-files tool, it will say "Found 0 matches in 0 files".

If I go back to the Project tool and choose the parent directory of where I was searching...voila, it finds everything I was looking for.

Am I the only one having this problem?

edit retag flag offensive close merge delete

Comments

This seems to be working for me in Wing 8.0.2.1 - or at least it's setting up the Search in Files tool correctly both for a single file or a directory. Are there any failures going into Wing's error log (the ide.log file in the settings directory listed in Wing's About box)? Submitting a bug report may also help, if you include the error log where prompted.

Wingware Support gravatar image Wingware Support  ( 2021-08-30 12:58:32 -0500 )edit

Yeah, it's not consistent. 80% of the time it works fine. And when it doesn't work, changing the search location seems to "kick" it back into compliance. I can't figure out why I get this on nearly every project that I work on (different projects, different python versions, different computers), but I seem to be the only person on the planet that gets the issue.

Chris Curvey gravatar image Chris Curvey  ( 2021-08-31 12:20:17 -0500 )edit

Yes, I know this has been an issue for you for years (if I'm remembering correctly). One thought: Is this local disk or for files/dirs on a remote host? Also, when it fails it is possible a space has been typed into the search location or something like that?

Wingware Support gravatar image Wingware Support  ( 2021-09-02 09:29:30 -0500 )edit

I don't think so -- I count on the "search in location" selection to set the "Look In:" value. I guess the only other thing that is set is the "Filter", which is set to "Python File" 98% of the time, "All Source Files" about 1% and some other file type for the remaining 1%. It is generally NOT set to "All Files" as that starts giving me hits in the .git directory

Chris Curvey gravatar image Chris Curvey  ( 2021-09-05 10:44:54 -0500 )edit

OK, thanks. All Files really means all files. All Source Files will omit things in .git/etc.

Also would still be useful to know if it's locally stored files or remote files via Wing Pro's remote dev feature.

Wingware Support gravatar image Wingware Support  ( 2021-09-06 08:00:00 -0500 )edit