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

cicero command line model error when running in a windows powershell #408

Closed
DeweyWald opened this issue Sep 3, 2019 · 7 comments
Closed
Labels
Help Wanted 🆘 Type: Bug 🐛 Something isn't working

Comments

@DeweyWald
Copy link

When I run cicero parse or archive I get a model error every time. I upload the same code to Template Studio and if validates and I can create a CTA from template studio.

The error:
cicero archive --template rideshare-driver-requirements-service --archiveFile rideshare-driver-requirements-service
11:05:53 AM - error: Failed to find an asset that extends org.accordproject.cicero.contract.AccordClause in rideshare-driver-requirements-service. The model for the template must contain a single asset that extends org.accordproject.cicero.contract.AccordClause.

Environment
Windows 10
Cicero 0.13.3
Node 11.10.0
CTA file attached in zip file (.cta renamed to .zip)
rideshare-driver-requirements-service (1).zip

@jeromesimeon
Copy link
Member

A few preliminary notes for triage:

  • I was above to test and run parse on the archive on MacOs and template studio without problem. So it is indeed most likely a Windows issue.
  • The error message is also consistent with the model.cto file not being found. It points to a possible issue with Windows file system access.
  • There is at least one other possibly related Windows issue Unable to download cto model files if use relative directory on Windows #207

I don't know if anyone has easy access to a Windows setup (I don't) and would be able to contribute a fix for this? Help would be appreciated!

@jeromesimeon jeromesimeon added Help Wanted 🆘 Type: Bug 🐛 Something isn't working labels Sep 3, 2019
@jeromesimeon
Copy link
Member

@DeweyWald As additional information it might be worth trying out:

  1. place the template in a windows directory without whitespace (e.g., C:\tmp\test)
  2. run Cicero with an explicit template path cicero parse --template C:\tmp\test

@DeweyWald
Copy link
Author

same result

@mttrbrts
Copy link
Sponsor Member

Hi @DeweyWald, we've made an update that fixes this issue. The issue hasn't been released yet, but in the meantime you can test it with

npm i -g @accordproject/cicero-cli@0.13.5-20190920123630

@DeweyWald
Copy link
Author

This is great Matt, thanks, I will try it out.

@jeromesimeon
Copy link
Member

This should now be fixed with Cicero 0.13.5. Could you please confirm?

@DeweyWald
Copy link
Author

Confirmed, works great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help Wanted 🆘 Type: Bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants