Error seemed to be triggered on an editor pane that's editing a shell script (though that may be irrelevant)
Atom: 1.29.0 x64
Electron: 2.0.5
OS: Mac OS X 10.13.4
Thrown From: regex-railroad-diagram package 0.19.4
Stack Trace
Uncaught TypeError: Character index must be a number
At /Applications/Atom.app/Contents/Resources/app.asar/node_modules/tree-sitter/index.js:195
TypeError: Character index must be a number
at SyntaxNode.descendantForIndex (/app.asar/node_modules/tree-sitter/index.js:195:19)
at TreeSitterLanguageMode.getRangeForSyntaxNodeContainingRange (/Applications/Atom.app/Contents/Resources/app/src/tree-sitter-language-mode.js:335:41)
at TreeSitterLanguageMode.bufferRangeForScopeAtPosition (/Applications/Atom.app/Contents/Resources/app/src/tree-sitter-language-mode.js:343:23)
at TextEditor.bufferRangeForScopeAtPosition (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:3867:48)
at TextEditor.bufferRangeForScopeAtCursor (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:3863:23)
at Object.bufferRangeForScope (/packages/regex-railroad-diagram/lib/regex-railroad-diagram.coffee:87:25)
at Object.getRegexpBufferRange (/packages/regex-railroad-diagram/lib/regex-railroad-diagram.coffee:133:14)
at Object.checkForRegExp (/packages/regex-railroad-diagram/lib/regex-railroad-diagram.coffee:193:25)
at /packages/regex-railroad-diagram/lib/regex-railroad-diagram.coffee:29:73
at later (/packages/pigments/node_modules/underscore/underscore.js:724:25)
[Enter steps to reproduce:]
Atom: 1.29.0 x64 Electron: 2.0.5 OS: Mac OS X 10.13.4 Thrown From: regex-railroad-diagram package 0.19.4
Stack Trace
Uncaught TypeError: Character index must be a number
Commands
Non-Core Packages