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)
[Enter steps to reproduce:]
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
Commands
Non-Core Packages