Giter Club home page Giter Club logo

Comments (7)

nachtigall-83 avatar nachtigall-83 commented on June 24, 2024

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.

fnogatz avatar fnogatz commented on June 24, 2024

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.

nachtigall-83 avatar nachtigall-83 commented on June 24, 2024

I installed it as a global module.

from xsd2json.

fnogatz avatar fnogatz commented on June 24, 2024

What version of SWI-Prolog are you using? (simply call swipl --version)

from xsd2json.

nachtigall-83 avatar nachtigall-83 commented on June 24, 2024

SWI-Prolog version 8.0.3 for x64-win64

from xsd2json.

fnogatz avatar fnogatz commented on June 24, 2024

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.

nachtigall-83 avatar nachtigall-83 commented on June 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.