Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13534] BlackBerry : Distribution of app fails as quoting of path is incorrect

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-04-13T03:25:58.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 08 BB, 2013 Sprint 08, Release 3.1.1, Release 3.2.0
ComponentsBlackBerry
Labelsqe-testadded, sdk-bb
ReporterLokesh Choudhary
AssigneeRussell McMahon
Created2013-04-12T00:32:05.000+0000
Updated2014-06-19T12:44:41.000+0000

Description

Description: 1. Create an app for BB 2. Do a BlackBerry distribute Actual Results: 1. We get errors like below:

/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:181
        throw e;
              ^
Error: ENOENT, open '"/Users/lokeshchoudhary/Desktop/BB_test_cli/build/blackberry/arm/o.le-v7/BB_test_cli".bar'
---------------------------------------------
    at Stream.pipe (stream.js:85:10)
    at self.run (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130411012621/blackberry/cli/common/blackberryndk.js:387:72)
    at runCommandFromArray (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130411012621/blackberry/cli/common/blackberryndk.js:61:3)
    at exithandler (child_process.js:538:7)
    at EventEmitter.emit (events.js:99:17)
    at maybeClose (child_process.js:638:16)
    at ChildProcess.spawn.stdin (child_process.js:815:11)
---------------------------------------------
    at exports.execFile (child_process.js:594:9)
    at exports.exec (child_process.js:481:18)
    at runCommandFromArray (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130411012621/blackberry/cli/common/blackberryndk.js:59:2)
    at self.run (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130411012621/blackberry/cli/common/blackberryndk.js:383:6)
    at runCommandFromArray (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130411012621/blackberry/cli/common/blackberryndk.js:61:3)
    at exithandler (child_process.js:538:7)
    at EventEmitter.emit (events.js:99:17)
---------------------------------------------
    at exports.execFile (child_process.js:594:9)
    at exports.exec (child_process.js:481:18)
    at runCommandFromArray (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130411012621/blackberry/cli/common/blackberryndk.js:59:2)
    at self.run (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130411012621/blackberry/cli/common/blackberryndk.js:352:13)
    at exports.init (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130411012621/blackberry/cli/hooks/run.js:33:12)
    at cli.createHook.async.series.next (/usr/local/lib/node_modules/titanium/lib/cli.js:110:12)
    at async.series.results (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:486:21)
    at _asyncMap (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:185:13)
---------------------------------------------
    at exports.execFile (child_process.js:594:9)
    at exports.exec (child_process.js:481:18)
    at runCommandFromArray (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130411012621/blackberry/cli/common/blackberryndk.js:59:2)
    at self.build (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130411012621/blackberry/cli/common/blackberryndk.js:235:4)
    at build.<anonymous> (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130411012621/blackberry/cli/commands/_build.js:140:15)
    at cli.createHook.async.series.next (/usr/local/lib/node_modules/titanium/lib/cli.js:116:18)
    at _asyncMap (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:190:13)
    at async.forEachSeries.iterate (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:116:25)
---------------------------------------------
    at exports.execFile (child_process.js:594:9)
    at exports.exec (child_process.js:481:18)
    at exports.detect.async.series.cached (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130411012621/node_modules/node-appc/lib/android.js:81:4)
    at async.series.results (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130411012621/node_modules/async/lib/async.js:486:21)
    at _asyncMap (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130411012621/node_modules/async/lib/async.js:185:13)
    at async.forEachSeries.iterate (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130411012621/node_modules/async/lib/async.js:108:13)
    at async.forEachSeries.iterate (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130411012621/node_modules/async/lib/async.js:119:25)
    at _asyncMap (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130411012621/node_modules/async/lib/async.js:187:17)
---------------------------------------------
    at exports.execFile (child_process.js:594:9)
    at exports.exec (child_process.js:481:18)
    at exports.detect.async.series.exec.cwd (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130411012621/node_modules/node-appc/lib/android.js:68:4)
    at async.series.results (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130411012621/node_modules/async/lib/async.js:486:21)
    at _asyncMap (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130411012621/node_modules/async/lib/async.js:185:13)
    at async.forEachSeries.iterate (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130411012621/node_modules/async/lib/async.js:108:13)
    at async.forEachSeries.iterate (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130411012621/node_modules/async/lib/async.js:119:25)
    at _asyncMap (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130411012621/node_modules/async/lib/async.js:187:17)
2. The bar file is created but its empty.It just creates a .bar file for the app 3. If you llok at this line: '"/Users/lokeshchoudhary/Desktop/BB_test_cli/build/blackberry/arm/o.le-v7/BB_test_cli".bar' the double quotes end before the .bar file. Expected Result: 1. The app's bar file should be created without any issues

Comments

  1. Lokesh Choudhary 2013-04-12

    Reopening as I am able to reproduce the issue. Environment: Ti Studio : 3.1.0.201304051530 Ti BB SDK : 3.2.0.v20130412030224 Mac OSX : 10.8.2 win 7 Win 8 BB simulator : 10.0.10.261 Z10 device running 10.0.10.88
  2. Lokesh Choudhary 2013-04-13

    Reopening as I can repro it.
       usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:181
               throw e;
                     ^
       TypeError: Cannot read property 'build-id' of undefined
           at self.run (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130412162441/blackberry/cli/common/blackberryndk.js:335:45)
           at exports.init (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130412162441/blackberry/cli/hooks/run.js:33:12)
           at cli.createHook.async.series.next (/usr/local/lib/node_modules/titanium/lib/cli.js:110:12)
           at async.series.results (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:486:21)
           at _asyncMap (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:185:13)
           at async.forEachSeries.iterate (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:108:13)
           at async.forEachSeries.iterate (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:119:25)
           at _asyncMap (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:187:17)
           at async.series.results (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:491:34)
           at cli.createHook.async.series.next (/usr/local/lib/node_modules/titanium/lib/cli.js:112:8)
       ---------------------------------------------
           at exports.execFile (child_process.js:594:9)
           at exports.exec (child_process.js:481:18)
           at runCommandFromArray (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130412162441/blackberry/cli/common/blackberryndk.js:59:2)
           at self.build (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130412162441/blackberry/cli/common/blackberryndk.js:235:4)
           at build.<anonymous> (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130412162441/blackberry/cli/commands/_build.js:140:15)
           at cli.createHook.async.series.next (/usr/local/lib/node_modules/titanium/lib/cli.js:116:18)
           at _asyncMap (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:190:13)
           at async.forEachSeries.iterate (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:116:25)
       ---------------------------------------------
           at exports.execFile (child_process.js:594:9)
           at exports.exec (child_process.js:481:18)
           at exports.detect.async.series.cached (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130412162441/node_modules/node-appc/lib/android.js:81:4)
           at async.series.results (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130412162441/node_modules/async/lib/async.js:486:21)
           at _asyncMap (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130412162441/node_modules/async/lib/async.js:185:13)
           at async.forEachSeries.iterate (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130412162441/node_modules/async/lib/async.js:108:13)
           at async.forEachSeries.iterate (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130412162441/node_modules/async/lib/async.js:119:25)
           at _asyncMap (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130412162441/node_modules/async/lib/async.js:187:17)
       ---------------------------------------------
           at exports.execFile (child_process.js:594:9)
           at exports.exec (child_process.js:481:18)
           at exports.detect.async.series.exec.cwd (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130412162441/node_modules/node-appc/lib/android.js:68:4)
           at async.series.results (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130412162441/node_modules/async/lib/async.js:486:21)
           at _asyncMap (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130412162441/node_modules/async/lib/async.js:185:13)
           at async.forEachSeries.iterate (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130412162441/node_modules/async/lib/async.js:108:13)
           at async.forEachSeries.iterate (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130412162441/node_modules/async/lib/async.js:119:25)
           at _asyncMap (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.2.0.v20130412162441/node_modules/async/lib/async.js:187:17)
       
    Environment: Ti Studio : 3.1.0.201304051530 Ti BB SDK : 3.2.0.v20130412162441 Mac OSX : 10.8.2 win 7 Win 8 BB simulator : 10.0.10.261 Z10 device running 10.0.10.88
  3. Lokesh Choudhary 2013-04-13

    Verified the issue & the app is distributed properly without any issues. Environment: Ti Studio : 3.1.0.201304051530 Ti BB SDK : 3.2.0.v20130412191647 Mac OSX : 10.8.2 win 7 Win 8 BB simulator : 10.0.10.261 Z10 device running 10.0.10.88

JSON Source