{ "id": "148605", "key": "AC-1200", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2015-07-02T18:28:35.000+0000", "created": "2015-06-09T10:10:48.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "updated": "2016-03-08T07:37:34.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": [ { "id": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Alloy projects can't be compiled anymore after the latest update. TS gives the following error:\r\n\r\n{code}\r\n[ERROR] Application Installer abnormal process termination. Process exit value was 8\r\n\r\nC:\\Users\\Francois\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\longjohn\\dist\\longjohn.js:185\r\n throw e;\r\n ^\r\nTypeError: Arguments to path.join must be strings\r\n at f (path.js:204:15)\r\n at filter (native)\r\n at exports.join (path.js:209:40)\r\n at D:\\Titanium_Studio_Workspace\\test123\\plugins\\ti.alloy\\hooks\\alloy.js:105:15\r\n{code}\r\n\r\nThe bug is added by the latest update:\r\n{code}\r\n\tif (paths[bin]) {\r\n\t\tdone();\r\n\t} else if (process.platform === 'win32' && bin === 'alloy') { // HERE !!!\r\n\t\tpaths.alloy = 'alloy.cmd';\r\n\t\tdone();\r\n\t} else {\r\n\t\texec('which ' + bin, function (err, stdout, strerr) {\r\n\t\t\tif (!err) {\r\n\t\t\t\tpaths[bin] = stdout.trim();\r\n\t\t\t\tdone();\r\n\t\t\t} else {\r\n\t\t\t\tparallel(this, [\r\n\t\t\t\t\t'/usr/local/bin/' + bin,\r\n\t\t\t\t\t'/opt/local/bin/' + bin,\r\n\t\t\t\t\tpath.join(process.env.HOME, 'local/bin', bin),\r\n{code}\r\n\r\nThe (bin === 'alloy') condition is added. As the result execution goes to the 'else' branch and crash on the path.join as there is no process.env.HOME is usually set in the windows environment.\r\n\r\nCould you please fix that. Or better, rewrite the whole 'run' function as the code is not perfect.\r\n\r\nThanks", "attachment": [], "flagged": false, "summary": "Arguments to path.join must be strings", "creator": { "name": "fixplease", "key": "fixplease", "displayName": "Fix Please", "active": true, "timeZone": "Europe/Luxembourg" }, "subtasks": [], "reporter": { "name": "fixplease", "key": "fixplease", "displayName": "Fix Please", "active": true, "timeZone": "Europe/Luxembourg" }, "environment": "Win 7 x64", "comment": { "comments": [ { "id": "354677", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "body": "[~fixplease] is something that we can replicate with a vanilla Alloy app? if not, you mins attaching a test case that replicates the issue?\r\n\r\nThanks", "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2015-06-09T18:01:08.000+0000", "updated": "2015-06-09T18:01:08.000+0000" }, { "id": "354689", "author": { "name": "fixplease", "key": "fixplease", "displayName": "Fix Please", "active": true, "timeZone": "Europe/Luxembourg" }, "body": "I used just newly created Alloy app (File->New->Mobile App Project->Alloy->Default Alloy Project).\r\n\r\nHowever, it's clear that the code above is buggy. No?\r\nSee the ..\\AppData\\Roaming\\npm\\node_modules\\alloy\\hooks\\alloy.js around lines ##90-100", "updateAuthor": { "name": "fixplease", "key": "fixplease", "displayName": "Fix Please", "active": true, "timeZone": "Europe/Luxembourg" }, "created": "2015-06-09T20:07:50.000+0000", "updated": "2015-06-09T20:07:50.000+0000" }, { "id": "356764", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2015-07-02T18:28:19.000+0000", "updated": "2015-07-02T18:28:19.000+0000" }, { "id": "356765", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2015-07-02T18:28:35.000+0000", "updated": "2015-07-02T18:28:35.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }