notepad-plus-plus / notepad-plus-plus/notepad-plus-plus
Another Find bug
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
When I search for text (ctrl+f) in my currently open document, it fails to find text (part of word) on small snippets of text. ie. saptstfsx can't be found when it is literally part of multiple lines such as saptstfsx1:, saptstfsx:, mysaptstfsx: "somevalue", etc.
Searching up and down document with tick box. Alt tab out to another program to do the same thing and it works on the same file. Accidentally alt tab back into notepad to do a similar search and it starts working.
Anecdotally, I see a number of other requests around this search functionality which I have never had to bug anyone about before, and it looks like there might be a central theme in that its a bit broke all of a sudden?
Steps to Reproduce the Issue
- open documents in notepad and determine a substring within a string to find
- My workflow requires moving between google chrome and notepad to code, but eventually I have a requirement to find a string of text within the document that is in the middle of a line that is not space delimitated (ie search within lines like
" myabc123:" with criteria "abc123". Note that while I might have multiple documents open, I have the document with the string I'm looking for selected - after confirming it didn't find it, alt tab out and then alt tab in again and hopefully pressing "find" again will result in a hit.
Expected Behavior
it finds the value I'm searching for in the document and tells me how many hits I got for it
Actual Behavior
Makes angry windows chime sound and says no hits for obvious multiple strings in document. Can find it later without modifying the find field, just pressing the button.
Debug Information
Notepad++ v8.4.4 (64-bit)
Build time : Jul 15 2022 - 17:54:42
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line : "C:\temp\xxx\xx-xxx-xxxxxx\ansible\xxxxx\xxxx\resources\xxxxx\xxxxx.yml"
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 10 Pro (64-bit)
OS Version : 21H1
OS Build : 19043.1889
Current ANSI codepage : 1252
Plugins :
mimeTools (2.8)
NppConverter (4.4)
NppExport (0.4)
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
Start by reproducing the intermittent Ctrl+F failure in Notepad++ v8.4.4 on Windows 10, using a substring within an undelimited line and switching away and back to the application. Trace the Find button behavior and document search entry point; done means the substring is found consistently and the hit count is correct without requiring Alt+Tab.
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
- Needs clarification
- Newbie friendliness
- 25/100