[Swift-user] error in capitalise.swift when following tutorial on Mac
Andrew Shewmaker
agshew at gmail.com
Tue Jul 2 10:28:05 CDT 2013
Thanks Yadu, that fixed it.
On Mon, Jul 1, 2013 at 6:49 PM, Yadu Nand <yadudoc1729 at gmail.com> wrote:
> Hi Andrew,
>
> Thanks for reporting this. We have a intermediate fix for the bug.
>
> If you could please copy the following file :
> http://ci.uchicago.edu/~wilde/_swiftwrap to the libexec folder in the
> 0.94 release folder, the bug should be fixed.
>
> This is a Mac only bug which which uses an app with stdin. Please let
> us know that if that works for you, or if you need any help.
>
> Thanks,
> Yadu
>
> On Mon, Jul 1, 2013 at 4:35 PM, Michael Wilde <wilde at mcs.anl.gov> wrote:
>> 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
>> _______________________________________________
>> Swift-user mailing list
>> Swift-user at ci.uchicago.edu
>> https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user
>
>
>
> --
> Yadu Nand B
--
Andrew Shewmaker
More information about the Swift-user
mailing list