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

Error Running xsd2json - SyntaxError: missing ) after argument list #125

Open
HSBawa opened this issue Apr 23, 2021 · 1 comment
Open

Error Running xsd2json - SyntaxError: missing ) after argument list #125

HSBawa opened this issue Apr 23, 2021 · 1 comment

Comments

@HSBawa
Copy link

HSBawa commented Apr 23, 2021

Thoughts what the issue might be? Commands and Error information is mentioned below:

OS: Windows 10 w/ latest swipl, nodejs and xsd2json installed.

Run Option 1:
C:\Users\name\Desktop\WSDL-JSON>xsd2json ./add-note-dev.wsdl

Run Option 2:
C:\Users\name\Desktop\WSDL-JSON>node C:\Users\name\AppData\Roaming\npm\xsd2json ./add-note-dev.wsdl

Error with both of the above options:

basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
          ^^^^^^^

SyntaxError: missing ) after argument list
←[90m    at wrapSafe (internal/modules/cjs/loader.js:979:16)←[39m
←[90m    at Module._compile (internal/modules/cjs/loader.js:1027:27)←[39m
←[90m    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)←[39m
←[90m    at Module.load (internal/modules/cjs/loader.js:928:32)←[39m
←[90m    at Function.Module._load (internal/modules/cjs/loader.js:769:14)←[39m
←[90m    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)←[39m
←[90m    at internal/main/run_main_module.js:17:47←[39m
@fnogatz
Copy link
Owner

fnogatz commented Apr 24, 2021

To be honest, I never tried to work with xsd2json on the Windows Subsystem for Linux. The shown error has its origins in the node.js part of this project. However, xsd2json actually is just a module for SWI-Prolog, with a node.js wrapper for easier use.

Therefore, you could try to get the SWI-Prolog part working as described in in lib-pl/README.md: Clone this repository, go to the lib-pl directory, and run it as follows:

swipl -g main cli.pl -- /path/to/your.xsd

Does this work for you?

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