atom / autocomplete-plus

View and insert possible completions in the editor while typing
MIT License
959 stars 263 forks source link

Uncaught TypeError: this.editor.onDidChangeCursorPosition is not a function #639

Open dabing1022 opened 8 years ago

dabing1022 commented 8 years ago
Uncaught TypeError: this.editor.onDidChangeCursorPosition is not a function

/Volumes/Work/software/atom/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:139
Hide Stack Trace
TypeError: this.editor.onDidChangeCursorPosition is not a function
    at AutocompleteManager.module.exports.AutocompleteManager.updateCurrentEditor (/Volumes/Work/software/atom/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:139:48)
    at /Volumes/Work/software/atom/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:3:61
    at Emitter.module.exports.Emitter.emit (/Volumes/Work/software/atom/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:86:11)
    at /Volumes/Work/software/atom/Atom.app/Contents/Resources/app.asar/src/pane-container.js:333:27
    at Pane.module.exports.Pane.observeActiveItem (/Volumes/Work/software/atom/Atom.app/Contents/Resources/app.asar/src/pane.js:196:7)
    at /Volumes/Work/software/atom/Atom.app/Contents/Resources/app.asar/src/pane-container.js:331:42
    at Emitter.module.exports.Emitter.emit (/Volumes/Work/software/atom/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:86:11)
    at PaneContainer.module.exports.PaneContainer.setActivePane (/Volumes/Work/software/atom/Atom.app/Contents/Resources/app.asar/src/pane-container.js:196:22)
    at Pane.module.exports.Pane.activate (/Volumes/Work/software/atom/Atom.app/Contents/Resources/app.asar/src/pane.js:623:15)
    at space-pen-div.<anonymous> (/Users/Childhood/.atom/packages/plantuml-viewer/lib/plantuml-viewer-view.js:43:48)
    at space-pen-div.jQuery.event.dispatch (/Volumes/Work/software/atom/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4435:9)
    at space-pen-div.elemData.handle (/Volumes/Work/software/atom/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4121:28)
dabing1022 commented 8 years ago
qiansen1386 commented 8 years ago

When I use plantuml-viewer extension and drag the uml preview image in the right panel. This error will always be thrown. I hope this can help you guys reproduce the error. Thanks a lot for your excellent work :v:

dabing1022 commented 8 years ago

Yes, the error will be thrown when I use plantuml-viewer too.

rogerkk commented 8 years ago

In case it's of any use, I'm seeing this too.

Atom Version: 1.2.4 System: Ubuntu 15.04 Thrown From: autocomplete-plus package, v2.23.0

lee-dohm commented 8 years ago

@rogerkk You may want to update to the most recent version of Atom, v1.3.2.

rogerkk commented 8 years ago

@lee-dohm Done! Still same error, though.