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

Unable to run rake tasks #42

Closed
defvol opened this issue Feb 4, 2013 · 6 comments
Closed

Unable to run rake tasks #42

defvol opened this issue Feb 4, 2013 · 6 comments
Assignees

Comments

@defvol
Copy link

defvol commented Feb 4, 2013

I couldn't run the rake task following the example in the documentation:

$ rake gioco:add_badge[chuckie, 5, terror]       
zsh: bad pattern: gioco:add_badge[chuckie,
@ghost ghost assigned joaomdmoura Feb 4, 2013
@joaomdmoura
Copy link
Owner

Hi @willhekmbot, srry about that I'm actually updating the documentation, what you should do is remove the balnk spaces between the arguments:

$ rake gioco:add_badge[chuckie,5,terror]

@joaomdmoura
Copy link
Owner

@wilhelmbot just let me know if it worked for you. :)

@defvol
Copy link
Author

defvol commented Feb 4, 2013

thanks,

not yet:

$ rake gioco:add_badge[chuckie,5,terror]
zsh: no matches found: gioco:add_badge[chuckie,5,terror]
$ bundle exec rake gioco:add_badge[chuckie,5,terror]
zsh: no matches found: gioco:add_badge[chuckie,5,terror]
$ bundle exec rake gioco:add_badge['chuckie',5,'terror']
zsh: no matches found: gioco:add_badge[chuckie,5,terror]

Looks like it's a zsh issue ohmyzsh/ohmyzsh#433

yet that fix didn't work either

@defvol
Copy link
Author

defvol commented Feb 4, 2013

the fix for the parameters issue is to quote the whole task like rake "gioco:add_badge[chuckie,5,terror]"

http://robots.thoughtbot.com/post/18129303042/how-to-use-arguments-in-a-rake-task

but still can't run the task

$ bundle exec rake "gioco:add_badge[chuckie,5,terror]" --trace
rake aborted!
Don't know how to build task 'gioco:add_badge'
/Users/rod/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib/rake/task_manager.rb:49:in `[]'

@defvol
Copy link
Author

defvol commented Feb 4, 2013

maybe it has something to do with #43 not running properly

@joaomdmoura
Copy link
Owner

@wilhelmbot yeah, I think your assumption is right, the setup have not finished, so the rake task was not generated.

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