Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 0.4
-
Fix Version/s: 1.2-M3
-
Component/s: None
-
Labels:None
Description
Something like this should be done:
def newTrace = []
traceText.tokenize('\n').each() { if (it.contains('.groovy:')) newTrace << it }
We could make more smarts there, use regex to pick out groovy source files and artifacts (which may not end in .groovy I noticed) and show either a list without any non-project files in, i.e. even exclude scripts/*.groovy etc... or show the full groovy only trace.
We could then, in dev mode, hyperlink to views to the source code files highlighting the error lines.
This has been implemented by modifying the StackTrace elements in the exceptions themselves. This is because there is no other way to stop normal logging dumping out the full trace.