Giter Club home page Giter Club logo

Comments (3)

jdickey avatar jdickey commented on July 29, 2024

I think I had this solved a while ago and forgot to close the issue. Sorry about that.

from fortitude.

ageweke avatar ageweke commented on July 29, 2024

@jdickey — thanks for reporting this! I know you closed it because you'd solved the issue, but I'm trying to be very careful to clean up any and all Fortitude bugs, and want to make sure I understand what was going on here.

The issue seems to be that something called #freeze on the Class that you passed in (the one assigned to menu_adder). Fortitude does lazy initialization of some data it needs on widget classes — in this case, a Hash of the class's needs variables — and stores it as an @ variable on the Class. If the Class is frozen, that blows up.

Did you ever figure out why and how that class was frozen? If it's Fortitude, or even if it's a very common framework that #freezes view classes, I'd be interested in seeing if I can work around it somehow…

Thanks!
Andrew

from fortitude.

ageweke avatar ageweke commented on July 29, 2024

I'm going to close this — I haven't seen this elsewhere, and calling #freeze on a Class is both an unusual thing to do and, in a general sense, not really safe: many libraries may depend on modifying a Class at runtime. (This is Ruby, not Java. ;) )

If you run into this again or know what caused this, and it’s something standard (or, god forbid, Fortitude itself) rather than an edge case, by all means, let me know, and I’ll fix right away!

from fortitude.

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.