| Summary: | [acceleo] show line numbers of current position in template file | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] Acceleo | Reporter: | Simon harrer <simon.harrer> | ||||
| Component: | Core | Assignee: | Project Inbox <acceleo-inbox> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | laurent.goubet | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Simon harrer
Hi Simon, We already provide stack traces relative to the Acceleo templates. Did you stumble on an exception were we do not? Could you elaborate on the type of error for which we should provide more informative stack traces? Created attachment 179367 [details] Exception log Exception log which shows that no line number is shown during execution. However, this looks like it is a duplication of bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=290532 Simon, The exception itself is a duplicate ... but what you want isn't. We provide "custom" exceptions with template-relative stack traces when the issue is "expected" : an Acceleo "for" loop with nothing to iterate over, an Acceleo "if" with a condition which is not a boolean ... Yet when something unexpected comes up (such as a NullPointerException), we simply log the exception as it is without altering its stack trace to make it more "user-friendly". This is an enhancement that could be made rather easily, I believe it will show up in the Indigo M3 (3.1.0M3) build due the ninth of November. From 3.1.0M5 onward, RuntimeExceptions halting the evaluation of Acceleo modules are wrapped in custom exceptions providing both the "Acceleo specific" trace and the "Standard Java" trace. |