Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Error: can't convert nil into String #11

mybuddymichael opened this Issue · 3 comments

2 participants


While my coffeescript compiles just fine with the node.js compiler, guard-coffeescript is throwing "ERROR: can't convert nil into String", without a line number or anything debugging info. I have no idea where to start with this one.


Since JavaScript/CoffeeScript uses null and not nil like Ruby does, I guess it may be a problem on the Ruby side, for example missing or wrong configuration options or wrong watcher configuration (if any). I tried hard to imagine your configuration files, but was not able to get a clear picture...


This is my guard.

guard 'coffeescript' do
@netzpirat netzpirat closed this issue from a commit
@netzpirat Fix compilation when using a simple watch expression. (Closes #11)
Set the output directory to the current working directory when
no `:input` or `:output` option is provided, or the watcher regexp
contains no match group.
@netzpirat netzpirat closed this in 27abed8

The problem was that there is no :input or :output option provided and the watch doesn't contain a match group, which is normally used to support creation of nested output directories.

I changed guard-coffeescript to assume the output is the current working directory when all of the above infos are missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.