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 #54

Open ghost opened 7 years ago

ghost commented 7 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.19.5 x64 Electron: 1.6.9 OS: Unknown Windows version Thrown From: comment package 0.6.1

Stack Trace

Uncaught TypeError: editor.getSelectedBufferRange is not a function

At C:\Users\Andrea\.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.module.exports.CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.19.5/resources/app/src/command-registry.js:265:35)
    at CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.19.5/resources/app/src/command-registry.js:3:65)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (~/AppData/Local/atom/app-1.19.5/resources/app/src/command-registry.js:166:25)
    at AtomEnvironment.module.exports.AtomEnvironment.dispatchApplicationMenuCommand (~/AppData/Local/atom/app-1.19.5/resources/app/src/atom-environment.js:1338:34)
    at EventEmitter.outerCallback (~/AppData/Local/atom/app-1.19.5/resources/app/src/application-delegate.js:334:31)
    at emitThree (events.js:116:13)
    at EventEmitter.emit (events.js:194:7)

Commands

     -6:29.6.0 core:move-up (input.hidden-input)
     -6:22.3.0 core:move-left (input.hidden-input)
 25x -6:19.1.0 core:select-right (input.hidden-input)
     -4:58.1.0 timecop:view (input.hidden-input)
 24x -4:35.8.0 core:backspace (input.hidden-input)
     -4:32.6.0 core:confirm (input.hidden-input)
     -2:39.3.0 sync-settings:backup (input.hidden-input)
  3x -2:27.7.0 emmet:merge-lines (input.hidden-input)
     -2:15.2.0 core:undo (input.hidden-input)
  2x -2:05.3.0 emmet:merge-lines (input.hidden-input)
  2x -2:01.8.0 core:undo (input.hidden-input)
     -1:48.4.0 comment:toggle (input.hidden-input)
  3x -1:44 core:undo (input.hidden-input)
  2x -1:37.1.0 emmet:merge-lines (input.hidden-input)
  2x -1:32.2.0 core:undo (input.hidden-input)
     -0:08.3.0 comment:toggle (div.package-detail.panels-item)

Non-Core Packages

atom-beautify 0.30.5 
atom-bootstrap3 1.2.12 
autoprefixer 3.7.1 
browser-refresh 0.9.0 
comment 0.6.1 
css-snippets 1.1.0 
csscomb 0.3.1 
emmet 2.4.3 
html-to-css 0.2.2 
jQuery 1.2.5 
jquery-snippets 11.0.0 
minimap 4.29.6 
open-in-browsers 0.0.30 
pigments 0.40.2 
sass-autocompile 0.13.3 
sync-settings 0.8.3