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

Error: can't convert nil into String #11

Closed
mybuddymichael opened this issue Mar 12, 2012 · 3 comments
Closed

Error: can't convert nil into String #11

mybuddymichael opened this issue Mar 12, 2012 · 3 comments

Comments

@mybuddymichael
Copy link

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
Copy link
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
Copy link
Author

This is my guard.

guard 'coffeescript' do
  watch(%r{^.+\.coffee$})
end

@netzpirat
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants