Giter Site home page Giter Site logo

Comments (6)

dssjoblom avatar dssjoblom commented on June 18, 2024 1

@tagliala if you are still looking into this, I was now able to consistently reproduce the issue. The test case is too large/confidential to share, but the root cause is that in our app we call Rails.application.routes_reloader.reload! under specific (rare) circumstances. This seems to not work correctly with RouteTranslator.

from route_translator.

tagliala avatar tagliala commented on June 18, 2024

I can provide more details upon request, however, the route and localization files etc. are confidential and also too large to share here. The correct routes are definitely present, as the code works almost always.

Any chance to setup a new rails application with the bare minimum amount of code to try to reproduce this issue?

from route_translator.

dssjoblom avatar dssjoblom commented on June 18, 2024

@tagliala sorry, I haven't been able to consistently reproduce it, but it has happened more than one time now, also outside mailers. FWIW, this issue in the original gem seems related: francesc/rails-translate-routes#35. It is basically the same method, and the error is similar, except in my case I know that the locale is defined.

Is it possible that this is related to Rails auto-reloading in the development environment? I've only seen this problem in development so far.

from route_translator.

tagliala avatar tagliala commented on June 18, 2024

@dssjoblom thanks for the heads-up

francesc/rails-translate-routes#35

Thiere is a reference to before_filter, and before_filter is a known source of thread-related issues

Is it possible that this is related to Rails auto-reloading in the development environment?

Yes, I think it is possible, but I don't know exactly what to do to fix. I may guess something here

ActiveSupport.on_load(:action_controller) do

from route_translator.

tagliala avatar tagliala commented on June 18, 2024

Thanks. This has not been reported by other users, but if you manage to create a reproducible test case, we can check if it can be fixed or it should be listed as a known issue

from route_translator.

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.