{ "id": "140898", "key": "TIMOB-18130", "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-12-04T00:14:01.000+0000", "created": "2014-12-03T22:48:50.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-3.5.0", "regression" ], "versions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [ { "id": "43679", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "140926", "key": "TIMOB-18133", "fields": { "summary": "CLI: Build - Cannot build a project from CLI if you specify the Titanium project directory", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-12-05T23:25:22.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": "10202", "name": "Android", "description": "Android Platform" }, { "id": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" }, { "id": "13103", "name": "CLI", "description": "Node-based command line interface" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" }, { "id": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" }, { "id": "10207", "name": "Tooling" } ], "description": "h5. Description:\r\nOur automated SDK validations board went red for all platforms with SDK 3.5.0.v20141203112513. After working with Tim, it seems that a missing \"require wrench\" is the root of the problem. All build commands \"ti build\" fail with \"wrench is undefined\" There is some variance by platform:\r\n\r\nFor iOS and blackberry, a simple error is shown:\r\n{code}\r\n[ERROR] wrench is not defined\r\n{code}\r\n\r\nFor mobileweb and Android, you get the following: \r\n{code}\r\n/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:185\r\n throw e;\r\n ^\r\nReferenceError: wrench is not defined\r\n at patchLogger (/Users/eric/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141203112513/cli/commands/build.js:273:29)\r\n at conf.options.appc.util.mix.project-dir.callback (/Users/eric/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141203112513/cli/commands/build.js:111:9)\r\n at /usr/local/lib/node_modules/titanium/lib/cli.js:632:28\r\n at conf.options.appc.util.mix.project-dir.validate (/Users/eric/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141203112513/cli/commands/build.js:175:9)\r\n at CLI. (/usr/local/lib/node_modules/titanium/lib/cli.js:622:14)\r\n at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:551:21\r\n at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:227:13\r\n at iterate (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:134:13)\r\n{code}\r\n\r\nTHIS IS A REGRESSION\r\n\r\nh5. Steps to reproduce:\r\n1) Download SDK 3.5.0.v20141203112513\r\n2) Set this sdk as \"selected\" in the ti config or with the \"-d\" flag or by \"ti sdk\" command\r\n3) Create a project with this sdk in the tiapp.xml\r\n4) Run command \"ti build\" and choose any platform\r\n\r\nh5. Result:\r\nBuild failure due to missing wrench\r\n\r\nh5. Expected Result:\r\nBuild completes successfully ", "attachment": [], "flagged": false, "summary": "CLI: Ti build command fails for all platforms due to \"wrench undefined\"", "creator": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OS 10.10.1\r\nXcode 6.1 GM\r\nCLI: 3.4.1 GA\r\nAlloy: 1.5.1 GA\r\nTitanium SDK version 3.5.0.v20141203112513\r\nAppcelerator Studio, build: 3.4.1.201410281743", "comment": { "comments": [ { "id": "334678", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This is because there was no backport of TIMOB-18074.\r\n\r\nSomeone needs to backport https://github.com/appcelerator/titanium_mobile/pull/6379 to 3_5_X and fast.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-12-03T22:53:51.000+0000", "updated": "2014-12-03T22:57:47.000+0000" }, { "id": "334682", "author": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/6427", "updateAuthor": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-03T23:13:59.000+0000", "updated": "2014-12-03T23:13:59.000+0000" }, { "id": "335159", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed. Verified I was able to build a Titanium project using {{ti build}} for different platforms.\r\n\r\nTested on:\r\n\r\nAppcelerator Studio, build: 3.4.1.201410281743 \r\nSDK build: 3.5.0.v20141205141717 \r\nCLI: 3.4.1 \r\nAlloy: 1.5.1 \r\nXcode: 6.1.1 GM", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-05T23:24:41.000+0000", "updated": "2014-12-05T23:24:41.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }