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
Uncaught TypeError: Cannot read property 'replace' of null
At /usr/lib/atom/node_modules/text-buffer/lib/text-buffer.js:1319
TypeError: Cannot read property 'replace' of null
at TextBuffer.setTextInRange (/usr/lib/atom/node_modules/text-buffer/lib/text-buffer.js:859:27)
at newRange.transact (/usr/lib/atom/node_modules/text-buffer/lib/text-buffer.js:846:49)
at TextBuffer.transact (/usr/lib/atom/node_modules/text-buffer/lib/text-buffer.js:1316:16)
at TextBuffer.setTextInRange (/usr/lib/atom/node_modules/text-buffer/lib/text-buffer.js:846:29)
at TextEditor.setTextInBufferRange (/usr/lib/atom/src/text-editor.js:1364:29)
at getRanges.forEach.range (/packages/sorter/source/index.js:54:10)
at Array.forEach (<anonymous>)
at sort (/packages/sorter/source/index.js:53:27)
at /packages/sorter/source/index.js:37:25)
at CommandRegistry.handleCommandEvent (/usr/lib/atom/src/command-registry.js:384:43)
at CommandRegistry.dispatch (/usr/lib/atom/src/command-registry.js:273:17)
at AtomEnvironment.dispatchContextMenuCommand (/usr/lib/atom/src/atom-environment.js:1383:19)
at EventEmitter.outerCallback (/usr/lib/atom/src/application-delegate.js:305:47)
at EventEmitter.emit (events.js:182:13)
@ZeroDot1, is it possible that you didn’t select any text? There’d be nothing (probably where your null comes from) to sort then. IIRC, atom-sorter never supported sorting the entire file without selecting it first. Since I’ve switched to vscode, I probably won’t fix that. However, I’d accept a PR and publish it.
[Enter steps to reproduce:]
Atom: 1.38.2 x64
Electron: 4.1.4
OS: linux 5.1.15-arch1-1-ARCH
Thrown From: sorter package 1.3.0
Stack Trace
Uncaught TypeError: Cannot read property 'replace' of null
Commands
Non-Core Packages
The text was updated successfully, but these errors were encountered: