pleonex / atom-autocomplete-xml

Autcomplete XML package for Atom editor.
https://atom.io/packages/autocomplete-xml
MIT License
13 stars 8 forks source link

Uncaught TypeError: Cannot read property 'slice' of undefined #38

Open Art2Cat opened 6 years ago

Art2Cat commented 6 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.21.1 x64 Electron: 1.6.15 OS: Microsoft Windows 10 Enterprise Thrown From: autocomplete-xml package 0.9.4

Stack Trace

Uncaught TypeError: Cannot read property 'slice' of undefined

At C:\Users\********\.atom\packages\autocomplete-xml\lib\xml-utils.coffee:27

TypeError: Cannot read property 'slice' of undefined
    at Object.getXPathCompleteWord (/packages/autocomplete-xml/lib/xml-utils.coffee:27:34)
    at HTMLElement.XPathStatusBarView.updateXPath (/packages/autocomplete-xml/lib/xpath-statusbar-view.coffee:95:21)
    at HTMLElement.XPathStatusBarView.subscribeToActiveTextEditor (/packages/autocomplete-xml/lib/xpath-statusbar-view.coffee:83:8)
    at /packages/autocomplete-xml/lib/xpath-statusbar-view.coffee:45:8
    at Function.module.exports.Emitter.simpleDispatch (~/AppData/Local/atom/app-1.21.1/resources/app/node_modules/event-kit/lib/emitter.js:25:20)
    at Emitter.module.exports.Emitter.emit (~/AppData/Local/atom/app-1.21.1/resources/app/node_modules/event-kit/lib/emitter.js:141:34)
    at Workspace.didChangeActivePaneItemOnPaneContainer (~/AppData/Local/atom/app-1.21.1/resources/app/src/workspace.js:492:28)
    at WorkspaceCenter.paneContainer.onDidChangeActivePaneItem (~/AppData/Local/atom/app-1.21.1/resources/app/src/workspace-center.js:17:20)
    at Function.module.exports.Emitter.simpleDispatch (~/AppData/Local/atom/app-1.21.1/resources/app/node_modules/event-kit/lib/emitter.js:25:20)
    at Emitter.module.exports.Emitter.emit (~/AppData/Local/atom/app-1.21.1/resources/app/node_modules/event-kit/lib/emitter.js:141:34)
    at PaneContainer.didChangeActiveItemOnPane (~/AppData/Local/atom/app-1.21.1/resources/app/src/pane-container.js:284:26)
    at Pane.module.exports.Pane.setActiveItem (~/AppData/Local/atom/app-1.21.1/resources/app/src/pane.js:339:22)
    at Pane.module.exports.Pane.activateItem (~/AppData/Local/atom/app-1.21.1/resources/app/src/pane.js:492:27)
    at TabBarView.module.exports.TabBarView.onClick (~/AppData/Local/atom/app-1.21.1/resources/app/node_modules/tabs/lib/tab-bar-view.js:715:25)

Commands

Non-Core Packages

atom-beautify 0.30.5 
atom-runner 2.7.1 
autoclose-html 0.23.0 
autocomplete-java 1.2.7 
autocomplete-oracle 1.4.2 
autocomplete-xml 0.9.4 
busy-signal 1.4.3 
file-icons 2.1.13 
highlight-selected 0.13.1 
hyperclick 0.1.5 
intellij-idea-keymap 0.2.3 
intentions 1.1.5 
javascript-snippets 1.2.1 
language-log 1.9.0 
language-oracle 1.8.0 
language-pgsql 0.2.3 
linter 2.2.0 
linter-javac 1.9.4 
linter-ui-default 1.6.10 
minimap 4.29.7 
minimap-highlight-selected 4.6.1 
platformio-ide-terminal 2.7.0 
wakatime 7.0.3 
xml-formatter 0.11.0 
parajulizRoman commented 4 years ago

I just got this, a notification led me to this url.. whats wrong ? I am writing xml