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

Having trouble in running { nanoc --version} pls help. #452

Closed
NandiniGoel opened this issue Jun 17, 2014 · 7 comments
Closed

Having trouble in running { nanoc --version} pls help. #452

NandiniGoel opened this issue Jun 17, 2014 · 7 comments

Comments

@NandiniGoel
Copy link

error shown while running nanoc --version although updated gem shows nanoc 3.7.1

please guide what path to be included.
regards

@bobthecow
Copy link
Member

What error are you seeing?

@NandiniGoel
Copy link
Author

Dear Sir
The following below mentioned are the error found after running (nanoc --version) command, please guide the solution.
regards

=================================================
C:\Sites>nanoc --version
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/nanoc-3.7.1/bin/nanoc:9:in
`rescue in <top (required)>': uninitialized constant Bundler::GemfileNotFound (N
ameError)
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/nanoc-3.7.1/bi
n/nanoc:7:in `<top (required)>'
        from C:/RailsInstaller/Ruby1.9.3/bin/nanoc:23:in `load'
        from C:/RailsInstaller/Ruby1.9.3/bin/nanoc:23:in `<main>'
============================================================

@denisdefreyne
Copy link
Member

This appears to be a problem with the fix in #449: Bundler::GemfileNotFound is not necessarily defined (it won’t be if Bundler is not installed).

Thanks for reporting. Will fix!

@jbonhag
Copy link

jbonhag commented Jul 8, 2014

I've got Bundler 1.6.3 installed, and I get the same error message (using Ruby 2.1.2 through ruby-install/chruby):

$ nanoc create-site ok
/home/jeff/.gem/ruby/2.1.2/gems/nanoc-3.7.1/bin/nanoc:9:in `rescue in <top (required)>': uninitialized constant Bundler::GemfileNotFound (NameError)
        from /home/jeff/.gem/ruby/2.1.2/gems/nanoc-3.7.1/bin/nanoc:7:in `<top (required)>'
        from /home/jeff/.gem/ruby/2.1.2/bin/nanoc:23:in `load'
        from /home/jeff/.gem/ruby/2.1.2/bin/nanoc:23:in `<main>'

I can get around the error by creating a minimal Gemfile:

source 'https://rubygems.org'
gem 'nanoc'
gem 'kramdown'
$ nanoc create-site ok
      create  nanoc.yaml
      create  Rules
      create  content/index.html
      create  content/stylesheet.css
      create  layouts/default.html
Created a blank nanoc site at 'ok'. Enjoy!

@denisdefreyne
Copy link
Member

Will release a fix for this shortly. Sorry for the delay!

@pengisgood
Copy link

@ddfreyne I also got this error with nanoc 3.7.1. :(

[error] /home/travis/.rvm/gems/ruby-1.9.3-p547/gems/nanoc-3.7.1/bin/nanoc:9:in rescue in <top (required)>': uninitialized constant Bundler::GemfileNotFound (NameError) [error] from /home/travis/.rvm/gems/ruby-1.9.3-p547/gems/nanoc-3.7.1/bin/nanoc:7:in<top (required)>'
[error] from /home/travis/.rvm/gems/ruby-1.9.3-p547/bin/nanoc:23:in load' [error] from /home/travis/.rvm/gems/ruby-1.9.3-p547/bin/nanoc:23:in

'
[error] from /home/travis/.rvm/gems/ruby-1.9.3-p547/bin/ruby_executable_hooks:15:in eval' [error] from /home/travis/.rvm/gems/ruby-1.9.3-p547/bin/ruby_executable_hooks:15:in'

@denisdefreyne
Copy link
Member

This is fixed by #464 and will be released in nanoc 3.7.2 soon.

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

5 participants