{ "id": "79547", "key": "TIMOB-5085", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "12075", "description": "", "name": "Sprint 2011-35", "archived": true, "released": true, "releaseDate": "2011-09-05" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-09-09T12:26:53.000+0000", "created": "2011-08-23T10:51:37.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-08T00:03:39.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10207", "name": "Tooling" } ], "description": "If you have the Spotlight indexer disabled, the iPhone builder.py will hang when it tries to use {{mdfind}} to search for log files. Snippet of the builder.py output:\r\n\r\n{code}\r\n--- snip copying stuff ---\r\n\r\n[DEBUG] executing command: /usr/bin/killall iPhone Simulator\r\n[DEBUG] No matching processes belonging to you were found\r\n[DEBUG] finding old log files\r\n[DEBUG] executing command: mdfind -onlyin /Users/marshall/Library/Application Support/iPhone Simulator/4.3 -name .log\r\n(HANG HERE)\r\n{code}\r\n\r\nTo reproduce this, simply disable the Spotlight indexer, and try running any iPhone project:\r\n{code}\r\n$ sudo mdutil -a -i off\r\n$ titanium run --platform=iphone\r\n{code}\r\n\r\nWe can easily workaround this by checking the status of the Spotlight indexer with {{mdutil}}, and falling back to Python's {{os.walkdir}} or, simply use {{find}}:\r\n{code}\r\n$ mdutil -a -s\r\n/:\r\n\tIndexing disabled.\r\n{code}", "attachment": [], "flagged": false, "summary": "Tooling: Disabling Spotlight causes iOS builder.py to hang on OSX Lion", "creator": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "OSX Lion", "comment": { "comments": [ { "id": "164192", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "To test this fix, just disable spotlight indexing as listed above. Without the patch builder.py will hang for a _very_ long time. With the patch, builder.py will fall back to using recursive file search. Also try adding this property to a Titanium app:\r\n\r\n{code}\r\nfalse\r\n{code}\r\n\r\nBuild the app, and you should just notice that it no longer uses mdfind in the debugging output.", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-26T14:30:26.000+0000", "updated": "2011-08-26T14:30:26.000+0000" }, { "id": "165542", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "this has been merged", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-09T12:26:53.000+0000", "updated": "2011-09-09T12:26:53.000+0000" }, { "id": "409687", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-08T00:03:39.000+0000", "updated": "2017-03-08T00:03:39.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }