Peekmo / atom-autocomplete-php

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

Uncaught TypeError: Cannot read property 'init' of undefined #271

Closed jasonmccallister closed 8 years ago

jasonmccallister commented 8 years ago

Enabled the package and updated my path to composer.

Atom Version: 1.8.0 System: Mac OS X 10.11.5 Thrown From: atom-autocomplete-php package, v0.18.9

Stack Trace

Uncaught TypeError: Cannot read property 'init' of undefined

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

TypeError: Cannot read property 'init' of undefined
    at Object.module.exports.getMemberContext (/Users/jasonmccallister/.atom/packages/atom-autocomplete-php/lib/services/php-file-parser.coffee:686:32)
    at FunctionProvider.module.exports.FunctionProvider.extractAnnotationInfo (/Users/jasonmccallister/.atom/packages/atom-autocomplete-php/lib/annotation/method-provider.coffee:17:27)
    at FunctionProvider.module.exports.AbstractProvider.placeAnnotation (/Users/jasonmccallister/.atom/packages/atom-autocomplete-php/lib/annotation/abstract-provider.coffee:103:27)
    at FunctionProvider.<anonymous> (/Users/jasonmccallister/.atom/packages/atom-autocomplete-php/lib/annotation/abstract-provider.coffee:92:18)
    at FunctionProvider.module.exports.AbstractProvider.registerAnnotations (/Users/jasonmccallister/.atom/packages/atom-autocomplete-php/lib/annotation/abstract-provider.coffee:91:13)
    at FunctionProvider.module.exports.AbstractProvider.rescan (/Users/jasonmccallister/.atom/packages/atom-autocomplete-php/lib/annotation/abstract-provider.coffee:236:10)
    at /Users/jasonmccallister/.atom/packages/atom-autocomplete-php/lib/annotation/abstract-provider.coffee:24:18
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1113:27)
    at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1083:19)
    at TextEditor.module.exports.TextEditor.save (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:660:26)
    at Pane.module.exports.Pane.saveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:718:18)
    at Pane.module.exports.Pane.saveActiveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:701:19)
    at Workspace.module.exports.Workspace.saveActivePaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:684:35)
    at atom-workspace.commandRegistry.add.core:save (/Applications/Atom.app/Contents/Resources/app.asar/src/register-default-commands.js:214:32)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:580:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:388:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:98:36)
    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)

Commands

     -9:44.7.0 core:move-left (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
     -0:38.1.0 settings-view:open (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
     -0:01.8.0 core:close (div.package-detail.panels-item)
     -0:01.0 core:save (atom-text-editor.editor.vim-mode.insert-mode.is-focused)

Config

{
  "core": {
    "closeEmptyWindows": false,
    "disabledPackages": [
      "file-type-icons",
      "highlight-line",
      "language-expressionengine",
      "linter-scss-lint",
      "linter-codeclimate",
      "language-liquid",
      "autocomplete-php",
      "php-composer-completion",
      "linter-php",
      "php-cs-fixer",
      "php-twig"
    ],
    "excludeVcsIgnoredPaths": false,
    "projectHome": "~/Projects/Code"
  },
  "atom-autocomplete-php": {
    "binComposer": "/Users/jasonmccallister/.developer/composer",
    "binPhp": "/usr/local/bin/php",
    "insertNewlinesForUseStatements": true
  }
}

Installed Packages

# User
aligner, v0.22.0
aligner-php, v1.0.0
atom-autocomplete-php, v0.18.9
atom-beautify, v0.29.7
behat-atom, v0.1.2
craft-snippets, v0.6.3
docblockr, v0.7.3
emmet, v2.4.3
file-icons, v1.7.11
language-asp, v1.0.0
language-aspx, v0.4.0
language-blade, v0.25.2
language-vue, v0.12.0
linter, v1.11.4
project-manager, v2.9.7
sync-settings, v0.7.2
tabs-to-spaces, v1.0.2
vim-mode, v0.65.1

# Dev
No dev packages