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 #404

Open danielcherrington opened 5 years ago

danielcherrington commented 5 years ago
  1. Open PHP file
  2. Hover over variable

Atom: 1.36.1 x64 Electron: 2.0.18 OS: Ubuntu 19.04 Thrown From: atom-autocomplete-php package 0.25.6

Stack Trace

Uncaught TypeError: Cannot read property 'class' of undefined

At /home/daniel/.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:07.2.0 intentions:highlight (input.hidden-input)
     -3:07.1.0 core:undo (input.hidden-input)
     -3:05.9.0 docblockr:parse-enter (input.hidden-input)
     -3:05.9.0 editor:newline (input.hidden-input)
     -3:05.7.0 intentions:highlight (input.hidden-input)
     -3:05.6.0 core:paste (input.hidden-input)
  3x -2:59.9.0 core:move-left (input.hidden-input)
 12x -2:34.5.0 core:backspace (input.hidden-input)
     -2:22.8.0 docblockr:parse-enter (input.hidden-input)
     -2:22.8.0 editor:newline (input.hidden-input)
     -2:20.7.0 core:backspace (input.hidden-input)
     -2:19.1.0 intentions:highlight (input.hidden-input)
     -2:19 core:save (input.hidden-input)
  2x -1:45.3.0 core:delete (input.hidden-input)
     -1:41.8.0 intentions:highlight (input.hidden-input)
     -1:41.7.0 core:save (input.hidden-input)

Non-Core Packages

api-docs 0.0.6 
atom-autocomplete-php 0.25.6 
atom-beautify 0.33.4 
atom-material-syntax 1.0.8 
atom-material-ui 2.1.3 
atom-terminal 0.8.0 
atom-toolbar 0.1.6 
busy-signal 2.0.1 
docblockr 0.13.7 
docker 0.8.0 
drupal 1.9.2 
file-icons 2.1.32 
framer-syntax 1.1.0 
framer-ui 2.0.0 
git-plus 8.6.3 
gitlab 0.1.3-7 
gitlab-integration 0.4.8 
Hydrogen 2.9.0 
intentions 1.1.5 
jslint 1.5.1 
linter 2.3.0 
linter-php 1.6.1 
linter-phpcs 1.6.14 
linter-phpmd 2.0.2 
linter-ui-default 1.7.1 
open-terminal-here 2.3.2 
opened-files 0.3.6 
php-cs-fixer 4.1.1 
php-debug 0.3.5 
php-twig 4.0.0 
pristine-ui 1.1.11 
redmine 0.2.2 
redui-jm-syntax 1.4.0 
remote-edit 1.9.0 
snippet-generator 0.3.2 
ssh-config 0.14.0 
tabs-to-spaces 1.0.5 
webbox-color 0.5.9