Comments (7)
Similar problem here:
With one xsd it's working fine, with the other I get a json file with no content.
With --debug-info it shows:
ERROR: -g user:main: false
With --trace it shows:
ERROR: -g user:main: Undefined procedure: chr_leash/1
ERROR: In:
ERROR: [11] chr_leash(none)
ERROR: [10] main([space(remove),...|...],['C:\Users\taascru2\AppData\Roaming\npm\\node_modules\xsd2json\lib-pl\cli.exe','AccountRead.xsd']) at c:/users/taascru2/appdata/roaming/npm/node_modules/xsd2json/lib-pl/cli.pl:107
ERROR: [8] catch(user:main,error(existence_error(procedure,...),context(...,_30256)),'$toplevel':true) at c:/program files/swipl/boot/init.pl:386
ERROR: [7] catch_with_backtrace(user:main,error(existence_error(procedure,...),context(...,_30314)),'$toplevel':true) at c:/program files/swipl/boot/init.pl:436
ERROR:
ERROR: Note: some frames are missing due to last-call optimization.
ERROR: Re-run your program in debug mode (:- debug.) to get more detail.
Same happens if I trace or debug the xsd that normally works. With --debug-info or --trace I get the error messages and an empty json. After deleting the empty file and rerun the command without flags, it works again.
For the second xsd that never works I get no hint what could be wrong with it. It has a dependency to another xsd that has a dependency to a third xsd. Could this be the reason?
Thanks in advance for your help.
from xsd2json.
With --debug-info it shows:
ERROR: -g user:main: false
Hm, we should first try to get --debug-info
working. Have you installed xsd2json as a global module (npm install -g xsd2json
), or as a dependency in your local package.json
?
from xsd2json.
I installed it as a global module.
from xsd2json.
What version of SWI-Prolog are you using? (simply call swipl --version
)
from xsd2json.
SWI-Prolog version 8.0.3 for x64-win64
from xsd2json.
I think the problem here is the Windows OS. Actually, I never tried xsd2json on a Windows machine, but I see several possibilities for issues here. As I don't have a Windows machine at hand, I unfortunately can't provide an ad-hoc solution.
@joncorrin, are you using a Windows machine, too?
from xsd2json.
I finally managed to install it on my ancient Mac, but not as a global module. Running with debug-info gives me a json file with this content (but nothing in the terminal):
#xsd2json
1.12.16
#SWI-Prolog
SWI-Prolog version 7.6.4 for x86_64-darwin15.6.0
#npm
6.14.5
#node
v12.18.1
Tracing option seems to work, it gives me a huge amount of output in the Terminal. I didn't have the time to check this, but last line is:
ERROR: -g main: Domain error: 'chr_port' expected, found 'none'
This may give you a hint?
from xsd2json.
Related Issues (20)
- An in-range update of commander is breaking the build 🚨 HOT 2
- stack_limit HOT 5
- An in-range update of tap is breaking the build 🚨 HOT 2
- "Please run npm first" as CLI output HOT 3
- An in-range update of tap is breaking the build 🚨 HOT 2
- Size of file being used HOT 2
- Error: spawn swipl ENOENT HOT 2
- An in-range update of standard is breaking the build 🚨 HOT 2
- xsd2json produces empty output or hangs HOT 5
- Error Running xsd2json - SyntaxError: missing ) after argument list HOT 1
- Migrate to latest draft of JSON Schema
- Error when attempting to use xsd2json HOT 3
- Version 10 of node.js has been released HOT 1
- Only got empty object result HOT 2
- Unable to use either the cli or programatically on MacOS HOT 3
- Referenced xsd files to be on corresponding jsonschema files
- ddex standard convertion not working HOT 1
- An in-range update of tap is breaking the build 🚨 HOT 2
- An in-range update of ajv is breaking the build 🚨 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xsd2json.