Open x-Scripts opened 4 years ago
I am getting this issue as well on OSX since today. it was working yesterday and didnt change anything as far as i know. Same error in same file on same line.
[Enter steps to reproduce:]
Atom: 1.45.0 x64 Electron: 4.2.7 OS: Mac OS X 10.15.4 Thrown From: atom-autocomplete-php package 0.25.6
Uncaught TypeError: Cannot read property 'class' of undefined
At /Users/bastianallenstein/.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 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)
-3:06.8.0 core:copy (input.hidden-input)
-3:05.8.0 editor:newline (input.hidden-input)
3x -3:04.9.0 core:backspace (input.hidden-input)
-3:02.9.0 core:paste (input.hidden-input)
-2:58.1.0 snippets:previous-tab-stop (input.hidden-input)
-2:58.1.0 editor:outdent-selected-rows (input.hidden-input)
-2:50.8.0 editor:toggle-line-comments (input.hidden-input)
-2:46 editor:newline (input.hidden-input)
-2:45.4.0 snippets:next-tab-stop (input.hidden-input)
-2:45.4.0 snippets:expand (input.hidden-input)
-2:45.4.0 editor:indent (input.hidden-input)
2x -2:44.3.0 core:backspace (input.hidden-input)
-2:22.7.0 autocomplete-plus:confirm (input.hidden-input)
-2:22.7.0 snippets:expand (atom-text-editor.editor.is-focused.autocomplete-active)
-2:21.1.0 core:backspace (input.hidden-input)
2x -2:14.5.0 editor:newline (input.hidden-input)
aligner 1.2.4
aligner-css 1.2.1
aligner-javascript 1.3.0
aligner-php 1.3.0
aligner-scss 1.3.1
atom-alignment 0.13.0
atom-autocomplete-php 0.25.6
atom-beautify 0.33.4
atom-css-clean 2.24.1
autoclose-html 0.23.0
autocomplete-wordpress-hooks 0.2.3
browser-plus 0.0.98
color-picker 2.3.0
file-icons 2.1.39
ide-php 0.7.18
minimap 4.29.9
php-cs-fixer 4.1.1
pigments 0.40.2
simple-drag-drop-text 0.5.0
wordpress-autocomplete 1.5.0
Possible fix? Note that I never worked with coffeescript before. I just added this before line 775:
if not methods
className = null
break
[Enter steps to reproduce:]
Atom: 1.41.0 x64 Electron: 4.2.7 OS: Microsoft Windows 10 Pro Thrown From: atom-autocomplete-php package 0.25.6
Stack Trace
Uncaught TypeError: Cannot read property 'class' of undefined
Commands
Non-Core Packages