FindInFiles bug
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
- Posts: 52
- Joined: Fri Aug 22, 2003 3:19 pm
- Location: Pagosa Springs, Colorado, USA
- Contact:
FindInFiles bug
This is not really a bug. I have Textpad running on 3 machines.
On one of them, FindInFiles does not work. I put in the parameters, press the button and nothing happens.
The other two are fine.
I've reinstalled, removed, installed. No idea????
On one of them, FindInFiles does not work. I put in the parameters, press the button and nothing happens.
The other two are fine.
I've reinstalled, removed, installed. No idea????
Linda
- Have you used the "Defaults" button to make sure you're not forgetting one of the search settings?
- Have you checked that the folder to start the search in has read access? Because TextPad only tests if it exists in the first place, but getting its content is a different story.
- Have you tried various folders to start the search in? In doubt folders like C:Users (without searching subfolders).
-
- Posts: 52
- Joined: Fri Aug 22, 2003 3:19 pm
- Location: Pagosa Springs, Colorado, USA
- Contact:
yes. i am a loooooong time user of textpad besides.Have you used the "Defaults" button to make sure you're not forgetting one of the search settings?
Searching in same folders from other computers works fine so don't think this is the problem.Have you checked that the folder to start the search in has read access? Because TextPad only tests if it exists in the first place, but getting its content is a different story.
Yes.Have you tried various folders to start the search in? In doubt folders like C:Users (without searching subfolders).
Linda
-
- Posts: 52
- Joined: Fri Aug 22, 2003 3:19 pm
- Location: Pagosa Springs, Colorado, USA
- Contact:
FindInFiles error persists
I posted this quite a while ago and the FindInFiles error is persisting on my machine where it had the problem before.
I installed V9 to see if it would help. Seemed to help yesterday. This morning, it's back to not working.
Will try Ultraedit and see. I really liked Textpad though.
I installed V9 to see if it would help. Seemed to help yesterday. This morning, it's back to not working.
Will try Ultraedit and see. I really liked Textpad though.
Last edited by AmigoJack on Mon May 29, 2023 10:51 am, edited 1 time in total.
Reason: merging with existing topic
Reason: merging with existing topic
Linda
Re: FindInFiles bug
Does really "nothing" happen? You click the "Find" button and it remains enabled, instead of signaling that a work is in progress by being disabled? And the "Find" button can be clicked on in the first place? Because not entering any search term will leave it disabled, thus unclickable. And the "Close" button stays with that caption instead of switching to the caption "Cancel"? And no "Search Results" document is displayed, telling you the search has finished?
I'm surprised it really doesn't work with any starting folder and any search terms and you're not overlooking that TextPad might run with a different user account, thus having different permissions - you just wrote "3 machines", not even pointing out if they're all the same Windows version/patch level.
I'm surprised it really doesn't work with any starting folder and any search terms and you're not overlooking that TextPad might run with a different user account, thus having different permissions - you just wrote "3 machines", not even pointing out if they're all the same Windows version/patch level.
-
- Posts: 52
- Joined: Fri Aug 22, 2003 3:19 pm
- Location: Pagosa Springs, Colorado, USA
- Contact:
Re: FindInFiles bug
It "works". But gives me 0 finds even though there are some.
And it worked at one point and later in the same day failed (that is said there were 0)
I call that a bug.
And it worked at one point and later in the same day failed (that is said there were 0)
I call that a bug.
Linda
Re: FindInFiles bug
What's the encoding of the files you are searching? Is the default encoding on Configure » Preferences » Document Classes » Search Results the same as on the PCs that work?
-
- Posts: 52
- Joined: Fri Aug 22, 2003 3:19 pm
- Location: Pagosa Springs, Colorado, USA
- Contact:
Re: FindInFiles bug
default encoding: AnsiWhat's the encoding of the files you are searching? Is the default encoding on Configure » Preferences » Document Classes » Search Results the same as on the PCs that work?
And note. On this machine that doesn't produce any found items, it worked earlier after I had just installed V9. Then, it didn't.
Because of other problems, I have to return to V8. Hopefully i can reinstall it.
Linda
Re: FindInFiles bug
This is a puzzle. The code that implements Find in Files is identical in v8 and v9, and hasn't been changed since 2018. The code for the user interface dialog box only differs in the handling of the regular expression builder and to resize the box.
When a search is in progress, each file is briefly shown at the bottom of the dialog box, and the number of occurrences found and number of files searched is shown when it completes. Are they different in v8 and v9?
If you close v9 and delete or rename %APPDATA%\Helios\TextPad\9\ConfigState.xml, it will be recreated with default settings next time you start v9. Does that make any difference?
When a search is in progress, each file is briefly shown at the bottom of the dialog box, and the number of occurrences found and number of files searched is shown when it completes. Are they different in v8 and v9?
If you close v9 and delete or rename %APPDATA%\Helios\TextPad\9\ConfigState.xml, it will be recreated with default settings next time you start v9. Does that make any difference?
-
- Posts: 52
- Joined: Fri Aug 22, 2003 3:19 pm
- Location: Pagosa Springs, Colorado, USA
- Contact:
Re: FindInFiles bug
FYI, the reason I installed V9 was that it wasn't working in V8 on this machine.
However, V9 has other problems ref: https://forums.textpad.com/viewtopic.php?p=45369#p45369
So, I am reinstalling V8. Presumably with default installs as V9 appears to have deleted the V8 install.
However, V9 has other problems ref: https://forums.textpad.com/viewtopic.php?p=45369#p45369
So, I am reinstalling V8. Presumably with default installs as V9 appears to have deleted the V8 install.
Linda
Re: FindInFiles bug
Linda, I'm trying to narrow down the cause of the problem you've reported. I can't see what's happening on your PC, so have to rely on you to answer my questions. These apply equally to v8 & 9, except for the "9" in the %APPDATA% path:
- What text is in each of the edit controls on the dialog box?
- Is the problem that the Find button does nothing because it's disabled?
- Is anything reported in the Search Results window?
- Is the Search Results window visible?
- Is the Search Results window docked?
- Does it work, after closing TextPad and deleting %APPDATA%\Helios\TextPad\9\ConfigState.xml?
- Does it work, after closing TextPad and deleting %APPDATA%\Helios\TextPad\9\GUIConfig.xml?
- Is the PC that it doesn't work on a similar specification as the others?
Last edited by AmigoJack on Tue May 30, 2023 7:52 pm, edited 1 time in total.
Reason: numbered list, so answers can refer to each point exactly
Reason: numbered list, so answers can refer to each point exactly
-
- Posts: 52
- Joined: Fri Aug 22, 2003 3:19 pm
- Location: Pagosa Springs, Colorado, USA
- Contact:
Re: FindInFiles bug
I am not ignoring answering your questions. Since I uninstalled V9 and reinstalled V8, it appears to be working properly.
No idea why or why it didn't.
Wanted to make sure it lasted over a reboot.
So far, so good.
No idea why or why it didn't.
Wanted to make sure it lasted over a reboot.
So far, so good.
Linda
Re: FindInFiles bug
bbadmin, let's assume there really is no obscure detail missing for this case and it really happens only by chance. If it's unpredictable, then it's most likely random memory, as in: not fully initializing memory at some point. Maybe it fully works in a 32 bit version, but only by chance (but very often tho) in a 64 bit version. Or vice versa.
At some point the code may assume that a string (or other variable) is filled with NULL bytes, when in fact this is nowhere assured and may just happen by chance. The string for the path may be affected by that, leading to (trying to) list the content of a directory that then doesn't exist (turns out as C:\Users\lklawrie\5#_U".@. Or the file mask may be affected, effectively becoming *.htmlP8+/)~ or such. Maybe the code for both 32 bit and 64 bit is not fully correct, but for reasons yet unknown to us it still fully works for one platform, but only 99.9% on the other.
At some point the code may assume that a string (or other variable) is filled with NULL bytes, when in fact this is nowhere assured and may just happen by chance. The string for the path may be affected by that, leading to (trying to) list the content of a directory that then doesn't exist (turns out as C:\Users\lklawrie\5#_U".@. Or the file mask may be affected, effectively becoming *.htmlP8+/)~ or such. Maybe the code for both 32 bit and 64 bit is not fully correct, but for reasons yet unknown to us it still fully works for one platform, but only 99.9% on the other.
Re: FindInFiles bug
Memory faults are a possible cause and can be checked for as described here:
https://www.techrepublic.com/article/ho ... stic-tool/
However, that would more likely impact more things than just one aspect of TextPad, so I'd also do a surface scan to check for hard drive faults as described here:
https://www.avast.com/c-chkdsk-windows
If TextPad.exe is sitting on a bad sector, that would affect only it.
https://www.techrepublic.com/article/ho ... stic-tool/
However, that would more likely impact more things than just one aspect of TextPad, so I'd also do a surface scan to check for hard drive faults as described here:
https://www.avast.com/c-chkdsk-windows
If TextPad.exe is sitting on a bad sector, that would affect only it.