Peekmo / atom-autocomplete-php

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

Uncaught TypeError: Cannot read property 'params' of undefined #249

Open almeraman opened 8 years ago

almeraman commented 8 years ago

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.7.1 System: Microsoft Windows 10 Pro Thrown From: atom-autocomplete-php package, v0.18.7

Stack Trace

Uncaught TypeError: Cannot read property 'params' of undefined

At /C:/Users/david/.atom/packages/atom-autocomplete-php/lib/services/php-file-parser.coffee:551

TypeError: Cannot read property 'params' of undefined
    at Object.module.exports.getVariableType (file:///C:/Users/david/.atom/packages/atom-autocomplete-php/lib/services/php-file-parser.coffee:618:28)
    at Object.module.exports.parseElements (file:///C:/Users/david/.atom/packages/atom-autocomplete-php/lib/services/php-file-parser.coffee:715:34)
    at Object.module.exports.getCalledClass (file:///C:/Users/david/.atom/packages/atom-autocomplete-php/lib/services/php-file-parser.coffee:30:17)
    at Object.module.exports.getMemberContext (file:///C:/Users/david/.atom/packages/atom-autocomplete-php/lib/services/php-file-parser.coffee:666:28)
    at PropertyProvider.module.exports.PropertyProvider.getTooltipForWord (file:///C:/Users/david/.atom/packages/atom-autocomplete-php/lib/tooltip/property-provider.coffee:17:25)
    at PropertyProvider.module.exports.AbstractProvider.showPopoverFor (file:///C:/Users/david/.atom/packages/atom-autocomplete-php/lib/tooltip/abstract-provider.coffee:109:24)
    at HTMLSpanElement.<anonymous> (file:///C:/Users/david/.atom/packages/atom-autocomplete-php/lib/tooltip/abstract-provider.coffee:78:22)
    at HTMLDivElement.jQuery.event.dispatch (C:\Users\david\AppData\Local\atom\app-1.7.1\resources\app.asar\node_modules\jquery\dist\jquery.js:4435:9)
    at HTMLDivElement.elemData.handle (C:\Users\david\AppData\Local\atom\app-1.7.1\resources\app.asar\node_modules\jquery\dist\jquery.js:4121:28)

Commands

     -5:14.4.0 core:select-all (atom-text-editor.editor.is-focused)
     -5:13.4.0 core:paste (atom-text-editor.editor.is-focused)
     -4:56 core:save (atom-text-editor.editor.is-focused)
     -0:13.5.0 tree-view:remove-project-folder (span.name.icon.icon-repo)

Config

{
  "core": {
    "disabledPackages": [
      "symbols-view"
    ]
  }
}

Installed Packages

# User
atom-autocomplete-php, v0.18.7
atom-ctags, v4.5.2
declarations, v1.0.1
goto-definition, v1.1.15
language-blade, v0.24.1
laravel-5-snippets, v0.4.0
laravel-snippets, v2.1.0

# Dev
No dev packages