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

nanoc command (rvm) fails to launch with error: `default_gemfile': Could not locate Gemfile (Bundler::GemfileNotFound) #447

Closed
yonkeltron opened this issue Jun 10, 2014 · 8 comments

Comments

@yonkeltron
Copy link

Hey,

Having some trouble here with using the nanoc executable as installed fresh via RVM. Some system details:

$ zsh --version
zsh 5.0.5 (x86_64-apple-darwin13.0.2)
$ rvm --version
rvm 1.25.27 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
$ ruby --version
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]
$ uname -a
Darwin Concurrent-Chickpea.local 13.2.0 Darwin Kernel Version 13.2.0: Thu Apr 17 23:03:13 PDT 2014; root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64

I installed nanoc like so:

$ gem install nanoc
Fetching: nanoc-3.7.0.gem (100%)
Successfully installed nanoc-3.7.0
1 gem installed

However, every time I try to run nanoc including nanoc --version, I get this dreadful error:

$ nanoc
/Users/yonkeltron/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/shared_helpers.rb:24:in `default_gemfile': Could not locate Gemfile (Bundler::GemfileNotFound)
    from /Users/yonkeltron/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler.rb:248:in `default_gemfile'
    from /Users/yonkeltron/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler.rb:192:in `root'
    from /Users/yonkeltron/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler.rb:99:in `bundle_path'
    from /Users/yonkeltron/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler.rb:400:in `configure_gem_home_and_path'
    from /Users/yonkeltron/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler.rb:90:in `configure'
    from /Users/yonkeltron/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler.rb:151:in `definition'
    from /Users/yonkeltron/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler.rb:116:in `setup'
    from /Users/yonkeltron/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler.rb:132:in `require'
    from /Users/yonkeltron/.rvm/gems/ruby-2.1.2/gems/nanoc-3.7.0/bin/nanoc:7:in `<top (required)>'
    from /Users/yonkeltron/.rvm/gems/ruby-2.1.2/bin/nanoc:23:in `load'
    from /Users/yonkeltron/.rvm/gems/ruby-2.1.2/bin/nanoc:23:in `<main>'
    from /Users/yonkeltron/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval'
    from /Users/yonkeltron/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>'

I have been able to reproduce this even with a clean RVM install (after having nuked RVM with rvm implode and then reinstalled stable. Bummer.

Let me know what other info I can provide to help move things along.

@denisdefreyne
Copy link
Member

Hi, thanks for reporting!

bin/nanoc unintentionally requires a Gemfile to be present. This is a regression from 3.6.11. Will fix!

@denisdefreyne
Copy link
Member

You can temporarily use 3.6.11, or, even better, use a Gemfile!

@yonkeltron
Copy link
Author

Yeah, @ddfreyne I can confirm that throwing in a Gemfile with nanoc in it worked. Thanks for getting me over the hump and please let me know when I can test the new version and get this issue closed. I really appreciate the fast response!

👍

@denisdefreyne
Copy link
Member

This is fixed by #449. The 3.7.1 release will follow shortly.

@denisdefreyne
Copy link
Member

3.7.1 is released.

@pitosalas
Copy link

I am still having the problem. Haven't narrowed down yet what's going on.

@denisdefreyne
Copy link
Member

@pitosalas Is the issue you’re experiencing #452, rather than this one?

@pitosalas
Copy link

I uninstalled my ruby and gems (in desperation) and downgraded to Nanoc 3.6.9 to make the problem go away. With 3.6.9 I  still got an error when I didn’t have bundler installed. But when I installed bundler the problem went away. I don’t know but when I read the code for the latest release it looked to me like it would fail ugly if bundler wasn’t even installed. But I have not gone back to try again now that I gave my gem library a root canal. I could try if you need me to.

  • -Pito

From: Denis Defreyne notifications@github.com
Reply: nanoc/nanoc reply@reply.github.com>
Date: July 16, 2014 at 3:37:43 AM
To: nanoc/nanoc nanoc@noreply.github.com>
Cc: Pito Salas pitosalas@gmail.com>
Subject:  Re: [nanoc] nanoc command (rvm) fails to launch with error: `default_gemfile': Could not locate Gemfile (Bundler::GemfileNotFound) (#447)

@pitosalas Is the issue you’re experiencing #452, rather than this one?


Reply to this email directly or view it on GitHub.

@denisdefreyne denisdefreyne removed this from the 3.7.1 milestone Aug 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants