{"action":"created","issue":{"url":"https://api.github.com/repos/vokal/XcodeAutoBasher/issues/22","repository_url":"https://api.github.com/repos/vokal/XcodeAutoBasher","labels_url":"https://api.github.com/repos/vokal/XcodeAutoBasher/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/vokal/XcodeAutoBasher/issues/22/comments","events_url":"https://api.github.com/repos/vokal/XcodeAutoBasher/issues/22/events","html_url":"https://github.com/vokal/XcodeAutoBasher/issues/22","id":143268764,"number":22,"title":"Plugin crashed on my script","user":{"login":"k06a","id":702124,"avatar_url":"https://avatars.githubusercontent.com/u/702124?v=3","gravatar_id":"","url":"https://api.github.com/users/k06a","html_url":"https://github.com/k06a","followers_url":"https://api.github.com/users/k06a/followers","following_url":"https://api.github.com/users/k06a/following{/other_user}","gists_url":"https://api.github.com/users/k06a/gists{/gist_id}","starred_url":"https://api.github.com/users/k06a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k06a/subscriptions","organizations_url":"https://api.github.com/users/k06a/orgs","repos_url":"https://api.github.com/users/k06a/repos","events_url":"https://api.github.com/users/k06a/events{/privacy}","received_events_url":"https://api.github.com/users/k06a/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-24T14:56:52Z","updated_at":"2016-03-24T15:48:58Z","closed_at":null,"body":"Just got crash:\r\n```\r\nProcess:               Xcode [27585]\r\nPath:                  /Applications/Xcode.app/Contents/MacOS/Xcode\r\nIdentifier:            com.apple.dt.Xcode\r\nVersion:               7.3 (10183.3)\r\nBuild Info:            IDEFrameworks-10183003000000000~2\r\nCode Type:             X86-64 (Native)\r\nParent Process:        ??? [1]\r\nResponsible:           Xcode [27585]\r\nUser ID:               501\r\n\r\nDate/Time:             2016-03-24 17:52:34.345 +0300\r\nOS Version:            Mac OS X 10.11.4 (15E65)\r\nReport Version:        11\r\nAnonymous UUID:        252003A3-F6B9-B845-2B4D-40F50D6C926A\r\n\r\nSleep/Wake UUID:       91F38AAC-BB48-4864-8B97-FA0E3C692D93\r\n\r\nTime Awake Since Boot: 94000 seconds\r\nTime Since Wake:       4100 seconds\r\n\r\nSystem Integrity Protection: enabled\r\n\r\nCrashed Thread:        24  Dispatch queue: com.apple.root.default-qos\r\n\r\nException Type:        EXC_CRASH (SIGABRT)\r\nException Codes:       0x0000000000000000, 0x0000000000000000\r\nException Note:        EXC_CORPSE_NOTIFY\r\n\r\nApplication Specific Information:\r\nProductBuildVersion: 7D175\r\nUNCAUGHT EXCEPTION (NSInternalInconsistencyException): Couldn't posix_spawn: error 8\r\nUserInfo: (null)\r\nHints: None\r\nBacktrace:\r\n  0   __exceptionPreprocess (in CoreFoundation)\r\n  1   DVTFailureHintExceptionPreprocessor (in DVTFoundation)\r\n  2   objc_exception_throw (in libobjc.A.dylib)\r\n  3   +[NSException raise:format:] (in CoreFoundation)\r\n  4   -[NSConcreteTask launchWithDictionary:] (in Foundation)\r\n  5   __39-[VOKScriptForFolder actuallyRunScript]_block_invoke at /Users/k06a/Library/Application Support/Alcatraz/Plug-ins/XcodeAutoBasher/XcodeAutoBasher/XcodeAutoBasher/Models/VOKScriptForFolder.m:158 (in XcodeAutoBasher)\r\n  6   _dispatch_call_block_and_release (in libdispatch.dylib)\r\n  7   _dispatch_client_callout (in libdispatch.dylib)\r\n  8   _dispatch_root_queue_drain (in libdispatch.dylib)\r\n  9   _dispatch_worker_thread3 (in libdispatch.dylib)\r\n 10   _pthread_wqthread (in libsystem_pthread.dylib)\r\n 11   start_wqthread (in libsystem_pthread.dylib)\r\n \r\nabort() called\r\n\r\nApplication Specific Signatures:\r\nNSInternalInconsistencyException\r\n\r\nApplication Specific Backtrace 1:\r\n0   CoreFoundation                      0x00007fff97f8e4f2 __exceptionPreprocess + 178\r\n1   DVTFoundation                       0x000000010fe28384 DVTFailureHintExceptionPreprocessor + 194\r\n2   libobjc.A.dylib                     0x00007fff91708f7e objc_exception_throw + 48\r\n3   CoreFoundation                      0x00007fff97ff54bd +[NSException raise:format:] + 205\r\n4   Foundation                          0x00007fff8e396a5d -[NSConcreteTask launchWithDictionary:] + 3134\r\n5   XcodeAutoBasher                     0x0000000119123014 __39-[VOKScriptForFolder actuallyRunScript]_block_invoke + 398\r\n6   libdispatch.dylib                   0x00007fff8868393d _dispatch_call_block_and_release + 12\r\n7   libdispatch.dylib                   0x00007fff8867840b _dispatch_client_callout + 8\r\n8   libdispatch.dylib                   0x00007fff8867c29b _dispatch_root_queue_drain + 1890\r\n9   libdispatch.dylib                   0x00007fff8867bb00 _dispatch_worker_thread3 + 91\r\n10  libsystem_pthread.dylib             0x00007fff87bb94de _pthread_wqthread + 1129\r\n11  libsystem_pthread.dylib             0x00007fff87bb7341 start_wqthread + 13\r\n```\r\n\r\nWith following script:\r\n```shell\r\ngit status --porcelain | sed s/^...// | grep -E '(.*\\.h|.*\\.m|.*\\.mm)$' | xargs sed -i '' 's#(\\([^)]*\\),[ ]*readonly)#(readonly, \\1)#g; s#(\\([^)]*\\),[ ]*readonly,[ ]*\\([^)]*\\))#(readonly, \\1, \\2)#g; s#(\\([^)]*\\),[ ]*nullable)#(nullable, \\1)#g; s#(\\([^)]*\\),[ ]*nullable,[ ]*\\([^)]*\\))#(nullable, \\1, \\2)#g; s#(\\([^)]*\\),[ ]*null_resettable)#(null_resettable, \\1)#g; s#(\\([^)]*\\),[ ]*null_resettable,[ ]*\\([^)]*\\))#(null_resettable, \\1, \\2)#g; s#(nonatomic,[ ]*\\([^)]*\\))#(\\1, nonatomic)#g; s#(\\([^)]*\\),[ ]*nonatomic,[ ]*\\([^)]*\\))#(\\1, \\2, nonatomic)#g; s#(getter=\\([^), ]*\\),[ ]*\\([^)]*\\))#(\\2, getter=\\1)#g; s#(\\([^)]*\\),[ ]*getter=\\([^), ]*\\),[ ]*\\([^)]*\\))#(\\1, \\3, getter=\\2)#g'\r\n```"},"comment":{"url":"https://api.github.com/repos/vokal/XcodeAutoBasher/issues/comments/200896430","html_url":"https://github.com/vokal/XcodeAutoBasher/issues/22#issuecomment-200896430","issue_url":"https://api.github.com/repos/vokal/XcodeAutoBasher/issues/22","id":200896430,"user":{"login":"vokal-isaac","id":7505072,"avatar_url":"https://avatars.githubusercontent.com/u/7505072?v=3","gravatar_id":"","url":"https://api.github.com/users/vokal-isaac","html_url":"https://github.com/vokal-isaac","followers_url":"https://api.github.com/users/vokal-isaac/followers","following_url":"https://api.github.com/users/vokal-isaac/following{/other_user}","gists_url":"https://api.github.com/users/vokal-isaac/gists{/gist_id}","starred_url":"https://api.github.com/users/vokal-isaac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vokal-isaac/subscriptions","organizations_url":"https://api.github.com/users/vokal-isaac/orgs","repos_url":"https://api.github.com/users/vokal-isaac/repos","events_url":"https://api.github.com/users/vokal-isaac/events{/privacy}","received_events_url":"https://api.github.com/users/vokal-isaac/received_events","type":"User","site_admin":false},"created_at":"2016-03-24T15:48:58Z","updated_at":"2016-03-24T15:48:58Z","body":"There's a throttling-delay on execution (so that a lot of file-changed events in quick succession only trigger a single run of the corresponding script/program), but I think that's just a 1-second delay.  How long does your script take to run if you run it from the command line (in Terminal, for example)?"}}