Giter VIP home page Giter VIP logo

Comments (11)

sponomarev avatar sponomarev commented on June 18, 2024 1

For all interested, should be fixed in #85

from anycable-rails.

Envek avatar Envek commented on June 18, 2024

I see it too sometimes. It is most probably due to Rails code reloading in dev mode. Haven't investigated yet, but as a workaround you can alway restart RPC process in your process manager (would it be Overmind, Foreman, docker-compose or whatever):

overmind restart cable
docker-compose restart cable

from anycable-rails.

nixme avatar nixme commented on June 18, 2024

Could we keep the issue open until we understand what's wrong with the Executor middleware https://github.com/anycable/anycable-rails/blob/master/lib/anycable/rails/middlewares/executor.rb )?

Or I can create a new issue if the moderators prefer.

from anycable-rails.

palkan avatar palkan commented on June 18, 2024

Could we keep the issue open until we understand what's wrong with the Executor middleware

Agree.

from anycable-rails.

bingjyang avatar bingjyang commented on June 18, 2024

Janky, but worked around this for now by putting ApplicationCable::Connection in an non-autoloaded path.

from anycable-rails.

sponomarev avatar sponomarev commented on June 18, 2024

@bingjyang Can you show the way how you do it? Did you add ApplicationCable::Connection to autoloaded path explicitly before?

from anycable-rails.

sponomarev avatar sponomarev commented on June 18, 2024

I'm concerned because according to the default paths, ApplicationCable::Connection is outside of autoloading lookup.

https://github.com/rails/rails/blob/4aa6c328847bd42776f75befefbcc61cd1ec9f20/railties/lib/rails/engine/configuration.rb#L41-L65

from anycable-rails.

bingjyang avatar bingjyang commented on June 18, 2024

from anycable-rails.

bingjyang avatar bingjyang commented on June 18, 2024

Getting back to this... I suppose we followed the recommendation here and had it in app/channels/ (or maybe rails new auto-created it). Hence, it was being auto-loaded.

from anycable-rails.

bingjyang avatar bingjyang commented on June 18, 2024

Thank you!

from anycable-rails.

palkan avatar palkan commented on June 18, 2024

Closing since #85 has been released in 0.6.3

from anycable-rails.

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.