Skip to content

Windows command line issue #23

@martin-honnen

Description

@martin-honnen

I am having problems running a pipeline with the latest release from the Windows command line shells, both command prompt and Powershell, the output without any options is empty, with the option --stacktrace I get a long stacktrace

C:\Users\marti\OneDrive\Documents\XProc3>"C:\Program Files\XMLCalabash\xml-calabash-2.99.11\bin\xml-calabash.bat" hello-xproc.xpl


C:\Users\marti\OneDrive\Documents\XProc3>"C:\Program Files\XMLCalabash\xml-calabash-2.99.11\bin\xml-calabash.bat" --stacktrace hello-xproc.xpl

ERROR err:XD0074
        at com.xmlcalabash.exceptions.XProcException$.dynamicError(XProcException.scala:492)
        at com.xmlcalabash.exceptions.XProcException$.dynamicError(XProcException.scala:496)
        at com.xmlcalabash.exceptions.XProcException$.xdUrifyFailed(XProcException.scala:194)
        at com.xmlcalabash.util.Urify$.urify(Urify.scala:68)
        at com.xmlcalabash.util.Urify$.urify(Urify.scala:40)
        at com.xmlcalabash.util.XdmLocation.<init>(XdmLocation.scala:36)
        at com.xmlcalabash.util.XdmLocation$.from(XdmLocation.scala:19)
        at com.xmlcalabash.model.xxml.XMLStaticContext.<init>(XMLStaticContext.scala:23)
        at com.xmlcalabash.model.xxml.NodeHierarchy.recurse(NodeHierarchy.scala:127)
        at com.xmlcalabash.model.xxml.NodeHierarchy.$anonfun$recurse$3(NodeHierarchy.scala:158)
        at com.xmlcalabash.model.xxml.NodeHierarchy.$anonfun$recurse$3$adapted(NodeHierarchy.scala:156)
        at scala.collection.IterableOnceOps.foreach(IterableOnce.scala:563)
        at scala.collection.IterableOnceOps.foreach$(IterableOnce.scala:561)
        at scala.collection.AbstractIterator.foreach(Iterator.scala:1288)
        at com.xmlcalabash.model.xxml.NodeHierarchy.recurse(NodeHierarchy.scala:156)
        at com.xmlcalabash.model.xxml.NodeHierarchy.$anonfun$recurse$3(NodeHierarchy.scala:158)
        at com.xmlcalabash.model.xxml.NodeHierarchy.$anonfun$recurse$3$adapted(NodeHierarchy.scala:156)
        at scala.collection.IterableOnceOps.foreach(IterableOnce.scala:563)
        at scala.collection.IterableOnceOps.foreach$(IterableOnce.scala:561)
        at scala.collection.AbstractIterator.foreach(Iterator.scala:1288)
        at com.xmlcalabash.model.xxml.NodeHierarchy.recurse(NodeHierarchy.scala:156)
        at com.xmlcalabash.model.xxml.NodeHierarchy.<init>(NodeHierarchy.scala:75)
        at com.xmlcalabash.model.xxml.NodeHierarchy$.newInstance(NodeHierarchy.scala:24)
        at com.xmlcalabash.model.xxml.XParser.load(XParser.scala:114)
        at com.xmlcalabash.model.xxml.XParser.loadLibrary(XParser.scala:73)
        at com.xmlcalabash.model.xxml.XParser.<init>(XParser.scala:39)
        at com.xmlcalabash.XMLCalabash.configure(XMLCalabash.scala:293)
        at com.xmlcalabash.drivers.Main$.runPipeline(Main.scala:61)
        at com.xmlcalabash.drivers.Main$.delayedEndpoint$com$xmlcalabash$drivers$Main$1(Main.scala:19)
        at com.xmlcalabash.drivers.Main$delayedInit$body.apply(Main.scala:12)
        at scala.Function0.apply$mcV$sp(Function0.scala:39)
        at scala.Function0.apply$mcV$sp$(Function0.scala:39)
        at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17)
        at scala.App.$anonfun$main$1(App.scala:76)
        at scala.App.$anonfun$main$1$adapted(App.scala:76)
        at scala.collection.IterableOnceOps.foreach(IterableOnce.scala:563)
        at scala.collection.IterableOnceOps.foreach$(IterableOnce.scala:561)
        at scala.collection.AbstractIterable.foreach(Iterable.scala:919)
        at scala.App.main(App.scala:76)
        at scala.App.main$(App.scala:74)
        at com.xmlcalabash.drivers.Main$.main(Main.scala:12)
        at com.xmlcalabash.drivers.Main.main(Main.scala)

The pipeline is taken from Erik's book:

<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
 <p:output port="result" primary="true" sequence="false"/>
 <p:identity>
 <p:with-input>
 <hello-xproc timestamp="{current-dateTime()}"/>
 </p:with-input>
 </p:identity>
</p:declare-step>

but I didn't have more than an empty output with my own pipelines, I guess now that is know the --stacktrace option I can check whether all of them failed with that or a similar stacktrace.

So the only way so far on Windows I have managed to run the latest release is using the Windows Linux Subsystem, that way it looks like the command line works and a pipeline is executed and the output is shown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions