[Swift-user] error in capitalise.swift when following tutorial on Mac

Michael Wilde wilde at mcs.anl.gov
Mon Jul 1 16:35:53 CDT 2013


Andrew, I suspect (but am not yet sure) that you've discovered a bug in Swift argument passing.

A member of the team is looking into this.  Thanks for the report.

- Mike

----- Original Message -----
> From: "Andrew Shewmaker" <agshew at gmail.com>
> To: swift-user at ci.uchicago.edu
> Sent: Monday, July 1, 2013 4:23:33 PM
> Subject: [Swift-user] error in capitalise.swift when following tutorial on	Mac
> 
> Hi,
> 
> I like the look of swift, but I've run into an issue as I'm learning
> about it.
> I'm obviously doing something wrong, but I can't seem to see it. I've
> attached my version of capitalise.swift and tc.data and some files
> generated
> by the execution. Any help would be appreciated.
> 
> I've been able to run a few of the example swift programs
> on my Mac (latest version), but when I try capitilise.swift, I get:
> 
>     stderr.txt:
> /var/tmp/capitalise-20130701-1448-bcjykob9/shared/_swiftwrap: line
> 507: : command not found
>     stdout.txt:
> Caused by:
> Application /usr/bin/tr failed with an exit code of 127
> capitalise, capitalise.swift, line 15
> 
> 
> I did add tr to the tc.data file, and tr works when run by hand.
> With verbosity, I see:
> 
> TASK_DEFINITION: Task(type=JOB_SUBMISSION,
> identity=urn:0-1-1-1372713225973) is /bin/bash shared/_swiftwrap
> tr-btzz0qbl -jobdir b -scratch  -e /usr/bin/tr -out capitalise.2.txt
> -err stderr.txt -i capitalise.1.txt -d  -if capitalise.1.txt -of
> capitalise.2.txt -k  -cdmfile  -status files -a [a-z] [A-Z]
> Submit: in: /var/tmp/capitalise-20130701-1513-3sldolzb command:
> /bin/bash
> /var/tmp/capitalise-20130701-1513-3sldolzb/shared/_swiftwrap
> tr-btzz0qbl -jobdir b -scratch  -e /usr/bin/tr -out capitalise.2.txt
> -err stderr.txt -i capitalise.1.txt -d  -if capitalise.1.txt -of
> capitalise.2.txt -k  -cdmfile  -status files -a [a-z] [A-Z]
> 
> jobs queued: 0
> jobs queued: 0
> FAILURE jobid=tr-btzz0qbl - Failure file found
> jobs queued: 0
> jobs queued: 0
> jobs queued: 0
> jobs queued: 0
> NO_STATUS_FILE jobid=tr-btzz0qbl - Error file missing
> jobs queued: 0
> jobs queued: 0
> jobs queued: 0
> jobs queued: 0
> jobs queued: 0
> END_FAILURE thread=0-1 tr=tr
> Execution failed:
> Exception in tr:
>     Arguments: [[a-z], [A-Z]]
>     Host: localhost
>     Directory: capitalise-20130701-1513-3sldolzb/jobs/b/tr-btzz0qbl
>     stderr.txt:
> /var/tmp/capitalise-20130701-1513-3sldolzb/shared/_swiftwrap: line
> 507: : command not found
>     stdout.txt:
> Caused by:
> Application /usr/bin/tr failed with an exit code of 127
> capitalise, capitalise.swift, line 15
> Detailed exception:
> Exception in tr:
>     Arguments: [[a-z], [A-Z]]
>     Host: localhost
>     Directory: capitalise-20130701-1513-3sldolzb/jobs/b/tr-btzz0qbl
>     stderr.txt:
> /var/tmp/capitalise-20130701-1513-3sldolzb/shared/_swiftwrap: line
> 507: : command not found
>     stdout.txt:
> Caused by: Application /usr/bin/tr failed with an exit code of 127
> 
> Thanks,
> 
> Andrew Shewmaker
> 
> _______________________________________________
> Swift-user mailing list
> Swift-user at ci.uchicago.edu
> https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user



More information about the Swift-user mailing list