Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-19359

Cannot create a Titanium project with CLI 4.1.X and SDK 4.2.0 or 5.0.0

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 4.1.1, Release 5.0.0
    • Fix Version/s: Release 5.0.0
    • Component/s: CLI
    • Labels:
    • Environment:

      Appc CLI NPM: 4.1.0-2
      Appc CLI Core: 4.1.3-2
      Arrow: 1.2.26
      SDK: 4.2.0.v20150817002027, 5.0.0.v20150915143918
      Node: v0.10.38
      OS: Yosemite (10.10.4)

      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:

      1. Make sure you are using Appc CLI NPM 4.1.0-2, Appc CLI Core 4.1.3-2, and SDK 4.2.0
      2. 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.

        Attachments

          Activity

            People

            • Assignee:
              pinnamuri Praveen Innamuri (Inactive)
              Reporter:
              wluu Wilson Luu (Inactive)
              Reviewer:
              Chris Barber
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-20251
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code