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

Transpilation does not work with semi-complex YAML files #15

Open
JJ opened this issue Dec 6, 2020 · 0 comments
Open

Transpilation does not work with semi-complex YAML files #15

JJ opened this issue Dec 6, 2020 · 0 comments

Comments

@JJ
Copy link

JJ commented Dec 6, 2020

Describe the bug

As soon as the yaml file is a bit complex, it breaks down using transpiled files with an "Unknown Ussage" message. The problem is that it includes both types of quotes, and there's no way to further quote it, it simply breaks. This file, for instance:

---
entidad:
  - src/bankaccount/model.rs
  - src/bankcard/model.rs
  - src/bankfund/model.rs
  - src/controller/model.rs
  - src/paymentgroup/model.rs
  - src/savinggroup/model.rs
  - src/user/model.rs
  - src/utils/model.rs

test:
  - src/bankaccount/test_galvanic.rs
  - src/bankcard/test_galvanic.rs
  - src/bankfund/test.rs
  - src/controller/test.rs
  - src/paymentgroup/test.rs
  - src/savinggroup/test.rs
  - src/user/test_galvanic.rs
  - src/utils/test_galvanic.rs

lenguaje: rust 

fichero_tareas:
  - make.toml

Will create this transpiled file:

entidad.[0]="src/bankaccount/model.rs"
entidad.[1]="src/bankcard/model.rs"
entidad.[2]="src/bankfund/model.rs"
entidad.[3]="src/controller/model.rs"
entidad.[4]="src/paymentgroup/model.rs"
entidad.[5]="src/savinggroup/model.rs"
entidad.[6]="src/user/model.rs"
entidad.[7]="src/utils/model.rs"
test.[0]="src/bankaccount/test_galvanic.rs"
test.[1]="src/bankcard/test_galvanic.rs"
test.[2]="src/bankfund/test.rs"
test.[3]="src/controller/test.rs"
test.[4]="src/paymentgroup/test.rs"
test.[5]="src/savinggroup/test.rs"
test.[6]="src/user/test_galvanic.rs"
test.[7]="src/utils/test_galvanic.rs"
lenguaje="rust"
fichero_tareas.[0]="make.toml"

Which, when expanded, will result in something like:

ysh -T 'entidad.[0]="src/bankaccount/model.rs"' 'entidad.[1]="src/bankcard/model.rs"' 'entidad.[2]="src/bankfund/model.rs"' 'entidad.[3]="src/controller/model.rs"' 'entidad.[4]="src/paymentgroup/model.rs"' 'entidad.[5]="src/savinggroup/model.rs"' 'entidad.[6]="src/user/model.rs"' 'entidad.[7]="src/utils/model.rs"' 'test.[0]="src/bankaccount/test_galvanic.rs"' 'test.[1]="src/bankcard/test_galvanic.rs"' 'test.[2]="src/bankfund/test.rs"' 'test.[3]="src/controller/test.rs"' 'test.[4]="src/paymentgroup/test.rs"' 'test.[5]="src/savinggroup/test.rs"' 'test.[6]="src/user/test_galvanic.rs"' 'test.[7]="src/utils/test_galvanic.rs"' 'lenguaje="rust' '"' 'fichero_tareas.[0]="make.toml"' -q lenguaje 
Unknown Ussage!

With the resulting error. I've tried to escape it usint the @q quote, but it still does not work.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

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

1 participant