{ "id": "107221", "key": "TIMOB-12169", "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": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-11-18T18:22:01.000+0000", "created": "2012-12-30T06:58:11.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "cli", "ft", "ios", "qe-ios100112", "qe-manualtest", "usability" ], "versions": [], "issuelinks": [ { "id": "44783", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "outwardIssue": { "id": "141759", "key": "TIMOB-18399", "fields": { "summary": "Windows: Projects can not be deleted if it's built once", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "23963", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "40780", "key": "TISTUD-113", "fields": { "summary": "When mobile project compile fails, would be helpful to detect/display from build.log", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "updated": "2015-02-06T08:42:56.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": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "Building a mobile project to iOS device or simulator wont create build.log if CLI is enabled.\r\nOccurs in 3.0.0 and 3.1.0\r\n\r\n\r\nTest steps:\r\n1. Create a project in Titanium Studio\r\n2. Run it as iOS simulator or build it to device\r\n3. Check project's build folder for build.log\r\n\r\nActual result:\r\nNo build.log\r\n\r\nExpected result:\r\nbuild.log should be created in both scenarios (success or failure)\r\n", "attachment": [], "flagged": false, "summary": "CLI: Project compilation - no build.log is being created", "creator": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK: 3.1.0.v20121220122601\r\nTitanium SDK: 3.0.1.v20121220123205", "closedSprints": [ { "id": 252, "state": "closed", "name": "2014 Sprint 23 Tooling", "startDate": "2014-11-10T21:34:40.421Z", "endDate": "2014-11-22T01:00:00.000Z", "completeDate": "2014-11-24T17:27:17.209Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "302777", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Out of bandwidth for 3.3.0. Bumping to next version.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-28T19:56:14.000+0000", "updated": "2014-04-28T19:56:14.000+0000" }, { "id": "329959", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "[~ingo] Is there some sort of spec for this? What gets logged, at what levels? The ticket speaks to this being an iOS issue, but I assume logging should be done on all platforms, right?", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-10-29T19:52:00.000+0000", "updated": "2014-10-29T19:52:00.000+0000" }, { "id": "329960", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~skypanther] There's no spec beyond what the old Python scripts used to do. I was hoping to rip out the Winston logger and replace it with a new logger that supported the ability for specific commands (i.e. build) to opt-in and have all log calls written to a file in addition to the exact command being run, the information found on \"ti info\", and other various Node/NPM information. I know Winston has the ability to log to a file, I just don't think it's going to be versatile enough.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-10-29T19:57:14.000+0000", "updated": "2014-10-29T19:57:14.000+0000" }, { "id": "330187", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "[~cbarber] I've got logging working. However, on Android & MobileWeb, the contents of the build/platform directory are cleared partway through the build process. That, of course, blows away the build.log file. Why are those directories emptied and would there be issues if I prevented the build.log file from being deleted during that step? Hints on where that's happening in the code?", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-10-31T12:56:30.000+0000", "updated": "2014-10-31T12:56:30.000+0000" }, { "id": "330234", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/6297\r\n\r\nWith this change, a build log file, such as build_iphone.log, is created in the build folder rather than the platform folder within. In this way, we're sure that the log is not included with any packaged app. I updated the {{ti clean}} function to remove the log files in addition to the platform directories.\r\n\r\nFunctional test:\r\n\r\n1. Build a project for any platform.\r\n2. Open project/build/build_PLATFORM.log in a text editor and confirm that trace-level logging is output to that file.\r\n3. Build again for the same platform. New logging entries are appended to the same file.\r\n4. Build for another platform to confirm a separate log file is created.\r\n5. Run {{ti clean}} to confirm that all directories and log files from the build folder are removed", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-10-31T20:58:35.000+0000", "updated": "2014-10-31T20:58:35.000+0000" }, { "id": "330912", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Review failed. Please see comments in PR.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-11-05T22:41:00.000+0000", "updated": "2014-11-05T22:41:00.000+0000" }, { "id": "331059", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "PR updated to address Chris's comments.\r\n\r\nFunctional review additions:\r\n\r\nIn addition to the steps above, build the project from a folder other than the project folder. For example, from the Titanium_Studio_Workspace folder:\r\n\r\n1. Run {{ti build -p ios --project-dir yourappfolder}}. The log should be created properly in the project's build folder.\r\n2. Run {{ti clean --project-dir yourappfolder}} and the build folder should be emptied.\r\n3. Run {{ti build -p ios}} and when prompted, enter your project's folder name. The log should be created properly in the project's build folder.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-11-06T19:23:47.000+0000", "updated": "2014-11-06T19:23:47.000+0000" }, { "id": "332278", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "PR updated per Chris' comments", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-11-14T18:54:08.000+0000", "updated": "2014-11-14T18:54:08.000+0000" }, { "id": "342384", "author": { "name": "kagrawal", "key": "kagrawal", "displayName": "Khushbu Agrawal", "active": true, "timeZone": "Asia/Shanghai" }, "body": "Verified with below Test Environment:\r\n1. Mac OSX Yosemite 10.10\r\n2. Appcelerator Studio, build: 4.0.0.201502031850\r\n3. Titanium SDK, build: 4.0.0.v20150205163226\r\n4. Titanium CLI, build: 3.6.0-dev\r\n5. Alloy: 1.5.1\r\n6. Xcode 6.1\r\n7. iOS SDK 8.1\r\n8. S Galaxy S5 with Android 4.4.2\r\n\r\nThe log is created properly in project's build folder respective to specified platform. Also the logs are created if building the project outside the project directory.\r\n\r\nSo closing this ticket as working as expected.\r\n", "updateAuthor": { "name": "kagrawal", "key": "kagrawal", "displayName": "Khushbu Agrawal", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2015-02-06T08:42:56.000+0000", "updated": "2015-02-06T08:42:56.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }