Git Product home page Git Product logo

Comments (9)

tian-im avatar tian-im commented on June 17, 2024

Let me double-check if any Class is still stored in Wallaby::Map. Is this issue for envisage?

from wallaby-rails.

ryanb avatar ryanb commented on June 17, 2024

Yeah, this is for Envisage. The develop branch.

from wallaby-rails.

ryanb avatar ryanb commented on June 17, 2024

Does wallaby attempt to load classes based on database tables? This may be the issue if so.

from wallaby-rails.

tian-im avatar tian-im commented on June 17, 2024

Nope, Wallaby only loads the files under eager_load_paths which is the /app folder, it doesn't read the database tables.

Sure, I will take a look.

from wallaby-rails.

tian-im avatar tian-im commented on June 17, 2024

@ryanb I can confirm that this is an issue of closure_tree, not wallaby.

I've tried to taken wallaby out completely from the Gemfile, config/routes.rb, config/initializers/wallaby.rb, and if I made any changes to Objective model and visited GET "/objectives", when Rails reloaded, this warning came up. And if you take a look into the list of constants that Rails maintains by using:

ActiveSupport::Dependencies.autoloaded_constants

You will see that Objective is in the list, but the ObjectiveHierarchy created by closure_tree is not captured by Rails Dependencies. Therefore, on every reload, ObjectiveHierarchy will not be removed by Rails before it gets recreated.

from wallaby-rails.

ryanb avatar ryanb commented on June 17, 2024

@tian-im oops, sorry about that. I tried removing wallaby as well and was not able to duplicate the warning. I'll close this ticket.

Thanks for taking the time to look into this.

from wallaby-rails.

tian-im avatar tian-im commented on June 17, 2024

No worries :)

from wallaby-rails.

ryanb avatar ryanb commented on June 17, 2024

FYI, I posted an issue here on closure_tree: ClosureTree/closure_tree#362

from wallaby-rails.

tian-im avatar tian-im commented on June 17, 2024

👌

from wallaby-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.