Task #46091

Show source file name and position on exceptions during parsing

Added by Christopher Hlubek over 7 years ago. Updated over 7 years ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-03-07
Due date:
% Done:

0%

Estimated time:
Has patch:
No

Description

It would be really helpful to spot errors if the Fluid TemplateParser would show the current source file and line number on errors. Right now there's absolutely no clue in the exception handler where to look for the error.


Related issues

Related to TYPO3.Fluid - Feature #4704: Improve parsing exception messagesNew2009-09-20

Actions
#1

Updated by Bastian Waidelich over 7 years ago

  • Status changed from New to Needs Feedback

Hi Christopher,

I think this is (kind of) a duplicate of #4704
Showing source and line number is not so easy because of the compiled templates - but at least for parsing errors it should be fairly easy (because that happens before the compilation).
Another really simple solution would be to catch ViewHelper exceptions (we already do but rethrow them in dev context) and display them inline. see http://lists.typo3.org/pipermail/flow3-general/2012-December/003172.html

#2

Updated by Christopher Hlubek over 7 years ago

  • Subject changed from Show source file name and position on exceptions to Show source file name and position on exceptions during parsing

Okay, so I would be interested to improve that at least for the parsing then. Runtime exceptions during evaluation is a different story.

Also available in: Atom PDF