{ "id": "140926", "key": "TIMOB-18133", "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-05T21:29:32.000+0000", "created": "2014-12-04T01:11:34.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "merge-3.5.0", "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" }, "inwardIssue": { "id": "140898", "key": "TIMOB-18130", "fields": { "summary": "CLI: Ti build command fails for all platforms due to \"wrench undefined\"", "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-06T01:28:18.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" } ], "description": "*Details:* Cannot build a project from CLI if you specify the Titanium project using -d flag.\r\n\r\n*Note:* This is a *regression* as this does not occur with GA stack.\r\n\r\n*Steps to reproduce:*\r\n1. Create a Titanium project from CLI\r\n2. Use the following CLI command: {{ti build -p ios -b -d }}\r\n\r\n*Actual:* You will get a longjohn error:\r\n{code}\r\n$ ti build -p ios -b -d praveen/\r\nWed Dec 03 2014 17:09:54 GMT-0800 (PST)\r\n\r\nBuild Environment \r\n Host OS = OS X 14.0.0, x64\r\n Target platform = undefined\r\n CLI version = 3.4.1\r\n SDK version = 3.5.0.v20141203160911\r\n SDK path = /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141203160911\r\n Node version = v0.10.30\r\n Command = titanium --sdk 3.5.0.v20141203160911 build -p ios -b -d praveen/\r\n\r\n\r\n\r\n/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:185\r\n throw e;\r\n ^\r\nTypeError: Arguments to path.join must be strings\r\n at path.js:360:15\r\n at Array.filter (native)\r\n at exports.join (path.js:358:36)\r\n at patchLogger (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141203160911/cli/commands/build.js:271:19)\r\n at conf.options.appc.util.mix.project-dir.callback (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141203160911/cli/commands/build.js:112:9)\r\n at Context. (/usr/local/lib/node_modules/titanium/lib/context.js:597:31)\r\n at Array.forEach (native)\r\n at Context.setArg (/usr/local/lib/node_modules/titanium/lib/context.js:576:35)\r\n at Context. (/usr/local/lib/node_modules/titanium/lib/context.js:675:9)\r\n at Context.parse (/usr/local/lib/node_modules/titanium/lib/context.js:766:6)\r\n---------------------------------------------\r\n at exports.execFile (child_process.js:702:9)\r\n at exports.exec (child_process.js:589:18)\r\n at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141203160911/node_modules/node-appc/lib/environ.js:251:3\r\n at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141203160911/node_modules/node-appc/node_modules/async/lib/async.js:254:17\r\n at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141203160911/node_modules/node-appc/node_modules/async/lib/async.js:157:25\r\n at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141203160911/node_modules/node-appc/node_modules/async/lib/async.js:251:21\r\n at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141203160911/node_modules/node-appc/node_modules/async/lib/async.js:615:34\r\n at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141203160911/node_modules/node-appc/lib/environ.js:218:7\r\n{code}\r\n\r\n*Expected:* Should be able to build from CLI using the -d flag.", "attachment": [], "flagged": false, "summary": "CLI: Build - Cannot build a project from CLI if you specify the Titanium project directory", "creator": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio, build: 3.4.1.201410281743\r\nSDK build: 3.5.0.v20141203160911\r\nCLI: 3.4.1 GA\r\nAlloy: 1.5.1 GA\r\nXcode 6.1.1 GM", "comment": { "comments": [ { "id": "334725", "author": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/6428", "updateAuthor": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-04T01:19:02.000+0000", "updated": "2014-12-04T01:19:02.000+0000" }, { "id": "335124", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Works as expected, approved and merged", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-12-05T21:29:32.000+0000", "updated": "2014-12-05T21:29:32.000+0000" }, { "id": "335158", "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 project from CLI after specifying the Titanium project directory.\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 \r\n", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-05T23:23:01.000+0000", "updated": "2014-12-05T23:23:01.000+0000" }, { "id": "335197", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Small color fix\r\nMaster: https://github.com/appcelerator/titanium_mobile/pull/6444\r\n3_5_X: https://github.com/appcelerator/titanium_mobile/pull/6445", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-12-06T01:28:18.000+0000", "updated": "2014-12-06T01:28:18.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }