Errors do not indicate position in macro-templates #87

Closed
wichert opened this Issue Jan 10, 2012 · 2 comments

Projects

None yet

2 participants

Contributor
wichert commented Jan 10, 2012

I have a template which uses another template which defines a bunch of METAL macros. When there is an error in one of those macros Chameleon raises an exception which provides the position of the calling template, but does not indicate on what position in the macro-template the error occurs.

ExpressionError: unexpected EOF while parsing

 - String:   "'checked' if option[2] None"
 - Filename: templates/snippets.pt

 - Expression: "snippets['text']"
 - Filename:  templates/settings.pt
 - Location:   (12:62)

 - Source:     ... 'firstname'" use-macro="snippets['text']"/>

It would be helpful if there was Location-data for the snippets.pt error.

Owner
malthe commented Oct 11, 2012

Is this still an issue? I forget if there's been an improvement here.

Owner
malthe commented Dec 6, 2016

Please re-open with a minimal example.

@malthe malthe closed this Dec 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment