Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18133] CLI: Build - Cannot build a project from CLI if you specify the Titanium project directory

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2014-12-05T21:29:32.000+0000
Affected Version/sRelease 3.5.0
Fix Version/sRelease 4.0.0
ComponentsAndroid, BlackBerry, CLI, iOS, MobileWeb
Labelsmerge-3.5.0, qe-3.5.0, regression
ReporterWilson Luu
AssigneePraveen Innamuri
Created2014-12-04T01:11:34.000+0000
Updated2014-12-06T01:28:18.000+0000

Description

*Details:* Cannot build a project from CLI if you specify the Titanium project using -d flag. *Note:* This is a *regression* as this does not occur with GA stack. *Steps to reproduce:* 1. Create a Titanium project from CLI 2. Use the following CLI command: ti build -p ios -b -d <TI_PROJ> *Actual:* You will get a longjohn error:
$ ti build -p ios -b -d praveen/
Wed Dec 03 2014 17:09:54 GMT-0800 (PST)

Build Environment 
   Host OS         = OS X 14.0.0, x64
   Target platform = undefined
   CLI version     = 3.4.1
   SDK version     = 3.5.0.v20141203160911
   SDK path        = /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141203160911
   Node version    = v0.10.30
   Command         = titanium --sdk 3.5.0.v20141203160911 build -p ios -b -d praveen/



/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:185
        throw e;
              ^
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 patchLogger (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141203160911/cli/commands/build.js:271:19)
    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)
    at Context.<anonymous> (/usr/local/lib/node_modules/titanium/lib/context.js:597:31)
    at Array.forEach (native)
    at Context.setArg (/usr/local/lib/node_modules/titanium/lib/context.js:576:35)
    at Context.<anonymous> (/usr/local/lib/node_modules/titanium/lib/context.js:675:9)
    at Context.parse (/usr/local/lib/node_modules/titanium/lib/context.js:766:6)
---------------------------------------------
    at exports.execFile (child_process.js:702:9)
    at exports.exec (child_process.js:589:18)
    at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141203160911/node_modules/node-appc/lib/environ.js:251:3
    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
    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
    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
    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
    at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141203160911/node_modules/node-appc/lib/environ.js:218:7
*Expected:* Should be able to build from CLI using the -d flag.

Comments

  1. Praveen Innamuri 2014-12-04

    https://github.com/appcelerator/titanium_mobile/pull/6428
  2. Tim Poulsen 2014-12-05

    Works as expected, approved and merged
  3. Wilson Luu 2014-12-05

    Closing ticket as fixed. Verified I was able to build a project from CLI after specifying the Titanium project directory. Tested on: Appcelerator Studio, build: 3.4.1.201410281743 SDK build: 3.5.0.v20141205141717 CLI: 3.4.1 Alloy: 1.5.1 Xcode: 6.1.1 GM
  4. Chris Barber 2014-12-06

    Small color fix Master: https://github.com/appcelerator/titanium_mobile/pull/6444 3_5_X: https://github.com/appcelerator/titanium_mobile/pull/6445

JSON Source