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

More informative message when dvc.yaml is malformed #6285

Closed
nsorros opened this issue Jul 6, 2021 · 1 comment · Fixed by #6679
Closed

More informative message when dvc.yaml is malformed #6285

nsorros opened this issue Jul 6, 2021 · 1 comment · Fixed by #6679
Labels
A: pipelines Related to the pipelines feature bug Did we break something? p1-important Important, aka current backlog of things to do

Comments

@nsorros
Copy link
Contributor

nsorros commented Jul 6, 2021

I know we are supposed to let dvc run construct the dvc.yaml but I tend to write them manually as they are quite easy to construct. Often though I am receiving slightly difficult to decipher errors about the format. An example is below

stages:
  train:
    cmd:
      - spacy train config.cfg
    deps:
      - config.cfg
    outs:
      models/spacy-model

this throws ERROR: 'dvc.yaml' format error: extra keys not allowed @ data['stages']['train']['cmd']

it is quite difficult to decipher that this is missing a - in outs. not sure why it complains about cmd either. would it be possible to give back feedback closer to the error?

@skshetry skshetry added bug Did we break something? A: pipelines Related to the pipelines feature p1-important Important, aka current backlog of things to do labels Jul 7, 2021
@dberenbaum
Copy link
Collaborator

Related: #5371

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: pipelines Related to the pipelines feature bug Did we break something? p1-important Important, aka current backlog of things to do
Projects
No open projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants