Peekmo / atom-autocomplete-php

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

Uncaught TypeError: Cannot read property 'link' of undefined #237

Closed tuanquynh0508 closed 8 years ago

tuanquynh0508 commented 8 years ago

[Enter steps to reproduce below:]

  1. ...
  2. ...

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

Stack Trace

Uncaught TypeError: Cannot read property 'link' of undefined

At /C:/Users/Nguyen%20Nhu%20Tuan/.atom/packages/atom-autocomplete-php/lib/services/php-file-parser.coffee:619

TypeError: Cannot read property 'link' of undefined
    at Object.module.exports.getMemberContext (file:///C:/Users/Nguyen Nhu Tuan/.atom/packages/atom-autocomplete-php/lib/services/php-file-parser.coffee:689:32)
    at FunctionProvider.module.exports.FunctionProvider.getTooltipForWord (file:///C:/Users/Nguyen Nhu Tuan/.atom/packages/atom-autocomplete-php/lib/tooltip/function-provider.coffee:18:25)
    at FunctionProvider.module.exports.AbstractProvider.showPopoverFor (file:///C:/Users/Nguyen Nhu Tuan/.atom/packages/atom-autocomplete-php/lib/tooltip/abstract-provider.coffee:109:24)
    at HTMLSpanElement.<anonymous> (file:///C:/Users/Nguyen Nhu Tuan/.atom/packages/atom-autocomplete-php/lib/tooltip/abstract-provider.coffee:78:22)
    at HTMLDivElement.jQuery.event.dispatch (C:\Users\Nguyen Nhu Tuan\AppData\Local\atom\app-1.5.3\resources\app.asar\node_modules\jquery\dist\jquery.js:4435:9)
    at HTMLDivElement.elemData.handle (C:\Users\Nguyen Nhu Tuan\AppData\Local\atom\app-1.5.3\resources\app.asar\node_modules\jquery\dist\jquery.js:4121:28)

Commands

     -3:46.1.0 docblockr:parse-enter (atom-text-editor.editor.is-focused)
     -3:46.1.0 editor:newline (atom-text-editor.editor.is-focused)
     -3:45.8.0 core:paste (atom-text-editor.editor.is-focused)
     -3:21.4.0 core:copy (atom-text-editor.editor.is-focused)
  3x -3:17.2.0 core:paste (atom-text-editor.editor.is-focused)
     -2:44.5.0 core:save (atom-text-editor.editor.is-focused)
     -1:00.8.0 docblockr:parse-enter (atom-text-editor.editor.is-focused)
     -1:00.8.0 editor:newline (atom-text-editor.editor.is-focused)
     -1:00.6.0 docblockr:parse-enter (atom-text-editor.editor.is-focused)
     -1:00.6.0 editor:newline (atom-text-editor.editor.is-focused)
  4x -0:40.5.0 core:copy (atom-text-editor.editor.is-focused)
     -0:37.5.0 core:paste (atom-text-editor.editor.is-focused)
     -0:32.1.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:31.1.0 editor:select-to-first-character-of-line (atom-text-editor.editor.is-focused)
  2x -0:30.7.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:27.7.0 core:save (atom-text-editor.editor.is-focused)

Config

{
  "core": {},
  "atom-autocomplete-php": {
    "binComposer": "C:\\ProgramData\\ComposerSetup\\bin\\composer.phar",
    "binPhp": "C:\\Work\\xampp\\php\\php.exe"
  }
}

Installed Packages

# User
angularjs, v0.3.4
atom-autocomplete-php, v0.18.7
atom-beautify, v0.28.24
atom-symfony2, v0.2.1
docblockr, v0.7.3
minimap, v4.19.0
php-getters-setters, v0.5.5
php-twig, v4.0.0
project-viewer, v0.2.31

# Dev
No dev packages
Peekmo commented 8 years ago

Hello,

It should be fixed now,

Regards, Peekmo