Enable the Use Tree Sitter Parsers configuration option
Open a new untitled file
Change language mode to JavaScript
Enter "" in the file
Run the toggle-quotes toggle command from the command palette
Atom: 1.25.0-dev-c7f97ad x64
Electron: 1.7.11
OS: Microsoft Windows 7 Professional
Thrown From: toggle-quotes package 1.1.0
Stack Trace
Uncaught TypeError: this.buffer.getLanguageMode(...).bufferRangeForScopeAtPosition is not a function
At C:\Users\lineri\Desktop\issues\atom_master\atom\out\Atom x64\resources\app\node_modules\text-buffer\lib\text-buffer.js:959
TypeError: this.buffer.getLanguageMode(...).bufferRangeForScopeAtPosition is not a function
at TextEditor.bufferRangeForScopeAtPosition (~/Desktop/issues/atom_master/atom/out/Atom x64/resources/app/src/text-editor.js:3680:48)
at toggleQuoteAtPosition (/packages/toggle-quotes/lib/toggle-quotes.js:26:22)
at /packages/toggle-quotes/lib/toggle-quotes.js:7:7
at TextBuffer.module.exports.TextBuffer.transact (~/Desktop/issues/atom_master/atom/out/Atom x64/resources/app/node_modules/text-buffer/lib/text-buffer.js:952:24)
at TextEditor.transact (~/Desktop/issues/atom_master/atom/out/Atom x64/resources/app/src/text-editor.js:1838:30)
at toggleQuotes (/packages/toggle-quotes/lib/toggle-quotes.js:4:10)
at /packages/toggle-quotes/lib/main.js:13:9)
at CommandRegistry.handleCommandEvent (~/Desktop/issues/atom_master/atom/out/Atom x64/resources/app/src/command-registry.js:384:49)
at Object.didConfirmSelection (~/Desktop/issues/atom_master/atom/out/Atom x64/resources/app/node_modules/command-palette/lib/command-palette-view.js:165:35)
at SelectListView.confirmSelection (~/Desktop/issues/atom_master/atom/out/Atom x64/resources/app/node_modules/atom-select-list/src/select-list-view.js:401:26)
at HTMLDivElement.core:confirm (~/Desktop/issues/atom_master/atom/out/Atom x64/resources/app/node_modules/atom-select-list/src/select-list-view.js:106:20)
at CommandRegistry.handleCommandEvent (~/Desktop/issues/atom_master/atom/out/Atom x64/resources/app/src/command-registry.js:384:49)
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (~/Desktop/issues/atom_master/atom/out/Atom x64/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:621:22)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (~/Desktop/issues/atom_master/atom/out/Atom x64/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:412:28)
at WindowEventHandler.handleDocumentKeyEvent (~/Desktop/issues/atom_master/atom/out/Atom x64/resources/app/src/window-event-handler.js:110:40)
/cc: @maxbrunsfeld
Use Tree Sitter Parsers
configuration option""
in the fileAtom: 1.25.0-dev-c7f97ad x64 Electron: 1.7.11 OS: Microsoft Windows 7 Professional Thrown From: toggle-quotes package 1.1.0
Stack Trace
Uncaught TypeError: this.buffer.getLanguageMode(...).bufferRangeForScopeAtPosition is not a function
Commands
Non-Core Packages