You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
Not sure how to reproduce consistently but should be easy to fix.
I get this occasionally when opening a file and something is already typed in the Find input field in Atom.
Atom: 1.45.0 x64 Electron: 4.2.7 OS: Mac OS X 10.15.3 Thrown From: Atom Core
Stack Trace
Uncaught TypeError: Cannot read property 'length' of undefined
At /Applications/Atom.app/Contents/Resources/app/static/<embedded>:11
TypeError: Cannot read property 'length' of undefined
at selectionsEqual (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:748768)
at BufferSearch.search (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:748853)
at FindView.search (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:768763)
at FindView.findAndSelectResult (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:769122)
at FindView.findNext (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:768897)
at HTMLElement.find-and-replace:find-next (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:764679)
at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:349290)
at KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1254747)
at KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1250881)
at WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:284496)
[Enter steps to reproduce:]
Not sure how to reproduce consistently but should be easy to fix.
I get this occasionally when opening a file and something is already typed in the Find input field in Atom.
Atom: 1.45.0 x64
Electron: 4.2.7
OS: Mac OS X 10.15.3
Thrown From: Atom Core
Stack Trace
Uncaught TypeError: Cannot read property 'length' of undefined
Commands
Non-Core Packages
Looking at this source file:
/lib/buffer-search.js
I see this function:Seems it could be avoided like this:
The text was updated successfully, but these errors were encountered: