ddfreyne/nanoc — Issue #66: Autocompiler issue on Ruby 1.9.3
Author: karpah
Created: 2011-10-13 12:28:06+00:00
State: open

I discovered the Autocompile command when looking at `nanoc -h`, so I tried to run it on my Ruby 1.9.3-rc1 installation and got the following:

```
becky@cobalt:~/Sites/nanoc:master *$ nanoc autocompile

Captain! We’ve been hit!

=== MESSAGE:

LoadError: cannot load such file -- mime/types

Captain! We’ve been hit!

=== MESSAGE:

NoMethodError: undefined method `size' for nil:NilClass

=== COMPILATION STACK:

(empty)

=== BACKTRACE:

0. /home/becky/.rvm/gems/ruby-1.9.3-rc1@nanoc/gems/nanoc3-3.2.2/lib/nanoc3/cli/error_handler.rb:173:in `resolution_for'
1. /home/becky/.rvm/gems/ruby-1.9.3-rc1@nanoc/gems/nanoc3-3.2.2/lib/nanoc3/cli/error_handler.rb:76:in `print_error'
2. /home/becky/.rvm/gems/ruby-1.9.3-rc1@nanoc/gems/nanoc3-3.2.2/lib/nanoc3/cli/error_handler.rb:46:in `rescue in handle_while'
3. /home/becky/.rvm/gems/ruby-1.9.3-rc1@nanoc/gems/nanoc3-3.2.2/lib/nanoc3/cli/error_handler.rb:34:in `handle_while'
4. /home/becky/.rvm/gems/ruby-1.9.3-rc1@nanoc/gems/nanoc3-3.2.2/lib/nanoc3/cli/error_handler.rb:23:in `handle_while'
5. /home/becky/.rvm/gems/ruby-1.9.3-rc1@nanoc/gems/nanoc3-3.2.2/lib/nanoc3/cli/command.rb:50:in `call'
6. /home/becky/.rvm/gems/ruby-1.9.3-rc1@nanoc/gems/nanoc3-3.2.2/lib/nanoc3/cli/command.rb:43:in `call'
7. /home/becky/.rvm/gems/ruby-1.9.3-rc1@nanoc/gems/nanoc3-3.2.2/lib/nanoc3/cli/commands/autocompile.rb:17:in `block in define'
8. /home/becky/.rvm/gems/ruby-1.9.3-rc1@nanoc/gems/cri-2.0.2/lib/cri/command.rb:255:in `call'
9. /home/becky/.rvm/gems/ruby-1.9.3-rc1@nanoc/gems/cri-2.0.2/lib/cri/command.rb:255:in `run'
10. /home/becky/.rvm/gems/ruby-1.9.3-rc1@nanoc/gems/cri-2.0.2/lib/cri/command.rb:272:in `run'
11. /home/becky/.rvm/gems/ruby-1.9.3-rc1@nanoc/gems/nanoc3-3.2.2/lib/nanoc3/cli.rb:40:in `block in run'
12. /home/becky/.rvm/gems/ruby-1.9.3-rc1@nanoc/gems/nanoc3-3.2.2/lib/nanoc3/cli/error_handler.rb:42:in `handle_while'
13. /home/becky/.rvm/gems/ruby-1.9.3-rc1@nanoc/gems/nanoc3-3.2.2/lib/nanoc3/cli/error_handler.rb:23:in `handle_while'
14. /home/becky/.rvm/gems/ruby-1.9.3-rc1@nanoc/gems/nanoc3-3.2.2/lib/nanoc3/cli.rb:37:in `run'
15. /home/becky/.rvm/gems/ruby-1.9.3-rc1@nanoc/gems/nanoc3-3.2.2/bin/nanoc3:12:in `'
16. /home/becky/.rvm/gems/ruby-1.9.3-rc1@nanoc/bin/nanoc3:19:in `load'
17. /home/becky/.rvm/gems/ruby-1.9.3-rc1@nanoc/bin/nanoc3:19:in `

'
```

It asked me to report it so here it is :)