Open frapell opened 5 years ago
Maybe related to #259.
Macro use/inclusion swallows exceptions. I traced it a while ago, but didn't make notes. I was able to restore the traceback with some fancy attribute chain walking in that place. Could have been here: https://github.com/malthe/chameleon/blob/da3cc82f12948d43d7c23daf00529c5405392b9a/src/chameleon/compiler.py#L1205
I am testing Plone 5.2 RC1, which brings in Chameleon 3.6, and I am finding the tracebacks for template errors to have very few useful information in order to find what the problem is and fix it...
Here's an example traceback
The only bit useful in there is knowing that the template that blows up is /vagrant/src/test.plone/src/test/plone/browser/example_view.pt...
The actual issue has nothing to do with the master macro and neither it is located at line 6, column 21.
The actual issue is located at line 53
tal:define="items python: [i for i in matches];"
whilematches
being None.I have tried looking around in order to find a way to improve these tracebacks, but I couldn't find anything... Also tried setting
CHAMELEON_DEBUG
to 1 as explained in https://chameleon.readthedocs.io/en/latest/configuration.html#development but didn't improve anything...