Git Product home page Git Product logo

Comments (6)

ydkn avatar ydkn commented on May 24, 2024 1

@doits, @tenda89
The undefined method `namespace' sound like capistrano is not loaded when capistrano-rails-console is loaded an therefore the namespace DSL method is not present.
That said, I just realised the behaviour when requiring the gem has changed and the Readme is missing the "require: false" that should be included when referencing the gem in the Gemfile.

Does your entry in the Gemfile look like this?

gem 'capistrano-rails-console', require: false

If that doesn't help please try adding the following right before requiring capistrano-rails-console:

require 'capistrano/setup'

@alepore
Please also try the things described above.

from capistrano-rails-console.

ydkn avatar ydkn commented on May 24, 2024 1

I've released a new version that also works (again) if there is no require: false in the Gemfile.

from capistrano-rails-console.

fabio-padovani89 avatar fabio-padovani89 commented on May 24, 2024

Same problem for me

from capistrano-rails-console.

alepore avatar alepore commented on May 24, 2024

i get
.rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler/runtime.rb:80:in rescue in block (2 levels) in require': There was an error while trying to load the gem 'capistrano-rails-console'. (Bundler::GemRequireError)

from capistrano-rails-console.

doits avatar doits commented on May 24, 2024

@ydkn require: false in Gemfile fixed it, thanks

from capistrano-rails-console.

ydkn avatar ydkn commented on May 24, 2024

Great thanks for the quick feedback @doits .
I'm going to revert my unintentional change that affects the requiring of the gem anyway so that it will not break if anyone is missing the require: false.

from capistrano-rails-console.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.