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

converter takes 100% and don't finish #104

Open
quarkmarino opened this issue Jan 26, 2020 · 4 comments
Open

converter takes 100% and don't finish #104

quarkmarino opened this issue Jan 26, 2020 · 4 comments

Comments

@quarkmarino
Copy link

quarkmarino commented Jan 26, 2020

Hey, thank you for the package, however, I'm trying to convert this xsd http://www.sat.gob.mx/sitio_internet/cfd/3/cfdv33.xsd into classes, but the converter just sits there and takes 100%, no respond or converting finished, not even errors, nothing

I've already tested it with #29 example and it worked, immediately created the folders and the classes, but I'm having no luck with my .xsd

this is my config.yml

xsd2php:
  namespaces:
    'http://www.sat.gob.mx/cfd/3': 'App\Cfdi'
    'http://www.sat.gob.mx/sitio_internet/cfd/catalogos': 'App\Catalogos'
    'http://www.sat.gob.mx/sitio_internet/cfd/tipoDatos/tdCFDI': 'App\TdCFDI'
  destinations_php:
    'App\Cfdi': app/cfd
    'App\Catalogos': app/catalogos
    'App\TdCFDI': app/td_CFDI
  destinations_jms:
    'App\Cfdi': app/cfd/metadata
    'App\Catalogos': app/catalogos/metadata
    'App\TdCFDI': app/td_CFDI/metadata
  known_locations: 
   "http://www.sat.gob.mx/sitio_internet/cfd/catalogos/catCFDI.xsd": assets/catCFDI.xsd
   "http://www.sat.gob.mx/sitio_internet/cfd/tipoDatos/tdCFDI/tdCFDI.xsd": assets/tdCFDI.xsd

my folder structure

  • xsd2php/
    • assets/
      • config.yml
      • cfdv33.xsd
    • composer.json
    • vendor/
      • etc...

and my command

xsd2php $ vendor/bin/xsd2php convert assets/config.yml assets/cfdv33.xsd

I'll appreciate a lot if you could point me what im doing wrong.

Thank you.

@goetas
Copy link
Member

goetas commented Jan 26, 2020

I guess that the xsd-reader is going into recursion somewhere...

@quarkmarino
Copy link
Author

@goetas Any ideas of how could I fix it?

@quarkmarino
Copy link
Author

Just checking if someone has any kind of fix to this problem already.

Thank you in advance.

@quarkmarino
Copy link
Author

quarkmarino commented Mar 16, 2022

@goetas I'm retaking my old project, you think you can help me out with this one? i'm still having the exact same issue I installed the newest version

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