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

Unusable without rails #26

Closed
meatballhat opened this issue Mar 16, 2014 · 2 comments
Closed

Unusable without rails #26

meatballhat opened this issue Mar 16, 2014 · 2 comments

Comments

@meatballhat
Copy link

I happened to be using a pretty vanilla rbenv version and did this:

gem install katip
rbenv rehash
katip

which resulted in this explosion:

/Users/d.buch/.rbenv/versions/2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- rails (LoadError)
    from /Users/d.buch/.rbenv/versions/2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Users/d.buch/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/katip-1.4.0/lib/katip/railtie.rb:2:in `<top (required)>'
    from /Users/d.buch/.rbenv/versions/2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Users/d.buch/.rbenv/versions/2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Users/d.buch/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/katip-1.4.0/lib/katip.rb:3:in `<top (required)>'
    from /Users/d.buch/.rbenv/versions/2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Users/d.buch/.rbenv/versions/2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Users/d.buch/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/katip-1.4.0/bin/katip:5:in `<top (required)>'
    from /Users/d.buch/.rbenv/versions/2.1.1/bin/katip:23:in `load'
    from /Users/d.buch/.rbenv/versions/2.1.1/bin/katip:23:in `<main>'

I suspect the fix is simply to lazy load the railtie, or to require rails integrations to have their own require 'katip/railtie'.

@baygunm
Copy link
Contributor

baygunm commented Mar 17, 2014

Thanks for feedback. We're inspecting this issue.

@baygunm
Copy link
Contributor

baygunm commented Apr 14, 2014

Fixed by #27

@baygunm baygunm closed this as completed Apr 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants