Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Error: can't convert nil into String #11

Closed
mybuddymichael opened this Issue · 3 comments

2 participants

@mybuddymichael

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

@netzpirat
Owner

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...

@mybuddymichael

This is my guard.

guard 'coffeescript' do
  watch(%r{^.+\.coffee$})
end
@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.
27abed8
@netzpirat netzpirat closed this in 27abed8
@netzpirat
Owner

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.