-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Find All..." does not work right with long lines #12023
Comments
Good bug report. Additional suggestion for easier reproduction, because there are so many matches in the sample text file, add this to step 6:
This is a new (bad) effect from the 8.4.3+ new feature where multiple matches per line are shown in a single line of Search results output. BUT...turning the new feature off so that there is one line of output for each match still results in the same problem with F4 (double-clicking a line in Search results works correctly for all matches, though). |
This is interesting as But, I found a case where F4 moves the caret in the source file to a hit in a column much greater than 2048 -- but in the Search results the hit isn't shown because the Search |
Yes, it behaves variously and it's difficult to describe all possible ways. Switch OFF "show only one entry per found line" BTW, with 2-byte UTF-8 alphabets things go bad from ~1024 characters. I'd like to say, that Find All.. behaviour with long lines is unpredictable and unreliable. |
@AndiKiissel I suppose some of the problems you were trying to get attention on in #11808 are now coming back to haunt the development team as regressions in released software. :-(
This makes some sense because the history of Notepad++ and Scintilla came from the times of "1 character = 1 byte", and the data buffers that they use are defined in terms of bytes. So if you had a long line made up of exclusively 4-byte UTF-8 characters, things would "go bad" at around 512 characters. :-( |
Unfortunately, "Find..." bugs are insidious because the user may not know that something was not found and/or seen. And this can be costly - in time, in reputation, in money. :-( |
The main issue is a good catch. 👍 Could you please look into that? Regarding F4: #11808 (comment) |
@Yaron10 said:
It seems that ALL of the problems are related to working with F4 or Shift+F4. |
I don't understand it. What do you think about displaying the entire line without truncating? |
My interpretation was that even if the matching text isn't shown in Search results (because it is in the Turning off the new single line output feature allows you to double-click a line in Search results and jump to the correct match, but even it isn't working correctly any longer -- it jumps to the match, but match-highlighting in Search results is wacky. Example, using OP's original file and STR (except turn off the new single-line output feature): Start at the bottom of the Search results output and double-click each line in turn, moving up one line each time. Note that the correct match in the source is jumped to, but the selected text in Search results is NOT the hit text for that line, but is usually TWO full lines. So...in summary...MANY PROBLEMS here, not sure how to nail them all down. :-( |
I'm not sure of the technical limitations here, but I presume the I know that the limit was originally 1024 but was increased to 2048 in the last few years.
I certainly like the idea of it. |
@AndiKiissel did mention in his first post here both "not displayed in long line" and "F4/Shift+F4".
That's another good catch. 👍
If @ArkadiuszMichalski could tag them all
Thank you. Let's wait for Don. |
@Yaron10 said:
Done, in issue 12024. |
👍 |
Is the long-lines issue complex to fix? Would you label it as "won't fix"? Thank you. |
Obviously the best solution would be fixing the issue(s). At least those which are not "enhancement". Thanks again for your work and for looking into it. |
F4 still won't advance beyond column 2050, see old comment #12023 (comment) |
Yes, Shift-F4 works as it should, F4 doesn't. |
Note that v8.6.1RC1 fixes my STR here: #12023 (comment) using the file I provided at that link. But... I noticed that while Shift+F4 will "wrap around" in the search-results, F4 will not "wrap" (i.e., once the final match is located, pressing F4 has no effect). It should wrap. |
Also in v8.6.1RC1, with the original STR of this issue, after F4 refuses to continue finding matches (do the search, then hold down F4 until things stop changing), the UI is left in this strange way: The second |
@AndiKiissel & @alankilborn |
Yes, the F4 bug with long lines is now fixed. Thank you! |
@donho said:
If you're going to ask people to check something, suggest you actually give them a reasonable amount of time to do it in. Bug notification time to fix time: 6 days (29 Dec - 3 Jan) I had intention to do a good job of checking it, but I hadn't had time to yet. Overall, however: |
Oups, sorry - I'm currently in holidays (out of France), so the time for working on the project (with the clear mind) is much less. Just tried to get any rare chance to make progress to get release done. BTW, happy new year! |
Indeed, yes, let's clear out the old and bring in the new! :-) Also, on the earlier point, everyone should keep in mind that if you expect a quick response on something, you might miss someone by virtue of their sleep cycle times (or just end-of-day AFK times) in world-wide development. This is obvious, but I sometimes forget. :-( Example: donho(Paris) <-> alankilborn(Detroit) == 6 hour time delta (not terrible, could be worse for some others) Thankfully we don't often need really fast reaction times to things. |
@alankilborn |
Description of the Issue
"Find All..." does not show all findings in long lines
Steps to Reproduce the Issue
Expected Behavior
All "a"-s found, unindependent of line length
Actual Behavior
"a"-s not found after Col:~2048
Before v8.4.3 all "a"-s could be found with F4 / Shift-F4, but not now.
Debug Information
Notepad++ v8.4.4 (64-bit)
Build time : Jul 15 2022 - 17:54:42
Path : F:\NppTest64\notepad++.exe
Command Line : F:\NppTest64_long_line_test.txt
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
OS Name : Windows 10 Pro (64-bit)
OS Version : 21H2
OS Build : 19044.1889
Current ANSI codepage : 1257
Plugins : none
The text was updated successfully, but these errors were encountered: