Git Product home page Git Product logo

Comments (6)

Mumfrey avatar Mumfrey commented on June 14, 2024

This should be fixed by the registry overhaul I'm working on.

from sponge.

bloodmc avatar bloodmc commented on June 14, 2024

@gratimax is this still an issue?

from sponge.

maxov avatar maxov commented on June 14, 2024

Yes, there's been no fix (no registry overhaul, etc.) yet

from sponge.

gabizou avatar gabizou commented on June 14, 2024

Having experimented with the monstrous #249 Registry PR, I'm going to leave this image to give people an understanding of static class initializers:

static

The issue is that plugin's main classes are being loaded far too early for any registration to take place. So early that the registry hasn't been initialized yet.

One option that @Mumfrey mentioned to me this past week was using a transformer to handle some super early registration (some things that CAN be registered as early as class loading), but it would be a "phase 2" type of thing.

from sponge.

simon816 avatar simon816 commented on June 14, 2024

Could have an early hook maybe in the coremod or as soon as the sponge mod is constructed for things like text that aren't dependent on any particular load order

from sponge.

gabizou avatar gabizou commented on June 14, 2024

Ok, so did further testing, I can get texts to be usable as soon as class loading of plugins.

https://gist.github.com/gabizou/1d8d9440802c9e33982c#file-gistfile1-txt-L124
Relevant log based on the registry changes.

from sponge.

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.