Titanium JIRA Archive
Appcelerator Community (AC)

[AC-159] Module error in Ti 4 versus Ti 3.5.1

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionCannot Reproduce
Resolution Date2015-11-22T11:41:14.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator Modules, Titanium SDK & CLI
Labelsios
ReporterRaymond Verbruggen
AssigneeMostafizur Rahman
Created2015-06-11T09:04:01.000+0000
Updated2016-03-07T10:57:11.000+0000

Description

I get the following error when compiling an existing SDK 3.5.1 project for SDK 4: [INFO] : Found Titanium module id=it.logicainformatica.dropdown version=1.02 platform=iphone deploy-type=development path=/Users/raymond/Library/Application Support/Titanium/modules/iphone/it.logicainformatica.dropdown/1.02 /Users/raymond/.appcelerator/install/4.0.1/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:185 throw e; ^ TypeError: Invalid Version: 1.02.0 at new SemVer (/Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/node_modules/node-appc/node_modules/semver/semver.js:273:11) at compare (/Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/node_modules/node-appc/node_modules/semver/semver.js:460:10) at Function.lt (/Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/node_modules/node-appc/node_modules/semver/semver.js:494:10) at Object.lt (/Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/node_modules/node-appc/lib/version.js:57:16) at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/node_modules/node-appc/lib/timodule.js:296:23 at Array.forEach (native) at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/node_modules/node-appc/lib/timodule.js:276:10 at Array.forEach (native) at detect.callback (/Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/node_modules/node-appc/lib/timodule.js:229:37) at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/node_modules/node-appc/lib/timodule.js:170:51 --------------------------------------------- at exports.execFile (child_process.js:691:9) at exports.exec (child_process.js:578:18) at /Users/raymond/.appcelerator/install/4.0.1/package/node_modules/appc-cli-titanium/node_modules/node-appc/lib/environ.js:267:3 at /Users/raymond/.appcelerator/install/4.0.1/package/node_modules/async/lib/async.js:251:17 at /Users/raymond/.appcelerator/install/4.0.1/package/node_modules/async/lib/async.js:154:25 at /Users/raymond/.appcelerator/install/4.0.1/package/node_modules/async/lib/async.js:248:21 at /Users/raymond/.appcelerator/install/4.0.1/package/node_modules/async/lib/async.js:612:34 at /Users/raymond/.appcelerator/install/4.0.1/package/node_modules/appc-cli-titanium/node_modules/node-appc/lib/environ.js:234:7 TRACE | titanium exited with exit code 8 ERROR | Error: ti run exited with error code 8

Comments

  1. Amimul Hossain 2015-09-15

    Hello, This is not a bug in latest SDK 4.1.1.GA. I am not sure you are still having the issue. Try updating your Studio, SDK and CLI. Feel free to reply back with your findings. Thanks.
  2. Raymond Verbruggen 2015-09-17

    Hello, I think this is a bug in the module regarding the module's version number format 1.02.0 versus 1.2.0 . I already asked the developer to update the module but no response. Could you please address this issue to the developer also? Best regards Raymond
  3. Jebun Naher 2015-11-17

    Hello, We couldn't reproduce this issue as a bug in our environment. To reproduce this error, we compiled an existing SDK 3.5.1 project for SDK 4.0.0 and it worked fine with no error. *Testing Environment:* Appcelerator Command-Line Interface, version 5.0.4 Appcelerator Studio, build: 4.3.3.201510212245 Ti SDK Version :3.5.1GA, 4.0.0 GA Node.js Version :0.10.37 Mac OS X,Version :10.10.1(Mac OSX Yosemite) Jdk version : 1.7.0_80.jdk xcode version: 6.2 simulator : iPhone 6(8.2) *Steps to test:* 1. Create/select an existing SDK 3.5.1 project and compile it for SDK 4.0.0 *Console Log:*
       [INFO] :   Finished building the application in 2m 32s 547ms
       [INFO] :   Launching iOS Simulator
       [LiveView] version 1.0.9
       [LiveView] File Server Started on Port 8324
       [LiveView] Event Server Started on Port 8323
       [INFO] :   Project built successfully in 3m 46s 224ms
       -- Start simulator log -------------------------------------------------------
       [INFO] :   Application started
       [INFO] :   jebunclassic2/1.0 (4.0.0.9239ff9)
       [LiveView] Client connected
       
    Thanks.
  4. Raymond Verbruggen 2015-11-26

    Hello, The error is still present, I tested it in SDK 5.1.1 as shown below. Sorry but your testcase is not compatible with how I get the error. Please reopen and solve, this is becoming critical for an update to an app currently in production!! [INFO] : Found Titanium module id=it.logicainformatica.dropdown version=1.02 platform=iphone deploy-type=development path=/Users/raymond/Library/Application Support/Titanium/modules/iphone/it.logicainformatica.dropdown/1.02 /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/node-appc/node_modules/semver/semver.js:293 throw new TypeError('Invalid Version: ' + version); ^ TypeError: Invalid Version: 1.02.0 at new SemVer (/Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/node-appc/node_modules/semver/semver.js:293:11) at compare (/Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/node-appc/node_modules/semver/semver.js:569:10) at Function.lt (/Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/node-appc/node_modules/semver/semver.js:603:10) at Object.lt (/Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/node-appc/lib/version.js:57:16) at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/node-appc/lib/timodule.js:296:23 at Array.forEach (native) at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/node-appc/lib/timodule.js:276:10 at Array.forEach (native) at Object.detect.callback (/Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/node-appc/lib/timodule.js:229:37) at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/node-appc/lib/timodule.js:170:51 --------------------------------------------- at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:275:35 at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:44:16 at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:694:17 at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:173:37 at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/node-appc/lib/async.js:64:51 at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:689:13 at iterate (/Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:265:13) at doNTCallback0 (node.js:419:9) --------------------------------------------- at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:275:35 at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:44:16 at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:694:17 at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:173:37 at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/node-appc/lib/async.js:64:51 at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:689:13 at iterate (/Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:265:13) at doNTCallback0 (node.js:419:9) --------------------------------------------- at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:275:35 at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:44:16 at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:694:17 at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:173:37 at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/node-appc/lib/async.js:64:51 at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:689:13 at iterate (/Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:265:13) at doNTCallback0 (node.js:419:9) --------------------------------------------- at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:275:35 at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:44:16 at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:694:17 at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:173:37 at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/node-appc/lib/async.js:64:51 at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:689:13 at iterate (/Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:265:13) at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:277:29 at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:44:16 --------------------------------------------- at magik (/Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/ioslib/lib/utilities.js:40:13) at detect (/Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/ioslib/lib/simulator.js:123:9) at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/ioslib/lib/simulator.js:426:3 at fireCallbacks (/Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/ioslib/lib/xcode.js:63:5) at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/ioslib/lib/xcode.js:69:11 at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/ioslib/lib/utilities.js:55:9 at doNTCallback0 (node.js:419:9) at process._tickCallback (node.js:348:13) --------------------------------------------- at magik (/Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/ioslib/lib/utilities.js:40:13) at Object.detect (/Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/ioslib/lib/xcode.js:56:27) at Object.findSimulators (/Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/ioslib/lib/simulator.js:420:8) at iOSBuilder.selectDevice (/Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/iphone/cli/commands/_build.js:1737:22) at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:689:13 at iterate (/Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:265:13) at doNTCallback0 (node.js:419:9) at process._tickCallback (node.js:348:13) --------------------------------------------- at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:275:35 at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:44:16 at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:694:17 at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:173:37 at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/node-appc/lib/async.js:64:51 at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:689:13 at iterate (/Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:265:13) at doNTCallback0 (node.js:419:9) --------------------------------------------- at /Users/raymond/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/async/lib/async.js:275:35 2015-11-26T10:24:56.681Z | TRACE | titanium exited with exit code 1 2015-11-26T10:24:56.682Z | ERROR | Error: ti run exited with error code 1 at ChildProcess. (/Users/raymond/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/plugins/run.js:92:23) at emitTwo (events.js:87:13) at ChildProcess.emit (events.js:172:7) at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) 2015-11-26T10:24:56.683Z | TRACE | Sending exit signal to titanium process: 34566 at /Users/raymond/Library/

JSON Source