Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Rake not auto completing #19

Closed
mrinterweb opened this Issue Oct 21, 2009 · 4 comments

Comments

Projects
None yet
3 participants

Rake is not auto-completing my available rake tasks. The weird part is that the auto-complete works the first time I have opened up a shell, but as soon as I try to auto-complete rake tasks again, it fails.

I have been using oh-my-zsh for about 2 months. I just updated to the latest because I thought that this rake issue might be fixed by now.

Try `stat --help' for more information.
stat: invalid option -- '%'
Try `stat --help' for more information.

_rake_does_task_list_need_generating:5: bad math expression: operand expected at `>='
stat: invalid option -- '%'
Try `stat --help' for more information.
stat: invalid option -- '%'
Try `stat --help' for more information.
_rake_does_task_list_need_generating:5: bad math expression: operand expected at `>='
stat: invalid option -- '%'
Try `stat --help' for more information.
stat: invalid option -- '%'
Try `stat --help' for more information.
_rake_does_task_list_need_generating:5: bad math expression: operand expected at `>='

This happens to me in Linux and OS X.

Owner

robbyrussell commented Nov 8, 2009

Your commit introduced an issue for me on OSX (Leopard).

rake stat: illegal option -- c
usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]
stat: illegal option -- c
usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]

_rake_does_task_list_need_generating:5: bad math expression: operand expected at >=' stat: illegal option -- c usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...] stat: illegal option -- c usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...] _rake_does_task_list_need_generating:5: bad math expression: operand expected at>='
stat: illegal option -- c
usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]
stat: illegal option -- c
usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]
_rake_does_task_list_need_generating:5: bad math expression: operand expected at `>='

Contributor

kremso commented Mar 9, 2010

Here's my solution. The problem is a fundamental difference in the stat command on Linux (or ArchLinux at least) and OSX.

http://github.com/kremso/oh-my-zsh/compare/master...rakecomp

See commit details for more info.

Owner

robbyrussell commented May 7, 2010

This is now baked into Zsh. Try again now?

dgiunta added a commit to dgiunta/oh-my-zsh that referenced this issue Apr 29, 2011

Fixed issue #19 'Rake not auto completing'. The stat command syntax t…
…hat was being used was not correct. Or at least on my machine. See man page for the stat command

dgiunta added a commit to dgiunta/oh-my-zsh that referenced this issue Apr 29, 2011

Revert "Fixed issue #19 'Rake not auto completing'. The stat command …
…syntax that was being used was not correct. Or at least on my machine. See man page for the stat command"

This reverts commit 8390729.

evansj pushed a commit to evansj/oh-my-zsh that referenced this issue Sep 13, 2011

Revert "Fixed issue #19 'Rake not auto completing'. The stat command …
…syntax that was being used was not correct. Or at least on my machine. See man page for the stat command"

This reverts commit 8390729.

sorin-ionescu referenced this issue in sorin-ionescu/prezto Jan 24, 2012

Fixed issue #19 'Rake not auto completing'. The stat command syntax t…
…hat was being used was not correct. Or at least on my machine. See man page for the stat command

sorin-ionescu referenced this issue in sorin-ionescu/prezto Jan 24, 2012

Revert "Fixed issue #19 'Rake not auto completing'. The stat command …
…syntax that was being used was not correct. Or at least on my machine. See man page for the stat command"

This reverts commit 8390729.

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment