Peekmo / atom-autocomplete-php

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

Uncaught TypeError: Cannot read property 'servername' of undefined #242

Closed pcsoftvn closed 8 years ago

pcsoftvn commented 8 years ago

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.6.0 System: Microsoft Windows 8.1 Enterprise Thrown From: atom-autocomplete-php package, v0.18.7

Stack Trace

Uncaught TypeError: Cannot read property 'servername' of undefined

At C:\Users\pcsoftvn Cao Anh\AppData\Local\atom\app-1.6.0\resources\app.asar\src\pane.js:896

TypeError: Cannot read property 'servername' of undefined
    at Object.module.exports.getMemberContext (file:///C:/Users/pcsoftvn Cao Anh/.atom/packages/atom-autocomplete-php/lib/services/php-file-parser.coffee:689:32)
    at FunctionProvider.module.exports.FunctionProvider.extractAnnotationInfo (file:///C:/Users/pcsoftvn Cao Anh/.atom/packages/atom-autocomplete-php/lib/annotation/property-provider.coffee:17:27)
    at FunctionProvider.module.exports.AbstractProvider.placeAnnotation (file:///C:/Users/pcsoftvn Cao Anh/.atom/packages/atom-autocomplete-php/lib/annotation/abstract-provider.coffee:103:27)
    at FunctionProvider.<anonymous> (file:///C:/Users/pcsoftvn Cao Anh/.atom/packages/atom-autocomplete-php/lib/annotation/abstract-provider.coffee:92:18)
    at FunctionProvider.module.exports.AbstractProvider.registerAnnotations (file:///C:/Users/pcsoftvn Cao Anh/.atom/packages/atom-autocomplete-php/lib/annotation/abstract-provider.coffee:91:13)
    at FunctionProvider.module.exports.AbstractProvider.rescan (file:///C:/Users/pcsoftvn Cao Anh/.atom/packages/atom-autocomplete-php/lib/annotation/abstract-provider.coffee:236:10)
    at file:///C:/Users/pcsoftvn Cao Anh/.atom/packages/atom-autocomplete-php/lib/annotation/abstract-provider.coffee:24:18
    at Function.module.exports.Emitter.simpleDispatch (C:\Users\pcsoftvn Cao Anh\AppData\Local\atom\app-1.6.0\resources\app.asar\node_modules\event-kit\lib\emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (C:\Users\pcsoftvn Cao Anh\AppData\Local\atom\app-1.6.0\resources\app.asar\node_modules\event-kit\lib\emitter.js:125:28)
    at TextBuffer.module.exports.TextBuffer.saveAs (C:\Users\pcsoftvn Cao Anh\AppData\Local\atom\app-1.6.0\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:1073:27)
    at TextBuffer.module.exports.TextBuffer.save (C:\Users\pcsoftvn Cao Anh\AppData\Local\atom\app-1.6.0\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:1043:19)
    at TextEditor.module.exports.TextEditor.save (C:\Users\pcsoftvn Cao Anh\AppData\Local\atom\app-1.6.0\resources\app.asar\src\text-editor.js:629:26)
    at Pane.module.exports.Pane.saveItem (C:\Users\pcsoftvn Cao Anh\AppData\Local\atom\app-1.6.0\resources\app.asar\src\pane.js:613:18)
    at Pane.module.exports.Pane.saveActiveItem (C:\Users\pcsoftvn Cao Anh\AppData\Local\atom\app-1.6.0\resources\app.asar\src\pane.js:596:19)
    at Workspace.module.exports.Workspace.saveActivePaneItem (C:\Users\pcsoftvn Cao Anh\AppData\Local\atom\app-1.6.0\resources\app.asar\src\workspace.js:673:35)
    at atom-workspace.commandRegistry.add.core:save (C:\Users\pcsoftvn Cao Anh\AppData\Local\atom\app-1.6.0\resources\app.asar\src\register-default-commands.js:205:32)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\pcsoftvn Cao Anh\AppData\Local\atom\app-1.6.0\resources\app.asar\src\command-registry.js:260:29)
    at C:\Users\pcsoftvn Cao Anh\AppData\Local\atom\app-1.6.0\resources\app.asar\src\command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (C:\Users\pcsoftvn Cao Anh\AppData\Local\atom\app-1.6.0\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:570:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (C:\Users\pcsoftvn Cao Anh\AppData\Local\atom\app-1.6.0\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:378:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeydown (C:\Users\pcsoftvn Cao Anh\AppData\Local\atom\app-1.6.0\resources\app.asar\src\window-event-handler.js:97:36)
    at HTMLDocument.<anonymous> (C:\Users\pcsoftvn Cao Anh\AppData\Local\atom\app-1.6.0\resources\app.asar\src\window-event-handler.js:3:61)

Commands

     -1:44.5.0 editor:newline (atom-text-editor.editor.is-focused)
     -1:42.7.0 autocomplete-plus:confirm (atom-text-editor.editor.is-focused.autocomplete-active)
     -1:35.8.0 core:save (atom-text-editor.editor.is-focused)
     -0:35.2.0 editor:newline (atom-text-editor.editor.is-focused)
     -0:33.1.0 autocomplete-plus:confirm (atom-text-editor.editor.is-focused.autocomplete-active)
  2x -0:29.9.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:19.5.0 core:move-left (atom-text-editor.editor.is-focused)
     -0:17.7.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:03.0 core:save (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "autoHideMenuBar": true,
    "openEmptyEditorOnStart": false
  }
}

Installed Packages

# User
atom-autocomplete-php, v0.18.7
atom-beautify, v0.28.27
file-icons, v1.6.19
font-awesome-snippetset, v0.0.6
minimap, v4.21.0

# Dev
No dev packages
Peekmo commented 8 years ago

Hello,

It should be fixed now,

Regards, Peekmo