No such file to load -- main
markburns opened this issue · 8 comments
Checkout this repo to see the problem:
https://github.com/markburns/empty-rails-3-project-to-demonstrate-bug-in-churn
git clone git@github.com:markburns/empty-rails-3-project-to-demonstrate-bug-in-churn.git
cd empty-rails-3-project-to-demonstrate-bug-in-churn
rake metrics:all
/Users/mark/.rvm/gems/ruby-1.8.7-p334/gems/churn-0.0.13/bin/churn:2:in `require': no such file to load -- main (LoadError)
from /Users/mark/.rvm/gems/ruby-1.8.7-p334/gems/churn-0.0.13/bin/churn:2
from /Users/mark/.rvm/gems/ruby-1.8.7-p334/bin/churn:19:in `load'
from /Users/mark/.rvm/gems/ruby-1.8.7-p334/bin/churn:19
rake aborted!
undefined method `[]' for false:FalseClass
Tasks: TOP => metrics:all
(See full trace by running task with --trace)
shouldn't this be in the churn gem file?
I thought that too. Think I tried it and couldn't get it to work, so I left it once I found that the above fix works for me. I don't think it's the right thing to do though.
@markburns: By getting "it" to work, do you mean trying to enumerate the dependency in this project's gem file?
Yes, can't remember the details specifically, but I did try to add the dependency and it didn't solve the problem so I used the suggested workaround myself. Not sure of the differences in @oivoodoo's fork.
Sorry I haven't been following this project for awhile. The bundler changes have been merged in, I will clean things up a bit more and get a new version release that plays nicer with all the modern ruby / rails setups.
Glad you found a work around.
awesome, thanks Dan
thanks Dan.