{ "id": "123579", "key": "TIMOB-15956", "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": [ { "id": "15715", "description": "2013 Sprint 25", "name": "2013 Sprint 25", "archived": true, "released": true, "releaseDate": "2013-12-13" }, { "id": "15718", "description": "2013 Sprint 25 Tooling", "name": "2013 Sprint 25 Tooling", "archived": true, "released": true, "releaseDate": "2013-12-13" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-12-12T23:16:05.000+0000", "created": "2013-12-11T06:18:22.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-closed-3.2.0", "qe-testadded", "triage" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-02-24T18:19:06.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": "10202", "name": "Android", "description": "Android Platform" }, { "id": "13600", "name": "LiveView", "description": "Live preview of Titanium apps" } ], "description": "Steps to reproduce:\r\n\r\n1. Create an alloy app in Studio\r\n2. Enable liveview\r\n3. Run the app on either device or emulator\r\n\r\nExpected:\r\nLiveview should run correctly\r\n\r\nActual:\r\nThe liveview hook fails with the error:\r\n\r\n{code}\r\npath.js:204\r\n throw new TypeError('Arguments to path.join must be strings');\r\n ^\r\nTypeError: Arguments to path.join must be strings\r\n at f (path.js:204:15)\r\n at Object.filter (native)\r\n at exports.join (path.js:209:40)\r\n at Object. (C:\\Users\\Thomas Anderson\\AppData\\Local\\Appcelerator Studio\\plugins\\com.appcelerator.titanium.liveview.core_1.0.0.1385592010\\node_modules\\liveview\\lib\\fserver.js:24:15)\r\n at Module._compile (module.js:456:26)\r\n at Object.Module._extensions..js (module.js:474:10)\r\n at Module.load (module.js:356:32)\r\n at Function.Module._load (module.js:312:12)\r\n at Module.require (module.js:364:17)\r\n at require (module.js:380:17)\r\n{code}", "attachment": [ { "id": "44543", "filename": "Screen Shot 2013-12-10 at 11.15.03 PM.png", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-11T07:16:08.000+0000", "size": 46287, "mimeType": "image/png" } ], "flagged": false, "summary": "LiveView: Windows: Fails to run on android device/emulator. \"Arguments to path.join must be strings\"", "creator": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Windows 8\r\nTitanium SDK: 3.2.0.v20131210191510\r\nAppcelerator Studio: ", "closedSprints": [ { "id": 24, "state": "closed", "name": "2013 Sprint 25", "startDate": "2013-12-02T22:12:56.347Z", "endDate": "2013-12-15T22:12:56.347Z", "completeDate": "2013-12-16T16:59:16.390Z" } ], "comment": { "comments": [ { "id": "283761", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "What version of liveview are you using?", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-11T06:51:11.000+0000", "updated": "2013-12-11T06:51:11.000+0000" }, { "id": "283765", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm not sure how to check for the version, but I attached the plugin version", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-11T07:16:12.000+0000", "updated": "2013-12-11T07:16:12.000+0000" }, { "id": "283801", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FWIW, line 24 is:\n\n{code}\nvar TMP_DIR = join(process.env.HOME, '/.titanium/')\n{code}\n\nWhich suggests that process.env.HOME is not a string:\n\nhttp://nodejs.org/api/path.html#path_path_join_path1_path2\n\nIt would be helpful if in the case a path was incorrect, it printed out the path it was _trying_ to use into the error message.\n\nYou can find the LiveView version by running diagnostics and it's one of the things printed out. You could alternately open up the plugin folder on disk and look for the package.json file there.\n\n", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-11T12:46:39.000+0000", "updated": "2013-12-11T12:46:39.000+0000" }, { "id": "283829", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Just checked... LiveView Version: 0.1.35", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-11T17:40:14.000+0000", "updated": "2013-12-11T17:40:14.000+0000" }, { "id": "283830", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Perhaps there is a better way of determining the HOME? http://stackoverflow.com/questions/9080085/node-js-find-home-directory-in-platform-agnostic-way", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-11T17:44:50.000+0000", "updated": "2013-12-11T17:44:50.000+0000" }, { "id": "283874", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Changing process.env.HOME to process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME'] works for me in windows, but now launches, and it does not update correctly on my device.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-11T21:49:48.000+0000", "updated": "2013-12-11T21:49:48.000+0000" }, { "id": "284124", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "RESOLVED in [MASTER] https://github.com/appcelerator/liveview/commit/025fdf04d54863b494a98a37c4ab2a1e367f497c", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-12T23:15:44.000+0000", "updated": "2013-12-12T23:15:44.000+0000" }, { "id": "284222", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested on:\nWindows 8\nAppcelerator Studio, build: 3.2.0.201312121648\nTitanium SDK, build: 3.2.0.v20131212122847\nCLI: 3.2.0-cr3\nAlloy: 1.3.0-cr\nLiveView: 0.1.35\nAndroid Emulator: 2.3.3\n\nStudio launches emulator and app starts successfully.\nClosing.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-13T18:15:25.000+0000", "updated": "2013-12-13T18:15:25.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }