{ "id": "124639", "key": "TIMOB-16165", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2014-01-10T19:06:36.000+0000", "created": "2014-01-10T11:18:10.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "3.2", "longjohn.js", "mobile", "titanium" ], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-22T21:14:38.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "I have uninstalled and reinstalled studio several times. I believe my OS SDKS are properly installed. I was an early adopter of Titanium am and not sure if there is anything lingering on my machine from past installs but I cannot create a project. I have read all the longjohn.js posts and can't find a solution. \r\n\r\n/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:184\r\n throw e;\r\n ^\r\nTypeError: Invalid Version: continuous-1.7.0\r\n at new SemVer (/usr/local/lib/node_modules/titanium/node_modules/node-appc/node_modules/semver/semver.js:271:11)\r\n at compare (/usr/local/lib/node_modules/titanium/node_modules/node-appc/node_modules/semver/semver.js:424:10)\r\n at Function.lt (/usr/local/lib/node_modules/titanium/node_modules/node-appc/node_modules/semver/semver.js:458:10)\r\n at Object.lt (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/version.js:57:16)\r\n at run (/usr/local/lib/node_modules/titanium/lib/titanium.js:331:32)\r\n at /usr/local/lib/node_modules/titanium/lib/titanium.js:65:5\r\n at exithandler (child_process.js:635:7)\r\n at EventEmitter.emit (events.js:98:17)\r\n at maybeClose (child_process.js:735:16)\r\n---------------------------------------------\r\n at exports.execFile (child_process.js:691:9)\r\n at exports.exec (child_process.js:578:18)\r\n at detectLocale (/usr/local/lib/node_modules/titanium/lib/titanium.js:64:4)\r\n at /usr/local/lib/node_modules/titanium/lib/titanium.js:79:2\r\n at Object. (/usr/local/lib/node_modules/titanium/lib/titanium.js:80:2)\r\n at Module._compile (module.js:456:26)\r\n at Module._extensions..js (module.js:474:10)\r\n at Module.load (module.js:356:32)", "attachment": [], "flagged": false, "summary": "Longjohn.js error on Titanium 3.2", "creator": { "name": "jaymefishman", "key": "jaymefishman", "displayName": "Jayme Fishman", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jaymefishman", "key": "jaymefishman", "displayName": "Jayme Fishman", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "OSX", "comment": { "comments": [ { "id": "287683", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "\"continuous-1.7.0\" is not a valid Titanium SDK folder name. It must be in a 3 digit format X.Y.Z. If you rename the folder \"1.7.0.CI\", that should work.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-01-10T19:06:36.000+0000", "updated": "2014-01-10T19:06:36.000+0000" }, { "id": "287698", "author": { "name": "jaymefishman", "key": "jaymefishman", "displayName": "Jayme Fishman", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can you please tell me how to find that folder to change it? I don't see it anywhere. I think it was from an old install but I can't locate it.", "updateAuthor": { "name": "jaymefishman", "key": "jaymefishman", "displayName": "Jayme Fishman", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-10T20:35:44.000+0000", "updated": "2014-01-10T20:35:44.000+0000" }, { "id": "287719", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~jaymefishman] Try running:\n\n{code}\nti sdk\n{code}\n\nIt should give you the Titanium SDK installation locations and which SDKs are installed.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-01-10T22:19:32.000+0000", "updated": "2014-01-10T22:19:32.000+0000" }, { "id": "287722", "author": { "name": "jaymefishman", "key": "jaymefishman", "displayName": "Jayme Fishman", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This may be part of my problem. I get the same error when I run ti sdk. I don't think the studio is installing correctly (unless I don't understand this output correctly). Please advise: \r\n\r\n$ ti sdk\r\n\r\n/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:184\r\n throw e;\r\n ^\r\nTypeError: Invalid Version: continuous-1.7.0\r\n at new SemVer (/usr/local/lib/node_modules/titanium/node_modules/node-appc/node_modules/semver/semver.js:271:11)\r\n at compare (/usr/local/lib/node_modules/titanium/node_modules/node-appc/node_modules/semver/semver.js:424:10)\r\n at Function.lt (/usr/local/lib/node_modules/titanium/node_modules/node-appc/node_modules/semver/semver.js:458:10)\r\n at Object.lt (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/version.js:57:16)\r\n at run (/usr/local/lib/node_modules/titanium/lib/titanium.js:331:32)\r\n at /usr/local/lib/node_modules/titanium/lib/titanium.js:65:5\r\n at exithandler (child_process.js:635:7)\r\n at EventEmitter.emit (events.js:98:17)\r\n at maybeClose (child_process.js:735:16)\r\n---------------------------------------------\r\n at exports.execFile (child_process.js:691:9)\r\n at exports.exec (child_process.js:578:18)\r\n at detectLocale (/usr/local/lib/node_modules/titanium/lib/titanium.js:64:4)\r\n at /usr/local/lib/node_modules/titanium/lib/titanium.js:79:2\r\n at Object. (/usr/local/lib/node_modules/titanium/lib/titanium.js:80:2)\r\n at Module._compile (module.js:456:26)\r\n at Module._extensions..js (module.js:474:10)\r\n at Module.load (module.js:356:32)", "updateAuthor": { "name": "jaymefishman", "key": "jaymefishman", "displayName": "Jayme Fishman", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-10T22:35:15.000+0000", "updated": "2014-01-10T22:35:15.000+0000" }, { "id": "287729", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~jaymefishman] OK, no problem.\n\nFirst, let's de-select the selected SDK:\n\n{code}\nti config -r sdk.selected\nti config -r app.sdk\n{code}\n\nNext we need to find where the SDKs are installed. On Mac OS X, the two default installation locations are:\n\n{{/Library/Application Support/Titanium/mobilesdk/osx/}}\n\n{{~/Library/Application Support/Titanium/mobilesdk/osx/}}\n\nLook for these folders and if you find these containing the offending folder and move it somewhere or delete it.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-01-10T22:52:17.000+0000", "updated": "2014-01-10T22:52:17.000+0000" }, { "id": "287735", "author": { "name": "jaymefishman", "key": "jaymefishman", "displayName": "Jayme Fishman", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am trying that but the first command throws the same errors as all the rest:\r\n\r\n$ ti config -r sdk.selected\r\n\r\n/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:184\r\n throw e;\r\n ^\r\nTypeError: Invalid Version: continuous-1.7.0\r\n at new SemVer (/usr/local/lib/node_modules/titanium/node_modules/node-appc/node_modules/semver/semver.js:271:11)\r\n at compare (/usr/local/lib/node_modules/titanium/node_modules/node-appc/node_modules/semver/semver.js:424:10)\r\n at Function.lt (/usr/local/lib/node_modules/titanium/node_modules/node-appc/node_modules/semver/semver.js:458:10)\r\n at Object.lt (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/version.js:57:16)\r\n at run (/usr/local/lib/node_modules/titanium/lib/titanium.js:331:32)\r\n at /usr/local/lib/node_modules/titanium/lib/titanium.js:65:5\r\n at exithandler (child_process.js:635:7)\r\n at EventEmitter.emit (events.js:98:17)\r\n at maybeClose (child_process.js:735:16)\r\n---------------------------------------------\r\n at exports.execFile (child_process.js:691:9)\r\n at exports.exec (child_process.js:578:18)\r\n at detectLocale (/usr/local/lib/node_modules/titanium/lib/titanium.js:64:4)\r\n at /usr/local/lib/node_modules/titanium/lib/titanium.js:79:2\r\n at Object. (/usr/local/lib/node_modules/titanium/lib/titanium.js:80:2)\r\n at Module._compile (module.js:456:26)\r\n at Module._extensions..js (module.js:474:10)\r\n at Module.load (module.js:356:32)", "updateAuthor": { "name": "jaymefishman", "key": "jaymefishman", "displayName": "Jayme Fishman", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-10T23:04:29.000+0000", "updated": "2014-01-10T23:04:29.000+0000" }, { "id": "287736", "author": { "name": "jaymefishman", "key": "jaymefishman", "displayName": "Jayme Fishman", "active": true, "timeZone": "America/Los_Angeles" }, "body": "found the offending folder. ", "updateAuthor": { "name": "jaymefishman", "key": "jaymefishman", "displayName": "Jayme Fishman", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-10T23:07:05.000+0000", "updated": "2014-01-10T23:07:05.000+0000" }, { "id": "287738", "author": { "name": "jaymefishman", "key": "jaymefishman", "displayName": "Jayme Fishman", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I removed that folder. Now it lets me create a project and run it on the simulator! Thank you! That was crazy ... I am back on Appcelerator. Yipee. Thanks again.", "updateAuthor": { "name": "jaymefishman", "key": "jaymefishman", "displayName": "Jayme Fishman", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-10T23:10:51.000+0000", "updated": "2014-01-10T23:10:51.000+0000" }, { "id": "287740", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Awesome! Good luck and happy hacking!", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-01-10T23:12:49.000+0000", "updated": "2014-01-10T23:12:49.000+0000" }, { "id": "289263", "author": { "name": "dawez", "key": "dawez", "displayName": "Davide", "active": true, "timeZone": "Europe/Berlin" }, "body": "I guess I am facing the same issue on Linux. What is the folder you removed ? When I start \r\n\r\nti build\r\n\r\nI have this error:\r\n\r\nbq.\r\n/usr/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:184\r\n throw e;\r\n ^\r\nTypeError: Object [object Object] has no method 'split'\r\n", "updateAuthor": { "name": "dawez", "key": "dawez", "displayName": "Davide", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-01-22T19:11:03.000+0000", "updated": "2014-01-22T20:00:54.000+0000" }, { "id": "289280", "author": { "name": "jaymefishman", "key": "jaymefishman", "displayName": "Jayme Fishman", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It is listed in the string above \"continuous-1.7.0\". However, I believe it would be any older folder that violates the new naming convention (which I believe should be in a 3 digit format according to the early post on this string). I had used an earlier version of the platform that older directory was never renamed, moved, or deleted which is what you would need to do.", "updateAuthor": { "name": "jaymefishman", "key": "jaymefishman", "displayName": "Jayme Fishman", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-22T20:01:08.000+0000", "updated": "2014-01-22T20:01:08.000+0000" }, { "id": "289411", "author": { "name": "dawez", "key": "dawez", "displayName": "Davide", "active": true, "timeZone": "Europe/Berlin" }, "body": "Strangely enough my error message is caused still by longjohn.js and cause the ti process to exit.\r\n\r\nIn longjohn.js there is the line 184 which trigger the exception. By commenting that I do not have the exception appearing but does not be a good solution.\r\n\r\nnew_callback = function() {\r\n var e;\r\n current_trace_error = trace_error;\r\n trace_error = null;\r\n try {\r\n return callback.apply(this, arguments);\r\n } catch (_error) {\r\n e = _error;\r\n e.stack;\r\n// throw e;\r\n } finally {\r\n current_trace_error = null;\r\n }\r\n };\r\n\r\n\r\nThere was an error appearing in longjohn.js [https://github.com/mattinsler/longjohn/issues/12] but it seems that this is fixed [I cannot see that error appearing when I run the simple test case attached there]\r\n\r\nti sdk check reports:\r\n\r\n──────────────────┤ Check Environment ├───────────────────\r\n\r\nNode.js\r\n ★ node new version v0.10.24 available! (currently v0.11.10)\r\n ★ npm new version v1.3.21 available! (currently v1.3.22)\r\n \r\nTitanium CLI\r\n ★ cli new version v3.2.1-beta3 available (currently v3.2.0)\r\n \r\nTitanium CLI Dependencies\r\n ✓ async up-to-date (v0.2.9)\r\n ✓ colors up-to-date (v0.6.2)\r\n ✓ fields up-to-date (v0.1.11)\r\n ✓ humanize up-to-date (v0.0.9)\r\n ✓ jade up-to-date (v0.35.0)\r\n ✓ longjohn up-to-date (v0.2.2)\r\n ✓ moment up-to-date (v2.4.0)\r\n ✓ node-appc up-to-date (v0.2.0)\r\n ✓ optimist up-to-date (v0.6.0)\r\n ✓ request up-to-date (v2.27.0)\r\n ✓ semver up-to-date (v2.2.1)\r\n ✓ sprintf up-to-date (v0.1.3)\r\n ✓ temp up-to-date (v0.6.0)\r\n ✓ winston up-to-date (v0.6.2)\r\n ✓ wrench up-to-date (v1.5.6)\r\n \r\nTitanium SDK\r\n ✓ latest sdk installed (v3.2.0.GA)\r\n ✓ selected sdk up-to-date (v3.2.0.GA)\r\n \r\nAndroid Environment\r\n ✓ sdk installed (/home/user/android-sdk-linux)\r\n ✓ tools installed (v22.3)\r\n ✓ platform tools installed (v19.0.1)\r\n ✓ build tools installed (v17)\r\n ✓ adb installed /home/user/android-sdk-linux/platform-tools/adb\r\n ✓ android installed /home/user/android-sdk-linux/tools/android\r\n ✓ emulator installed /home/user/android-sdk-linux/tools/emulator\r\n ✓ mksdcard installed /home/user/android-sdk-linux/tools/mksdcard\r\n ✓ zipalign installed /home/user/android-sdk-linux/tools/zipalign\r\n ✓ aapt installed /home/user/android-sdk-linux/build-tools/17.0.0/aapt\r\n ✓ aidl installed /home/user/android-sdk-linux/build-tools/17.0.0/aidl\r\n ✓ targets installed (3 found)\r\n ✓ avds installed (1 found)\r\n ✓ ndk installed (undefined)\r\n ✓ ndk-build installed (undefined)\r\n\r\n\r\n\r\n", "updateAuthor": { "name": "dawez", "key": "dawez", "displayName": "Davide", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-01-23T16:08:36.000+0000", "updated": "2014-01-23T16:08:36.000+0000" }, { "id": "289440", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~dawez] Longjohn.js is the stack trace module for Node.js we use to try and get more detailed error messages. If you ever see a longjohn error, it is NEVER the root cause.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-01-23T18:15:45.000+0000", "updated": "2014-01-23T18:15:45.000+0000" }, { "id": "289465", "author": { "name": "jaymefishman", "key": "jaymefishman", "displayName": "Jayme Fishman", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am not a tech resource but shouldn't he try to run: ti sdk so you can see more about the error? That is what I did and it revealed an offending folder.", "updateAuthor": { "name": "jaymefishman", "key": "jaymefishman", "displayName": "Jayme Fishman", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-23T19:19:29.000+0000", "updated": "2014-01-23T19:19:29.000+0000" }, { "id": "289488", "author": { "name": "dawez", "key": "dawez", "displayName": "Davide", "active": true, "timeZone": "Europe/Berlin" }, "updateAuthor": { "name": "dawez", "key": "dawez", "displayName": "Davide", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-01-23T20:51:28.000+0000", "updated": "2014-01-23T20:51:28.000+0000" }, { "id": "289489", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~dawez] Sounds like your error has nothing to do with this ticket. Please create a new ticket describing your problem and include an attachment containing the output from the \"ti info\" command. Thanks!", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-01-23T21:21:38.000+0000", "updated": "2014-01-23T21:21:38.000+0000" }, { "id": "414971", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T21:14:38.000+0000", "updated": "2017-03-22T21:14:38.000+0000" } ], "maxResults": 17, "total": 17, "startAt": 0 } } }