Templating library debugging
Winona Salesky <[email protected]>
| Newsgroups | gmane.text.xml.exist |
|---|---|
| Message-ID | <CAJthYRdqC-Q=QcoBpn=QMkAYFW=rAFqGJmamJaVN3xB7-HLHYw@mail.gmail.com> |
Hi All, Since migrating to the new templating library (v1.1.0 in eXist-db v6.1.0) the error reporting has changed. With the new error reporting I do not have any way to trace back to the function that is causing the issue, it only tells me the templates:load-source function is failing. I used to get the name of my local function that was causing the issue, making it much easier to debug, especially when migrating a large old project. Is there a trick to debugging these sorts of errors, another way to track down the source of the bug? Thanks for the help, -Winona This is the error I get with the new templating library: templates:NotFound No template function found for call templates:load-source (Max arity of 20 has been exceeded in searching for this template function. If needed, adjust $templates:MAX_ARITY in the templates.xql module.) [at line 191, column 85, source: /Users/wsalesky/Library/Application Support/org.exist61/expathrepo/templating-1.1.0/content/templates.xqm] In function: templates:call(item(), element(), map(*)) [145:37:/Users/wsalesky/Library/Application Support/org.exist61/expathrepo/templating-1.1.0/content/templates.xqm] templates:process(node()*, map(*)) [148:81:/Users/wsalesky/Library/Application Support/org.exist61/expathrepo/templating-1.1.0/content/templates.xqm] templates:process(node()*, map(*)) [148:81:/Users/wsalesky/Library/Application Support/org.exist61/expathrepo/templating-1.1.0/content/templates.xqm] templates:process(node()*, map(*)) [148:81:/Users/wsalesky/Library/Application Support/org.exist61/expathrepo/templating-1.1.0/content/templates.xqm] templates:process(node()*, map(*)) [148:81:/Users/wsalesky/Library/Application Support/org.exist61/expathrepo/templating-1.1.0/content/templates.xqm] templates:process(node()*, map(*)) [148:81:/Users/wsalesky/Library/Application Support/org.exist61/expathrepo/templating-1.1.0/content/templates.xqm] templates:process(node()*, map(*)) [435:17:/Users/wsalesky/Library/Application Support/org.exist61/expathrepo/templating-1.1.0/content/templates.xqm] templates:process-output(element(), map(*), item()*) [230:9:/Users/wsalesky/Library/Application Support/org.exist61/expathrepo/templating-1.1.0/content/templates.xqm] templates:process-output(element(), map(*), item()*, element(function)) [211:9:/Users/wsalesky/Library/Application Support/org.exist61/expathrepo/templating-1.1.0/content/templates.xqm] templates:call-by-introspection(element(), map(*), map(*), function(*)) [189:28:/Users/wsalesky/Library/Application Support/org.exist61/expathrepo/templating-1.1.0/content/templates.xqm] templates:call(item(), element(), map(*)) [145:37:/Users/wsalesky/Library/Application Support/org.exist61/expathrepo/templating-1.1.0/content/templates.xqm] templates:process(node()*, map(*)) [133:51:/Users/wsalesky/Library/Application Support/org.exist61/expathrepo/templating-1.1.0/content/templates.xqm] templates:process(node()*, map(*)) [90:9:/Users/wsalesky/Library/Application Support/org.exist61/expathrepo/templating-1.1.0/content/templates.xqm] templates:apply(node()+, function(*), map(*)?, map(*)?) [50:5:/Users/wsalesky/Library/Application Support/org.exist61/expathrepo/templating-1.1.0/content/templates.xqm] _______________________________________________ Exist-open mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/exist-open