Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19359] Cannot create a Titanium project with CLI 4.1.X and SDK 4.2.0 or 5.0.0

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2015-09-14T17:47:07.000+0000
Affected Version/sRelease 4.1.1, Release 5.0.0
Fix Version/sRelease 5.0.0
ComponentsCLI
Labelsqe-4.1.1, qe-5.0.0
ReporterWilson Luu
AssigneePraveen Innamuri
Created2015-08-17T17:17:27.000+0000
Updated2015-09-15T23:42:56.000+0000

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. *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. *Steps to reproduce:*

Make sure you are using Appc CLI NPM 4.1.0-2, Appc CLI Core 4.1.3-2, and SDK 4.2.0

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

*Actual:* Failed to run command "create" error will appear:
Failed to run command "create"
TypeError: Arguments to path.join must be strings
    at path.js:360:15
    at Array.filter (native)
    at exports.join (path.js:358:36)
    at AppCreator.<anonymous> (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/cli/lib/creators/app.js:162:32)
    at Array.forEach (native)
    at AppCreator.<anonymous> (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/cli/lib/creators/app.js:159:22)
    at AppCreator.processTemplate (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/cli/lib/creator.js:507:10)
    at AppCreator.run (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/cli/lib/creators/app.js:100:7)
    at CreateCommand.<anonymous> (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/cli/commands/create.js:166:12)
    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
---------------------------------------------
    at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/node_modules/async/lib/async.js:275:35
    at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/node_modules/async/lib/async.js:44:16
    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)
    at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/node_modules/async/lib/async.js:187:20
    at iterate (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/node_modules/async/lib/async.js:265:13)
    at process._tickCallback (node.js:448:13)
---------------------------------------------
    at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/node_modules/async/lib/async.js:275:35
    at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/node_modules/async/lib/async.js:44:16
    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)
    at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/node_modules/async/lib/async.js:187:20
    at iterate (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/node_modules/async/lib/async.js:265:13)
    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)
    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)
    at CreateCommand.<anonymous> (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150817002027/cli/commands/create.js:64:9)
    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)
---------------------------------------------
    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)
    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)
    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)
    at processImmediate (timers.js:354:15)

done with plugin [Error: titanium exited with non-zero exit code (1)]
ERROR  | Error: titanium exited with non-zero exit code (1)
    at ChildProcess.<anonymous> (/Users/wluu/.appcelerator/install/4.1.3-2/package/node_modules/appc-cli-titanium/plugins/new.js:155:21)
    at ChildProcess.emit (events.js:98:17)
    at Process.ChildProcess._handle.onexit (child_process.js:820:12)
*Expected:* Should be able to create a Titanium project without any issues.

Comments

  1. Praveen Innamuri 2015-09-13

    https://github.com/appcelerator/titanium_mobile/pull/7174
  2. Ingo Muschenetz 2015-09-14

    @Praveen please make a backport.
  3. Praveen Innamuri 2015-09-14

    5_0_X https://github.com/appcelerator/titanium_mobile/pull/7180
  4. Wilson Luu 2015-09-15

    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. Tested on: Appc CLI NPM: 4.1.1 Appc CLI Core: 4.1.3 Arrow: 1.2.48 SDK: 5.0.0.v20150915162307 Node: v0.10.38 OS: Yosemite (10.10.5)

JSON Source