Peekmo / atom-autocomplete-php

Autocomplete for PHP in atom editor
MIT License
136 stars 34 forks source link

Uncaught TypeError: Cannot read property 'on' of undefined #355

Open da5atar opened 7 years ago

da5atar commented 7 years ago

[Enter steps to reproduce:]

  1. Started editing index.php file
  2. Entered h1 tag using emmet auto-complete feature

Atom: 1.18.0 x64 Electron: 1.3.15 OS: Mac OS X 10.12.6 Thrown From: atom-autocomplete-php package 0.25.6

Stack Trace

Uncaught TypeError: Cannot read property 'on' of undefined

At /Applications/Atom.app/Contents/Resources/app/src/pane.js:1095

TypeError: Cannot read property 'on' of undefined
    at Object.execute (/packages/atom-autocomplete-php/lib/services/php-proxy.coffee:78:57)
    at Object.functions (/packages/atom-autocomplete-php/lib/services/php-proxy.coffee:190:14)
    at Object.clearCache (/packages/atom-autocomplete-php/lib/services/php-proxy.coffee:156:10)
    at /packages/atom-autocomplete-php/lib/services/php-proxy.coffee:249:20
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:25:20)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:141:34)
    at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:1142:33)
    at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:1108:25)
    at TextEditor.module.exports.TextEditor.save (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:925:32)
    at Pane.module.exports.Pane.saveItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:780:24)
    at Pane.saveItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:3:65)
    at Pane.module.exports.Pane.saveActiveItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:763:25)
    at Workspace.saveActivePaneItem (/Applications/Atom.app/Contents/Resources/app/src/workspace.js:1548:46)
    at atom-workspace.core:save (/Applications/Atom.app/Contents/Resources/app/src/register-default-commands.js:236:38)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:265:35)
    at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:65
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:610:22)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:401:28)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:100:42)
    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:3:65)

Commands

     -0:48.2.0 emmet:insert-formatted-line-break-only (input.hidden-input)
     -0:47.9.0 markdown-writer:insert-new-line (input.hidden-input)
     -0:47.9.0 editor:newline (input.hidden-input)
     -0:45.8.0 markdown-writer:indent-list-line (input.hidden-input)
     -0:45.8.0 autocomplete-plus:confirm (input.hidden-input)
     -0:45.8.0 snippets:expand (atom-text-editor.editor.is-focused)
  2x -0:43.5.0 core:backspace (input.hidden-input)
     -0:26.7.0 core:save (input.hidden-input)

Non-Core Packages

atom-autocomplete-php 0.25.6 
atom-beautify 0.30.3 
atom-html-preview 0.1.22 
atom-live-server 2.1.2 
atomify 0.3.0 
autoclose-html 0.23.0 
autocomplete-haskell 0.7.2 
autocomplete-java 1.2.7 
autocomplete-json 5.5.0 
autocomplete-python 1.9.1 
autocomplete-xml 0.9.4 
busy-signal 1.4.3 
emmet 2.4.3 
es6-javascript 1.0.0 
git-control 0.9.0 
git-log 0.4.1 
git-plus 7.9.3 
git-projects 1.17.0 
highlight-selected 0.13.1 
html-outliner 0.1.1 
intentions 1.1.2 
language-markdown 0.23.0 
linter 2.2.0 
linter-bootlint 1.0.4 
linter-csslint 1.3.4 
linter-eslint 8.2.1 
linter-htmlhint 1.3.3 
linter-jshint 3.1.5 
linter-markdown 4.0.1 
linter-pylint 2.1.0 
linter-shellcheck 1.4.4 
linter-ui-default 1.6.2 
markdown-folder 0.5.0 
markdown-pdf 1.5.4 
markdown-preview-plus 2.4.9 
markdown-toc 0.4.2 
markdown-writer 2.6.5 
minimap 4.28.2 
package-sync 1.1.0 
pigments 0.39.1 
Quick-JavaScript 2.2.0 
sync-settings 0.8.2