Peekmo / atom-autocomplete-php

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

Uncaught TypeError: Cannot read property 'replace' of undefined #377

Open mikebronner opened 6 years ago

mikebronner commented 6 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.24.0 x64 Electron: 1.6.16 OS: Mac OS X 10.13.3 Thrown From: atom-autocomplete-php package 0.25.6

Stack Trace

Uncaught TypeError: Cannot read property 'replace' of undefined

At /Users/mike/.atom/packages/atom-autocomplete-php/lib/services/php-proxy.coffee:29

TypeError: Cannot read property 'replace' of undefined
    at Object.execute (/packages/atom-autocomplete-php/lib/services/php-proxy.coffee:29:18)
    at Object.autocomplete (/packages/atom-autocomplete-php/lib/services/php-proxy.coffee:215:20)
    at Object.parseElements (/packages/atom-autocomplete-php/lib/services/php-file-parser.coffee:772:33)
    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

     -0:42.5.0 core:move-right (input.hidden-input)
  2x -0:42.3.0 core:select-down (input.hidden-input)
     -0:41.3.0 core:copy (input.hidden-input)
 14x -0:41 core:move-down (input.hidden-input)
     -0:38.3.0 core:paste (input.hidden-input)
     -0:37.5.0 editor:newline (input.hidden-input)
     -0:33.7.0 core:copy (input.hidden-input)
  3x -0:32.5.0 core:paste (input.hidden-input)
  2x -0:26.7.0 core:delete (input.hidden-input)
     -0:24.8.0 core:move-right (input.hidden-input)
  4x -0:24.5.0 core:delete (input.hidden-input)
     -0:15.7.0 core:copy (input.hidden-input)
  3x -0:14.3.0 editor:select-to-beginning-of-word (input.hidden-input)
     -0:13.5.0 core:select-left (input.hidden-input)
     -0:12.7.0 core:paste (input.hidden-input)
     -0:11 core:save (input.hidden-input)

Non-Core Packages

atom-autocomplete-php 0.25.6 
autocomplete-js-import 1.4.0 
busy-signal 1.4.3 
chestnut-light-atom-syntax 0.2.1 
close-on-left 0.9.2 
dash 1.7.1 
double-tag 1.1.0 
duotone-light-syntax 2.1.0 
file-icons 2.1.17 
highlight-selected 0.13.1 
intentions 1.1.5 
language-blade 0.38.0 
language-vue 0.23.1 
linter 2.2.0 
linter-eslint 8.4.1 
linter-jsonlint 1.3.0 
linter-php 1.5.1 
linter-phpcs 1.6.8 
linter-phpmd 2.0.0 
linter-sass-lint 1.8.3 
linter-tidy 2.3.1 
linter-ui-default 1.7.1 
minimap 4.29.8 
minimap-cursorline 0.2.0 
minimap-find-and-replace 4.5.2 
minimap-git-diff 4.3.1 
minimap-highlight-selected 4.6.1 
minimap-linter 2.1.3 
pen-paper-coffee-syntax 0.14.9 
php-hyperclick 1.2.1 
platformio-ide-terminal 2.8.0 
pretty-json 2.0.0 
recent-files-fuzzy-finder 0.4.0 
sort-lines 0.18.0 
Sublime-Style-Column-Selection 1.7.4 
symbols-navigator 1.4.0 
sync-settings 0.8.5 
tag 0.5.0 
tester 1.4.0 
tester-phpunit 1.0.6 
wakatime 7.0.4 
zentabs 0.8.9