Peekmo / atom-autocomplete-php

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

Uncaught TypeError: Cannot read property 'indexOf' of undefined #209

Closed ValentinMerlet closed 8 years ago

ValentinMerlet commented 8 years ago

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.2.4 System: Mac OS X 10.10.5 Thrown From: atom-autocomplete-php package, v0.18.1

Stack Trace

Uncaught TypeError: Cannot read property 'indexOf' of undefined

At /Users/vmerlet/.atom/packages/atom-autocomplete-php/lib/services/php-file-parser.coffee:682

TypeError: Cannot read property 'indexOf' of undefined
    at Object.module.exports.getMemberContext (/Users/vmerlet/.atom/packages/atom-autocomplete-php/lib/services/php-file-parser.coffee:682:25)
    at FunctionProvider.module.exports.FunctionProvider.getTooltipForWord (/Users/vmerlet/.atom/packages/atom-autocomplete-php/lib/tooltip/function-provider.coffee:18:25)
    at FunctionProvider.module.exports.AbstractProvider.showPopoverFor (/Users/vmerlet/.atom/packages/atom-autocomplete-php/lib/tooltip/abstract-provider.coffee:109:24)
    at HTMLSpanElement.<anonymous> (/Users/vmerlet/.atom/packages/atom-autocomplete-php/lib/tooltip/abstract-provider.coffee:78:22)
    at HTMLDivElement.jQuery.event.dispatch (/opt/homebrew-cask/Caskroom/atom/1.2.4/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4435:9)
    at HTMLDivElement.elemData.handle (/opt/homebrew-cask/Caskroom/atom/1.2.4/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4121:28)

Commands

     -5:32.7.0 fuzzy-finder:toggle-file-finder (atom-text-editor.editor.is-focused)
     -5:32.5.0 core:paste (atom-text-editor.editor.mini.is-focused)
     -5:30.8.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
     -5:30.8.0 core:cancel (atom-text-editor.editor.mini.is-focused)
     -5:30.5.0 fuzzy-finder:toggle-file-finder (atom-text-editor.editor.is-focused)
     -5:30.3.0 core:paste (atom-text-editor.editor.mini.is-focused)
     -5:30.1.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -5:20.6.0 core:close (atom-text-editor.editor.is-focused)
     -5:19.7.0 core:copy (atom-text-editor.editor.is-focused)
     -5:19.4.0 fuzzy-finder:toggle-file-finder (atom-text-editor.editor.is-focused)
     -5:19.2.0 core:paste (atom-text-editor.editor.mini.is-focused)
     -5:18.6.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:59.1.0 fuzzy-finder:toggle-file-finder (atom-text-editor.editor.is-focused)
  2x -0:54 core:move-down (atom-text-editor.editor.mini.is-focused)
     -0:52.6.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:06.3.0 core:close (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "unity-ui",
      "atom-light-syntax"
    ],
    "excludeVcsIgnoredPaths": false
  },
  "atom-autocomplete-php": {}
}

Installed Packages

# User
atom-autocomplete-php, v0.18.1
atom-symfony2, v0.2.1
auto-detect-indentation, v0.4.2
autocomplete-ionic-framework, v0.2.1
behat-atom, v0.1.2
close-other-tabs, v0.1.0
color-picker, v2.0.13
docblockr, v0.7.3
file-icons, v1.6.13
highlight-selected, v0.10.1
minimap-git-diff, v4.1.8
php-getters-setters, v0.5.5
php-twig, v4.0.0
sync-settings, v0.6.0
unity-ui, v2.1.2

# Dev
No dev packages