Find Issue

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
User avatar
Drxenos
Posts: 217
Joined: Mon Jul 07, 2003 8:38 pm

Find Issue

Post by Drxenos »

I'm having an issue with Find. I think there is a bug. I'm trying to search a relatively large file (8 MB). Nothing fancy, just columns of numbers.

I'm just trying to do a search for a literal string of digits, but it always fails even though the number exists. I get two dialog boxes. One says the regular expression is too complex (I'm not even using regex), and the 2nd says the literal string isn't found. The data is sorted, so I can easily search manually and find the number.

I am using version 8.20.2.

If anyone cares, I'm trying to search IMDb's "title.episode.tsv" dataset file.

DrX

Edit: I just tried version 9.6.1 and I have the same issue.

Edit 2: sorry, I misread the status line (was looking at the # of lines). The actual file size is: 227,944,723 bytes.

Edit 3: added dialog boxes and grep
1.jpg
1.jpg (13.99 KiB) Viewed 2792 times
2.jpg
2.jpg (5.33 KiB) Viewed 2792 times
grep search:
grep -n tt3317822 title.episode.tsv
6163322:tt3317822 tt0780429 \N \N

Edit 4: Find dialog:
3.jpg
3.jpg (16.88 KiB) Viewed 2790 times
Last edited by Drxenos on Sun Dec 29, 2024 4:51 pm, edited 3 times in total.
User avatar
AmigoJack
Posts: 560
Joined: Sun Oct 30, 2016 4:28 pm
Location: グリーン ヒル ゾーン
Contact:

Re: Find Issue

Post by AmigoJack »

Drxenos wrote: Sun Dec 29, 2024 2:58 pmI get two dialog boxes.
As with every dialog window: please press Ctrl+C to copy its content to the clipboard - then you can paste the exact text here as quote. However, I guess seeing their exact texts won't matter in this case.
Drxenos wrote: Sun Dec 29, 2024 2:58 pmIMDb's "title.episode.tsv"
I downloaded https://datasets.imdbws.com/title.episode.tsv.gz which sizes unpacked 217 MiB. In there I use the "Find" dialog (F5) with the following settings:
  • Find what: 5136220
  • Conditions: Text
  • (no further checkbox ticked)
  • Direction: Down
  • (no further checkbox ticked)
...and find the next match without problems. Same with ticking "Regular expression".
  1. Did you try "Mark All" to see what happens with that?
  2. Is your text file encoding "UTF-8" and the line ending "UNIX", too? (press Alt+Enter, tab "Document") I ask because your filesize differs drastically, so you must have either a previous version or got it from elsewhere.
  3. Is it reproducible if you cut the file to 10 lines? Then you could also attach that file to your reply post here for us (or, using a larger version, still zip it into a ZIP file (not 7z)).
  4. Which particular search term did you use?
  5. Are your search settings the same as mine?
I've tried that with 8.4.2.
User avatar
bbadmin
Site Admin
Posts: 938
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: Find Issue

Post by bbadmin »

I can reproduce this so we'll look into the cause.

In the meantime, the incremental finder does match that text. Don't know why yet, as it uses the same regular expression search engine which can be configured to match literal text!
User avatar
bbadmin
Site Admin
Posts: 938
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: Find Issue

Post by bbadmin »

This is fixed in 9.7.0 and 8.21.0.
User avatar
Drxenos
Posts: 217
Joined: Mon Jul 07, 2003 8:38 pm

Re: Find Issue

Post by Drxenos »

Indeed! Thank you very much.
Post Reply