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

"ceedling new blah" fails when the current dir contains a project.yml file #61

Closed
hmijail opened this issue Apr 15, 2016 · 4 comments
Closed

Comments

@hmijail
Copy link
Contributor

hmijail commented Apr 15, 2016

I think ceedling should fail more gracefully than just "rake aborted! Don't know how to build task 'new' (see --tasks)".

@mvandervoord
Copy link
Member

Good point.

What kinds of things do you feel it should display? A list of commands acceptable commands? Should it attempt to guess what you meant?

@hmijail
Copy link
Contributor Author

hmijail commented Apr 15, 2016

Not sure, I still know too little about the whole workflow with ceedling. For context, my use case was probably absurd (I did "ceedling new blah" inside of a dir created by a previous "ceedling new"), but this apparent nonsense error sent me chasing my tail for a while. (I had just upgraded the ceedling gem, so I feared that the "ceedling new" command had been somehow removed or botched)

I guess that the root problem here is that now ceedling delegates to rake too soon if project.yml exists, which probably isn't a good idea anyway: if the rakefile did actually contain a "new" target, suddenly ceedling would be acting in an unexpected way. Ceedling should rather filter its own commands before delegating to rake.

On 15 Apr 2016, at 16:49, Mark VanderVoord notifications@github.com wrote:

Good point.

What kinds of things do you feel it should display? A list of commands acceptable commands? Should it attempt to guess what you meant?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub #61 (comment)

@mvandervoord
Copy link
Member

:) I see what happened for you. Thanks! I'll see what I can do to clean this up!

@mvandervoord
Copy link
Member

Ceedling 0.20.3 fixes this by giving a polite error when the new, example, or examples commands are issued.

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