Giter Club home page Giter Club logo

Comments (7)

josephmancuso avatar josephmancuso commented on May 21, 2024

Cannot reproduce using the steps you provided. You should not be getting that storage key binding error. that should bind to the container in the StorageProvider. Do you have that provider in your project?

from debugbar.

josephmancuso avatar josephmancuso commented on May 21, 2024

although what does this mean? "Publish the atrifacts for the debug bar into storage - as per the docs here"

from debugbar.

josephmancuso avatar josephmancuso commented on May 21, 2024

Oh i see the issue. The DebugProvider should be the last provider in the PROVIDERS list. You probably have it above the StorageProvider

from debugbar.

circulon avatar circulon commented on May 21, 2024

@josephmancuso

Oh i see the issue. The DebugProvider should be the last provider in the PROVIDERS list. You probably have it above the StorageProvider

Yes the debug bar is the last provider added so thats not the issue.
In M4 there is no StorageProvider at all!
The Kernel uses the FilesystemProvider to setup storage locations.

    def register_storage(self):
        storage = StorageCapsule()
        storage.add_storage_assets(config("filesystem.staticfiles"))
        self.application.bind("storage_capsule", storage)

        self.application.set_response_handler(response_handler)
        self.application.use_storage_path(base_path("storage"))

As you can see there is no storage binding, only the newer storage_capsule

Hence the Publish error

from debugbar.

circulon avatar circulon commented on May 21, 2024

although what does this mean? "Publish the atrifacts for the debug bar into storage - as per the docs here"

Apologies I thought the inference was obvious.
The Readme on this repo notes

Lastly, publish the provider:

$ python craft package:publish debugbar

from debugbar.

josephmancuso avatar josephmancuso commented on May 21, 2024

@circulon I think something else is going on here. Are you sure you didn't remove that provider somehow? The provider is registered on new projects in the config/providers.py file: https://github.com/MasoniteFramework/cookie-cutter/blob/4.0/config/providers.py#L42.

Running that command on a new project gives me this:
Screen Shot 2022-06-19 at 9 34 02 PM

I think the issue is you're just missing that StorageProvider. You should add it to your project

from debugbar.

circulon avatar circulon commented on May 21, 2024

@josephmancuso

I'm sorry there is a StorageProvider which I completely missed.
Apologies.

And yes you were correct in that the debug bar was being loaded prior to the registration of the StorageProvider.

I have a bug in my provider loading which created this Red Herring.

Thanks for the help in getting this working

EDIT: Its working as expected which is very helpful and will make debugging much easier.
Cheers for the help.

from debugbar.

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.