Peekmo / atom-autocomplete-php

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

Uncaught TypeError: Cannot read property 'class' of undefined #393

Open dfrankes opened 6 years ago

dfrankes commented 6 years ago

I have disabled the package, but it is still giving me a lot of errors when selecting code (php)

Atom: 1.30.0 x64 Electron: 2.0.5 OS: Mac OS X 10.13.6 Thrown From: atom-autocomplete-php package 0.25.6

Stack Trace

Uncaught TypeError: Cannot read property 'class' of undefined

At /Users/davyfrankes/.atom/packages/atom-autocomplete-php/lib/services/php-file-parser.coffee:775

TypeError: Cannot read property 'class' of undefined
    at Object.parseElements (/packages/atom-autocomplete-php/lib/services/php-file-parser.coffee:775:24)
    at Object.getVariableType (/packages/atom-autocomplete-php/lib/services/php-file-parser.coffee:612:34)
    at Object.parseElements (/packages/atom-autocomplete-php/lib/services/php-file-parser.coffee:731:34)
    at Object.getCalledClass (/packages/atom-autocomplete-php/lib/services/php-file-parser.coffee:33:17)
    at Object.getMemberContext (/packages/atom-autocomplete-php/lib/services/php-file-parser.coffee:679:28)
    at PropertyProvider.module.exports.PropertyProvider.getTooltipForWord (/packages/atom-autocomplete-php/lib/tooltip/property-provider.coffee:17:25)
    at PropertyProvider.module.exports.AbstractProvider.showPopoverFor (/packages/atom-autocomplete-php/lib/tooltip/abstract-provider.coffee:108:24)
    at /packages/atom-autocomplete-php/lib/tooltip/abstract-provider.coffee:77:22)
    at HTMLDivElement.dispatch (/packages/atom-autocomplete-php/node_modules/jquery/dist/jquery.js:4435:9)
    at HTMLDivElement.elemData.handle (/packages/atom-autocomplete-php/node_modules/jquery/dist/jquery.js:4121:28)

Commands

     -3:17.5.0 welcome:show (input.hidden-input)
  3x -2:25.1.0 core:copy (input.hidden-input)
     -0:53.1.0 core:paste (input.hidden-input)
     -0:49.5.0 core:copy (input.hidden-input)
     -0:49.1.0 core:paste (input.hidden-input)
     -0:47.5.0 core:copy (input.hidden-input)
     -0:45.4.0 core:paste (input.hidden-input)
     -0:42 core:copy (input.hidden-input)
     -0:41.5.0 core:paste (input.hidden-input)
  2x -0:39.4.0 core:copy (input.hidden-input)
     -0:38 core:paste (input.hidden-input)
     -0:37.1.0 core:copy (input.hidden-input)
  2x -0:36.6.0 core:paste (input.hidden-input)
  2x -0:35.7.0 core:save (input.hidden-input)
     -0:05.9.0 core:copy (input.hidden-input)
  2x -0:05.4.0 core:paste (input.hidden-input)

Non-Core Packages

atom-autocomplete-php 0.25.6 
atom-clock 0.1.16 
atom-terminal-panel 4.4.4 
bottom-dock 0.4.4 
docblockr 0.13.7 
ftp-remote-edit 0.12.14 
Hydrogen 2.5.1 
javascript-snippets 1.2.1 
jquery-snippets 11.0.0 
meteor-api 2.20.0 
remote-ftp 2.2.0 
tasks 2.10.1 
terminal-tab 0.5.7 
todo-manager 0.2.10