eXist-db / AtomicWiki

A wiki based on eXist-db which stores data as Atom feeds
GNU Lesser General Public License v2.1
15 stars 8 forks source link

markdown error on startup #57

Closed duncdrum closed 6 years ago

duncdrum commented 6 years ago

What is the Problem:

Accessing the wiki (or any article) results in:

err:XPTY0004 Expected exactly one item for the function to be called, got 0. Expression: $config?paragraph [at line 285, column 20, source: /Users/halalpha/Library/Application Support/org.exist/expathrepo/markdown-0.6/content/markdown.xql]
In function:
    markdown:paragraph(xs:string, map) [450:34:/Users/halalpha/Library/Application Support/org.exist/expathrepo/markdown-0.6/content/markdown.xql]
    markdown:handle-block(xs:string, function*, map) [454:13:/Users/halalpha/Library/Application Support/org.exist/expathrepo/markdown-0.6/content/markdown.xql]
    markdown:handle-block(xs:string, function*, map) [461:9:/Users/halalpha/Library/Application Support/org.exist/expathrepo/markdown-0.6/content/markdown.xql]
    markdown:parse-blocks(xs:string*, map) [138:30:/Users/halalpha/Library/Application Support/org.exist/expathrepo/markdown-0.6/content/markdown.xql]
    markdown:parse(xs:string?, map+) [100:40:/Users/halalpha/Library/Application Support/org.exist/expathrepo/markdown-0.6/content/markdown.xql]
    atomic:get-content(element()?, xs:boolean) [312:25:/db/apps/wiki/modules/atomic.xql]
    app:content(node(), map) [217:18:/db/apps/wiki/modules/app.xql]
    templates:call-with-args(function, function*, element(), map) [208:13:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql]
    templates:process-output(element(), map, item()*, element()) [205:9:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql]
    templates:call-by-introspection(element(), map, map, function) [187:28:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql]
    templates:call(item(), element(), map) [143:37:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql]
    templates:process(node()*, map) [146:81:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql]
    templates:process(node()*, map) [82:21:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql]
    app:entries(node(), map, xs:string?, xs:string?, xs:string?, xs:int) [225:18:/db/apps/wiki/modules/app.xql]
    templates:call-with-args(function, function*, element(), map) [208:13:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql]
    templates:process-output(element(), map, item()*, element()) [205:9:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql]
    templates:call-by-introspection(element(), map, map, function) [187:28:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql]
    templates:call(item(), element(), map) [143:37:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql]
    templates:process(node()*, map) [280:13:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql]
    templates:process(node()*, map) [146:81:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql]
    templates:process(node()*, map) [146:81:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql]
    templates:process(node()*, map) [146:81:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql]
    templates:process(node()*, map) [146:81:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql]
    templates:process(node()*, map) [146:81:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql]
    templates:process(node()*, map) [146:81:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql]
    templates:process(node()*, map) [465:17:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql]
    templates:process-output(element(), map, item()*) [273:9:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql]
    templates:process-output(element(), map, item()*, element()) [205:9:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql]
    templates:call-by-introspection(element(), map, map, function) [187:28:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql]
    templates:call(item(), element(), map) [135:36:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql]
    templates:process(node()*, map) [131:51:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql]
    templates:process(node()*, map) [88:9:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql]
    templates:apply(node()+, function, map?, map?) [31:5:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql]

What Did I expect

A working AtomicWIki

Sys

eXist 3.6.1 Java8 markdown 0.6. AtomicWiki 0.8

adamretter commented 6 years ago

This is fixed by https://github.com/wolfgangmm/AtomicWiki/commit/601719d71523d1dfdaf929e2d49e8a6ae5d46d13

adamretter commented 6 years ago

@wolfgangmm this should be closed now.

duncdrum commented 6 years ago

Indeed