notepad-plus-plus / notepad-plus-plus/notepad-plus-plus
Replace All does not find everything, and then Find and Replace forget how to find things
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 29.4k
- Forks
- 5.4k
- PR merge metrics
- No merged PRs in 30d
Description
Description of the Issue
After having notepad++ open for a length of time I have yet to determine, it forgets how to completely find things.
Steps to Reproduce the Issue
- Have 10+ files open in notepad++, some new and unsaved, some existing and changes saved, some existing with some unsaved changes.
- Leave notepad++ open for a yet-to-be-determined length of time, performing normal operations on the loaded files, adding files, closing files, etc. (Sorry, but I have not sorted out just how long this needs to be.)
- At some unknown point in time, perform a Replace All within a single document that has 10+ instances of the text you are wanting to replace.
- The Replace All reports having found fewer instances than actually exist.
- A second execution of Replace All does not find the additional instances.
- Find does not find the additional instances.
- Exit from notepad++.
- Restart notepad++.
- Both Find and Replace All are now able to find the additional instances but, after a time, steps 3-6 will repeat themselves.
Expected Behavior
The Replace All in step 4 should have found all of the instances.
Actual Behavior
The Replace All in step 4 found fewer instances than actually exist.
The subsequent Replace All in step 5 did not find the additional instances.
The subsequent Find in step 6 did not find the additional instances.
Debug Information
Notepad++ v8.5.7 (64-bit)
Build time : Sep 6 2023 - 23:13:49
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line :
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 22H2
OS Build : 19045.3448
Current ANSI codepage : 1252
Plugins :
mimeTools (2.9)
NppConverter (4.5)
NppExport (0.4)
XMLTools (3.1.1.13)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start by reproducing the listed Find and Replace steps with multiple open and unsaved files, then trace the relevant search behavior. Done means Find and Replace All consistently locate all matching instances without requiring a restart.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop, search
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100