Giter Site home page Giter Site logo

web-console gem conflict about logster HOT 4 CLOSED

discourse avatar discourse commented on August 13, 2024
web-console gem conflict

from logster.

Comments (4)

SamSaffron avatar SamSaffron commented on August 13, 2024

Interesting, I do want to get this fixed

On Fri, Jun 12, 2015 at 5:52 AM, Bryce Johnston [email protected]
wrote:

After installing the logster gem, I was getting the following error:

$ rake middleware --trace
** Invoke middleware (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
No such middleware to insert before: ActionDispatch::DebugExceptions
/home/tirith/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/stack.rb:125:in assert_index' /home/tirith/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/stack.rb:88:ininsert'
...

The conflict ended up being with the web-console gem, rails app booted up
fine w/ logster after removing it from the Gemfile. I don't really use
web-console anyway, but figured in-case someone had it in their Gemfile and
ran into the middleware issue, they would see this.

Thanks for this handy tool.


Reply to this email directly or view it on GitHub
#24.

from logster.

jiajiawang avatar jiajiawang commented on August 13, 2024

Had the same problem when using logster together with better_errors.

The reason is that logster will replace ActionDispatch::DebugExceptions with Logster::Middleware::DebugExceptions. And gems like 'better_errors' will try to insert their middlewares after ActionDispatch::DebugExceptions.

To avoid this error, make sure logster is added behind those gems in Gemfile.

Probably it's a good idea to add this notice to the README file.

from logster.

SamSaffron avatar SamSaffron commented on August 13, 2024

Ahh ... I see, can you add a note to the README ?

On Mon, Jun 15, 2015 at 10:39 AM, Jiajia Wang [email protected]
wrote:

Had the same problem when using logster together with better_errors.

The reason is that logster will replace ActionDispatch::DebugExceptions
with Logster::Middleware::DebugExceptions. And gems like 'better_errors'
will try to insert their middlewares after ActionDispatch::DebugExceptions.

To avoid this error, make sure logster is added behind those gems in
Gemfile.

Probably it's a good idea to add this notice to the README file.


Reply to this email directly or view it on GitHub
#24 (comment).

from logster.

jiajiawang avatar jiajiawang commented on August 13, 2024

Sure

from logster.

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.