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

Open SwordFishTromBones opened 3 years ago

SwordFishTromBones commented 3 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.54.0 x64 Electron: 6.1.12 OS: macOS 11.2.1 Thrown From: atom-autocomplete-php package 0.25.6

Stack Trace

Uncaught TypeError: Cannot read property 'class' of undefined

At /Users/tonymay/.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.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 FunctionProvider.module.exports.FunctionProvider.getTooltipForWord (/packages/atom-autocomplete-php/lib/tooltip/function-provider.coffee:18:25)
    at FunctionProvider.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/compare-files/node_modules/jquery/dist/jquery.js:4435:9)
    at HTMLDivElement.elemData.handle (/packages/compare-files/node_modules/jquery/dist/jquery.js:4121:28)

Commands

     -3:06.2.0 core:save (input.hidden-input)
  2x -2:06.9.0 core:copy (input.hidden-input)
     -1:49.7.0 find-and-replace:show (input.hidden-input)
     -1:49.5.0 core:paste (input.hidden-input)
     -1:49.2.0 core:confirm (input.hidden-input)
  2x -1:39 core:copy (input.hidden-input)
     -1:11.2.0 core:confirm (input.hidden-input)
  4x -0:57.1.0 editor:newline (input.hidden-input)
     -0:56 core:move-up (input.hidden-input)
     -0:55.8.0 core:paste (input.hidden-input)
     -0:25 core:copy (input.hidden-input)
     -0:23.2.0 core:paste (input.hidden-input)
     -0:18.5.0 core:copy (input.hidden-input)
     -0:16.2.0 core:paste (input.hidden-input)
     -0:13.1.0 core:copy (input.hidden-input)
     -0:11.1.0 core:paste (input.hidden-input)

Non-Core Packages

atom-autocomplete-php 0.25.6 
atom-file-icons 0.7.1 
atom-ide-ui 0.13.0 
atom-material-syntax 1.0.8 
atom-python-run 0.9.7 
autocomplete-php 0.3.7 
autocomplete-python 1.16.0 
busy-signal 2.0.1 
compare-files 0.8.1 
intentions 1.1.5 
linter 3.1.1 
linter-flake8 2.4.0 
linter-ui-default 2.2.4 
script 3.26.0