https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=1095 Summary: args in function fail in trunk Product: Swift Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: General AssignedTo: [email protected] ReportedBy: [email protected] Here's the contents of args_trunk.swift : func() { string FOO=arg("foo"); string BAR="hello"; tracef("FOO : %s | BAR : %s\n", FOO, BAR); } func(); I run this as : swift args_trunk.swift -foo="helloFOO" and trunk fails with the error : Swift trunk swift-r7073 (swift modified locally) cog-r3787 (cog modified locally) RunID: 20130918-1927-8q9nobac [Error] sites.xml, line 1, col 9: cvc-elt.1: Cannot find the declaration of element 'config'. Progress: time: Wed, 18 Sep 2013 19:27:39 +0000 Execution failed: java.lang.ClassCastException: Invalid type: expected a org.griphyn.vdl.mapping.AbstractDataNode but got a org.globus.cog.karajan.analyzer.InvalidArgChannel swiftscript:arg @ args_trunk, line: 18 Caused by: java.lang.ClassCastException: Invalid type: expected a org.griphyn.vdl.mapping.AbstractDataNode but got a org.globus.cog.karajan.analyzer.InvalidArgChannel at org.griphyn.vdl.karajan.lib.swiftscript.FnArg.function(FnArg.java:63) at org.griphyn.vdl.karajan.lib.SwiftFunction.runBody(SwiftFunction.java:108) at org.globus.cog.karajan.compiled.nodes.InternalFunction.run(InternalFunction.java:154) at org.globus.cog.karajan.compiled.nodes.CompoundNode.runChild(CompoundNode.java:87) at org.globus.cog.karajan.compiled.nodes.InternalFunction.run(InternalFunction.java:147) at org.globus.cog.karajan.compiled.nodes.CompoundNode.runChild(CompoundNode.java:87) at org.globus.cog.karajan.compiled.nodes.Sequential.run(Sequential.java:22) at org.globus.cog.karajan.compiled.nodes.CompoundNode.runChild(CompoundNode.java:87) at org.globus.cog.karajan.compiled.nodes.UParallel$1.run(UParallel.java:68) at k.thr.LWThread.run(LWThread.java:228) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) This same script works fine on 0.94RC3 -- Configure bugmail: https://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.