pallets-eco / flask-debugtoolbar

A toolbar overlay for debugging Flask applications
https://flask-debugtoolbar.readthedocs.io
BSD 3-Clause "New" or "Revised" License
953 stars 146 forks source link

tojson filter error when upgrading to Jinja2.9 #111

Closed vindarel closed 4 years ago

vindarel commented 7 years ago

Hi, I encountered an error with the debug toolbar when I tried upgrading Jinja to the newest 2.9.

The following pb with the tojson filter is a debug-toolbar bug to me because it doesn't occur when I disable it.

var require = {{ app.extensions['webassets'].requirejs_config | tojson }}; TypeError: do_tojson() takes at least 2 arguments (1 given)

I wonder how the debug toolbar would influence this, but that's my observation. Does that ring a bell ?

I'm on flask-debugtoolbar 0.10.1 and Flask 0.12.

Thanks.

jeffwidman commented 4 years ago

Afraid I cannot reproduce. On the surface, this looks like a webassets bug, not a debugtoolbar bug. Can you try again with the latest versions of flask-debugtoolbar, flask, and jinja and see if it's still happening?

Closing for now since this is an old issue, if it's still happening for you please report here and we can re-open.