javaguirre / comment

**DEPRECATED** Atom package for inserting block comments via keyboard shortcut
MIT License
13 stars 17 forks source link

Uncaught TypeError: editor.getSelectedBufferRange is not a function #63

Open ekaradag14 opened 4 years ago

ekaradag14 commented 4 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.47.0 x64 Electron: 5.0.13 OS: Mac OS X 10.15.4 Thrown From: comment package 0.6.1

Stack Trace

Uncaught TypeError: editor.getSelectedBufferRange is not a function

At /Users/erencankaradag/.atom/packages/comment/lib/comment.js:23

TypeError: editor.getSelectedBufferRange is not a function
    at HTMLElement.toggle (/packages/comment/lib/comment.js:23:34)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:349576)
    at Object.didConfirmSelection (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:694812)
    at SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:866372)
    at HTMLDivElement.core:confirm (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:861251)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:349576)
    at KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1242036)
    at KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1238170)
    at WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:284782)

Commands

     -3:00.9.0 emmet:merge-lines (input.hidden-input)
     -2:38.5.0 core:paste (input.hidden-input)
  2x -2:33.2.0 emmet:merge-lines (input.hidden-input)
     -1:57.2.0 core:backspace (input.hidden-input)
  2x -1:43.2.0 emmet:merge-lines (input.hidden-input)
  2x -1:29.1.0 core:undo (input.hidden-input)
     -1:06.5.0 core:copy (table.package-keymap-table.table.native-key-bindings.text)
     -1:05.7.0 core:paste (input.hidden-input)
  2x -1:05.0 core:backspace (input.hidden-input)
     -0:38.3.0 command-palette:toggle (div.package-detail)
     -0:33.3.0 core:confirm (input.hidden-input)
     -0:33.3.0 comment:toggle (div.package-detail)
     -0:18.4.0 core:backspace (input.hidden-input)
     -0:14.9.0 command-palette:toggle (div.package-detail)
     -0:13.4.0 core:confirm (input.hidden-input)
     -0:13.4.0 comment:toggle (div.package-detail)

Non-Core Packages

atom-beautify 0.33.4 
atom-html-preview 0.2.6 
atom-ternjs 0.20.0 
autoclose-html 0.23.0 
busy-signal 2.0.1 
comment 0.6.1 
csslint 1.2.0 
emmet 2.4.3 
intentions 1.1.5 
language-ejs 0.4.0 
linter 2.3.1 
linter-eslint 8.5.5 
linter-ui-default 1.8.1 
pigments 0.40.2 
Sublime-Style-Column-Selection 1.7.5