Comments (7)
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.
although what does this mean? "Publish the atrifacts for the debug bar into storage - as per the docs here"
from debugbar.
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.
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.
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.
@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:
I think the issue is you're just missing that StorageProvider. You should add it to your project
from debugbar.
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)
- Data does not show when selecting another request HOT 2
- Make debug provider use the package provider configs
- debug routes should automatically register inside provider class
- Config should be publishable
- Stored Requests get cleared out on
- Stored Requests get cleared out on non-normal requests HOT 1
- Need to store package assets inside package and load them in HOT 2
- Doesn't seem to be working on Inertia routes HOT 1
- Model collection doesn't seem to be working all the time HOT 1
- Name of config file HOT 1
- Clean up names of collectors in tabs
- Missing description in environment collector
- Key registered to debugger should be lowercase
- Should only render in debug mode HOT 2
- Application throws error if enabled debugbar and used query builder HOT 1
- Add table for measures collection HOT 1
- Add `Dumps` tab
- Create a views tab to see information pertaining to the current view
- Fix resizing issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from debugbar.