problems with rake: “rake aborted! invalid byte sequence in US-ASCII” resp. “rake aborted! invalid byte sequence in UTF-8”

Depending on what rake I call I keep getting these messages:

rake aborted!
invalid byte sequence in US-ASCII

resp.

rake aborted!
invalid byte sequence in UTF-8

I finally did an “ls -l” on my home directory, and I found a file with a weird name, created rather recently, with zero content. I removed that file, started rake again, and the problem was gone.

WTF does rake stumble upon files living in the neighbourhood of Rakefile? Well, it does. Maybe some search engine lead you here. Now you know, what to do.


Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.