{ "id": "150463", "key": "TIMOB-19359", "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": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-09-14T17:47:07.000+0000", "created": "2015-08-17T17:17:27.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-4.1.1", "qe-5.0.0" ], "versions": [ { "id": "16919", "description": "Critical updates", "name": "Release 4.1.1", "archived": true, "released": true, "releaseDate": "2015-07-15" }, { "id": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "issuelinks": [], "assignee": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-09-15T23: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": "*Details:* Cannot create a Titanium project with Appc CLI NPM: 4.1.0-2 and Appc CLI Core: 4.1.3-2 with SDK 4.2.0 or 5.0.0.\r\n\r\n*Note:* In this configuration, you can still create an Alloy project with just {{appc new}}. However, this is still a blocker because a Titanium project cannot be created.\r\n\r\n*Steps to reproduce:*\r\n# Make sure you are using Appc CLI NPM 4.1.0-2, Appc CLI Core 4.1.3-2, and SDK 4.2.0\r\n# Run the following command to create a Titanium project: {{appc new --type titanium --platforms android --id com.appcelerator.testing --name android --project-dir ~/android --log-level trace --url http:// --subtype new --no-services --force}}\r\n\r\n*Actual:* {{Failed to run command \"create\"}} error will appear:\r\n{code}\r\nFailed to run command \"create\"\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 AppCreator. (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/cli/lib/creators/app.js:162:32)\r\n at Array.forEach (native)\r\n at AppCreator. (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/cli/lib/creators/app.js:159:22)\r\n at AppCreator.processTemplate (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/cli/lib/creator.js:507:10)\r\n at AppCreator.run (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/cli/lib/creators/app.js:100:7)\r\n at CreateCommand. (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/cli/commands/create.js:166:12)\r\n at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/node_modules/node-appc/node_modules/async/lib/async.js:607:21\r\n---------------------------------------------\r\n at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/node_modules/async/lib/async.js:275:35\r\n at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/node_modules/async/lib/async.js:44:16\r\n at async.eachSeries.cli.createHook.conf.flags.force.abbr (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/cli/commands/create.js:87:5)\r\n at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/node_modules/async/lib/async.js:187:20\r\n at iterate (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/node_modules/async/lib/async.js:265:13)\r\n at process._tickCallback (node.js:448:13)\r\n---------------------------------------------\r\n at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/node_modules/async/lib/async.js:275:35\r\n at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/node_modules/async/lib/async.js:44:16\r\n at async.eachSeries.cli.createHook.conf.flags.force.abbr (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/cli/commands/create.js:87:5)\r\n at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/node_modules/async/lib/async.js:187:20\r\n at iterate (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/node_modules/async/lib/async.js:265:13)\r\n at async.forEachOfSeries.async.eachOfSeries (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/node_modules/async/lib/async.js:284:9)\r\n at async.forEachSeries.async.eachSeries (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/node_modules/async/lib/async.js:220:22)\r\n at CreateCommand. (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/cli/commands/create.js:64:9)\r\n at Context.load (/Users/wluu/.appcelerator/install/4.1.3-2/package/node_modules/appc-cli-titanium/node_modules/titanium/lib/context.js:521:4)\r\n---------------------------------------------\r\n at Object.run (/Users/wluu/.appcelerator/install/4.1.3-2/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:59:8)\r\n at find (/Users/wluu/.appcelerator/install/4.1.3-2/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:96:14)\r\n at q.process (/Users/wluu/.appcelerator/install/4.1.3-2/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/node-appc/node_modules/async/lib/async.js:806:21)\r\n at processImmediate (timers.js:354:15)\r\n\r\ndone with plugin [Error: titanium exited with non-zero exit code (1)]\r\nERROR | Error: titanium exited with non-zero exit code (1)\r\n at ChildProcess. (/Users/wluu/.appcelerator/install/4.1.3-2/package/node_modules/appc-cli-titanium/plugins/new.js:155:21)\r\n at ChildProcess.emit (events.js:98:17)\r\n at Process.ChildProcess._handle.onexit (child_process.js:820:12)\r\n{code}\r\n\r\n*Expected:* Should be able to create a Titanium project without any issues.", "attachment": [], "flagged": false, "summary": "Cannot create a Titanium project with CLI 4.1.X and SDK 4.2.0 or 5.0.0", "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": "Appc CLI NPM: 4.1.0-2\r\nAppc CLI Core: 4.1.3-2\r\nArrow: 1.2.26\r\nSDK: 4.2.0.v20150817002027, 5.0.0.v20150915143918\r\nNode: v0.10.38\r\nOS: Yosemite (10.10.4)", "comment": { "comments": [ { "id": "363711", "author": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/7174", "updateAuthor": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-13T20:06:40.000+0000", "updated": "2015-09-13T20:06:40.000+0000" }, { "id": "363792", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Praveen please make a backport.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-09-14T17:04:25.000+0000", "updated": "2015-09-14T17:04:25.000+0000" }, { "id": "363798", "author": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "body": "5_0_X https://github.com/appcelerator/titanium_mobile/pull/7180", "updateAuthor": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-14T17:31:41.000+0000", "updated": "2015-09-14T17:31:51.000+0000" }, { "id": "364022", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed. Verified that I am able to create a Titanium project with Appc CLI NPM: 4.1.1, Appc CLI Core: 4.1.3, and latest 5.0.0 SDK.\r\n\r\nTested on:\r\n\r\nAppc CLI NPM: 4.1.1\r\nAppc CLI Core: 4.1.3\r\nArrow: 1.2.48\r\nSDK: 5.0.0.v20150915162307\r\nNode: v0.10.38\r\nOS: Yosemite (10.10.5)\r\n", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-15T23:42:50.000+0000", "updated": "2015-09-15T23:42:50.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }