Peekmo / atom-autocomplete-php

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

Uncaught TypeError: element.replace is not a function #277

Open larpo1 opened 8 years ago

larpo1 commented 8 years ago

[Enter steps to reproduce below:]

  1. Open a file
  2. hit save

Atom Version: 1.8.0 System: Mac OS X 10.11.5 Thrown From: atom-autocomplete-php package, v0.18.9

Stack Trace

Uncaught TypeError: element.replace is not a function

At /Users/me/.atom/packages/atom-autocomplete-php/lib/services/php-file-parser.coffee:527

TypeError: element.replace is not a function
    at Object.module.exports.parseStackClass (/Users/larpo/.atom/packages/atom-autocomplete-php/lib/services/php-file-parser.coffee:527:31)
    at Object.module.exports.getStackClasses (/Users/larpo/.atom/packages/atom-autocomplete-php/lib/services/php-file-parser.coffee:456:17)
    at Object.module.exports.getCalledClass (/Users/larpo/.atom/packages/atom-autocomplete-php/lib/services/php-file-parser.coffee:25:21)
    at Object.module.exports.getMemberContext (/Users/larpo/.atom/packages/atom-autocomplete-php/lib/services/php-file-parser.coffee:663:28)
    at FunctionProvider.module.exports.FunctionProvider.getTooltipForWord (/Users/larpo/.atom/packages/atom-autocomplete-php/lib/tooltip/function-provider.coffee:18:25)
    at FunctionProvider.module.exports.AbstractProvider.showPopoverFor (/Users/larpo/.atom/packages/atom-autocomplete-php/lib/tooltip/abstract-provider.coffee:109:24)
    at HTMLSpanElement.<anonymous> (/Users/larpo/.atom/packages/atom-autocomplete-php/lib/tooltip/abstract-provider.coffee:78:22)
    at HTMLDivElement.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4435:9)
    at HTMLDivElement.elemData.handle (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4121:28)

Commands

  3x -0:06.0 core:backspace (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "ionic-atom",
      "ionic-atom"
    ],
    "packagesWithKeymapsDisabled": [
      "browser-plus"
    ],
    "themes": [
      "seti-ui",
      "seti-syntax"
    ]
  }
}

Installed Packages

# User
angularjs, v0.3.4
atom-autocomplete-php, v0.18.9
atom-beautify, v0.29.7
atom-minify, v0.7.3
atom-typescript, v8.10.2
atom-webbrowser, v2.1.4
autoclose-html, v0.23.0
browser-plus, v0.0.60
editorconfig, v1.4.1
egghead-react-snippets, v1.1.1
emmet, v2.4.3
javascript-snippets, v1.2.1
linter, v1.11.4
minimap, v4.24.3
php-cs-fixer, v2.5.6
preview-plus, v1.2.6
react-es6-snippets, v0.3.0
react-snippets, v0.4.2
seti-syntax, v1.0.1
seti-ui, v1.2.3

# Dev
No dev packages