score-compose icon indicating copy to clipboard operation
score-compose copied to clipboard

[bug] error message is confusing if score file not included in score-compose generate

Open chris-stephenson opened this issue 9 months ago • 2 comments

Describe the bug The error message when running score-compose generate is misleading. It states:

Error: the project is empty, please provide a score file to generate fro

This is confusing because this only happens the first time your run score-compose generate. The user probably does not know about "projects" or that there is a project missing.

To Reproduce Steps to reproduce the behavior: In a new directory run:

  1. score-compose init
  2. score-compose generate Error message will include:
Error: the project is empty, please provide a score file to generate from

Expected behavior The error should describe more clearly what needs to be done:

Please specify a score file for the first time

Or maybe even better: if there is a file called score.yaml in the current directory - ask if this score file should be used.

chris-stephenson avatar Apr 03 '25 14:04 chris-stephenson

Hi @chris-stephenson can I work on this issue ?

rabelmervin avatar Apr 29 '25 13:04 rabelmervin

Hi @chris-stephenson can I work on this issue ?

Yes! Feel free to pick this one up. Thank you!

chris-stephenson avatar Apr 29 '25 14:04 chris-stephenson