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 'xsdChildren' of undefined #34

Open cboulanger opened 7 years ago

cboulanger commented 7 years ago

[Enter steps to reproduce:]

  1. Open XML document

Atom: 1.16.0 x64 Electron: 1.3.13 OS: Mac OS X 10.12.4 Thrown From: autocomplete-xml package 0.9.4

Stack Trace

Uncaught TypeError: Cannot read property 'xsdChildren' of undefined

At events.js:160

TypeError: Cannot read property 'xsdChildren' of undefined
    at Object.postParsing (/packages/autocomplete-xml/lib/xsdParser.coffee:363:38)
    at Object.parse (/packages/autocomplete-xml/lib/xsdParser.coffee:88:6)
    at /packages/autocomplete-xml/lib/xsdParser.coffee:49:12
    at /packages/autocomplete-xml/node_modules/xml2js/lib/xml2js.js:483:18)
    at emitOne (events.js:96:13)
    at Parser.emit (events.js:188:7)
    at Object.onclosetag (/packages/autocomplete-xml/node_modules/xml2js/lib/xml2js.js:444:26)
    at emit (/packages/autocomplete-xml/node_modules/sax/lib/sax.js:640:35)
    at emitNode (/packages/autocomplete-xml/node_modules/sax/lib/sax.js:645:5)
    at closeTag (/packages/autocomplete-xml/node_modules/sax/lib/sax.js:905:7)
    at Object.write (/packages/autocomplete-xml/node_modules/sax/lib/sax.js:1452:13)
    at Parser.exports.Parser.Parser.parseString (/packages/autocomplete-xml/node_modules/xml2js/lib/xml2js.js:502:31)
    at Parser.parseString (/packages/autocomplete-xml/node_modules/xml2js/lib/xml2js.js:7:59)
    at Object.exports.parseString (/packages/autocomplete-xml/node_modules/xml2js/lib/xml2js.js:534:19)
    at Object.parseFromString (/packages/autocomplete-xml/lib/xsdParser.coffee:39:12)
    at Object.parseFromString (/packages/autocomplete-xml/lib/xsd.coffee:59:15)
    at /packages/autocomplete-xml/lib/xsd.coffee:53:12
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:445:3)

Commands

  3x -3:39.5.0 core:move-right (input.hidden-input)
 10x -3:37.9.0 core:backspace (input.hidden-input)
  5x -3:28.5.0 core:move-right (input.hidden-input)
  3x -3:27.5.0 core:select-right (input.hidden-input)
  6x -3:25.7.0 core:backspace (input.hidden-input)
     -3:22.7.0 core:save (input.hidden-input)
     -1:49.9.0 core:copy (input.hidden-input)
     -1:48.4.0 refactor:done (input.hidden-input)
     -1:48.4.0 docblockr:parse-enter (input.hidden-input)
     -1:48.4.0 editor:newline (input.hidden-input)
     -1:47.9.0 editor:move-to-first-character-of-line (input.hidden-input)
     -1:47.5.0 core:paste (input.hidden-input)
  3x -1:41.3.0 core:move-left (input.hidden-input)
  7x -1:40.7.0 core:select-right (input.hidden-input)
     -0:14 core:move-right (input.hidden-input)
  7x -0:13.4.0 core:select-left (input.hidden-input)

Non-Core Packages

api-docs 0.0.6 
atom-beautify 0.29.23 
atom-lupa 0.7.35 
atom-ternjs 0.18.2 
autocomplete-xml 0.9.4 
busy-signal 1.4.1 
docblockr 0.9.4 
intentions 1.1.2 
js-refactor 0.7.5 
linter 2.1.4 
linter-eslint 8.1.7 
linter-ui-default 1.2.3 
node-debugger 1.10.1 
refactor 0.11.4 
tag 0.5.0