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

Projects
None yet
3 participants
@yonkeltron

yonkeltron commented Jun 10, 2014

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.

@ddfreyne

This comment has been minimized.

Show comment
Hide comment
@ddfreyne

ddfreyne Jun 10, 2014

Member

Hi, thanks for reporting!

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

Member

ddfreyne commented Jun 10, 2014

Hi, thanks for reporting!

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

@ddfreyne ddfreyne added the bug label Jun 10, 2014

@ddfreyne

This comment has been minimized.

Show comment
Hide comment
@ddfreyne

ddfreyne Jun 10, 2014

Member

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

Member

ddfreyne commented Jun 10, 2014

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

@yonkeltron

This comment has been minimized.

Show comment
Hide comment
@yonkeltron

yonkeltron Jun 10, 2014

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!

👍

yonkeltron commented Jun 10, 2014

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!

👍

@ddfreyne

This comment has been minimized.

Show comment
Hide comment
@ddfreyne

ddfreyne Jun 16, 2014

Member

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

Member

ddfreyne commented Jun 16, 2014

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

@ddfreyne ddfreyne closed this Jun 16, 2014

@ddfreyne

This comment has been minimized.

Show comment
Hide comment
@ddfreyne

ddfreyne Jun 16, 2014

Member

3.7.1 is released.

Member

ddfreyne commented Jun 16, 2014

3.7.1 is released.

@pitosalas

This comment has been minimized.

Show comment
Hide comment
@pitosalas

pitosalas Jul 15, 2014

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

pitosalas commented Jul 15, 2014

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

@ddfreyne

This comment has been minimized.

Show comment
Hide comment
@ddfreyne

ddfreyne Jul 16, 2014

Member

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

Member

ddfreyne commented Jul 16, 2014

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

@pitosalas

This comment has been minimized.

Show comment
Hide comment
@pitosalas

pitosalas Jul 16, 2014

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.

pitosalas commented Jul 16, 2014

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.

@ddfreyne ddfreyne 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