Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to parse xsd #23

Open
klokoy opened this issue Dec 4, 2017 · 1 comment
Open

Failed to parse xsd #23

klokoy opened this issue Dec 4, 2017 · 1 comment

Comments

@klokoy
Copy link

klokoy commented Dec 4, 2017

When I try to parse the following xsd:

https://github.com/BuildingSMART/BCF-XML/blob/release_2_1/Schemas/visinfo.xsd

cxsd fails with the following stack:

TypeError: Cannot read property 'id' of undefined
    at ContextBase.copyNamespace (/Users/klokoy/projects/bcf/node_modules/cxml/dist/xml/ContextBase.js:33:49)
    at Object.exportNamespace (/Users/klokoy/projects/bcf/node_modules/cxsd/dist/xsd/Exporter.js:142:32)
    at /Users/klokoy/projects/bcf/node_modules/cxsd/dist/cli.js:40:35
    at tryCatcher (/Users/klokoy/projects/bcf/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/klokoy/projects/bcf/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/Users/klokoy/projects/bcf/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/Users/klokoy/projects/bcf/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/Users/klokoy/projects/bcf/node_modules/bluebird/js/release/promise.js:693:18)
    at Async._drainQueue (/Users/klokoy/projects/bcf/node_modules/bluebird/js/release/async.js:133:16)
    at Async._drainQueues (/Users/klokoy/projects/bcf/node_modules/bluebird/js/release/async.js:143:10)
    at Immediate.Async.drainQueues (/Users/klokoy/projects/bcf/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:651:20)
    at tryOnImmediate (timers.js:624:5)
    at processImmediate [as _immediateCallback] (timers.js:596:5)

Is there a good way to figure out if the problem is with cxsd or the xsd itself?

@adamvoss
Copy link

adamvoss commented Feb 4, 2018

Another failure:

https://maven.apache.org/plugins/maven-changes-plugin/xsd/changes-1.0.0.xsd
$ ./node_modules/.bin/cxsd changes-1.0.0.xsd
SHOULD RETRY
C:\node_modules\cget\dist\cget\Cache.js:195
            throw (err);
            ^

Error: getaddrinfo ENOTFOUND null null:80
    at errnoException (dns.js:50:10)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:92:26)
$ node --version
v8.9.3

Microsoft Windows [Version 10.0.15063]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants