{ "id": "162872", "key": "DAEMON-32", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12519", "key": "DAEMON", "name": "Appcelerator Daemon" }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-10-17T03:53:20.000+0000", "created": "2016-08-30T00:53:30.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-10-17T03:53:20.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "15053", "name": "jdklib", "description": "Library for JDK related functions" } ], "description": "*Details:* On Windows, if you move your JDK while running jdklib.watch(), then {{TypeError: Path must be a string}} error is returned.\r\n\r\n*Notes:* This is not reproducible with JDK on Mac.\r\n\r\n*Steps to reproduce:*\r\n# Make sure you are using Node 4.X.X on Windows\r\n# Clone and run {{npm install}} on https://github.com/appcelerator/jdklib\r\n# Symlink to the above built jdklib v2\r\n# Run this Node script:\r\n{code}\r\n'use strict';\r\n\r\nconst jdklib = require('jdklib');\r\n\r\njdklib\r\n .watch()\r\n .on('results', results => {\r\n console.log(JSON.stringify(results, null, 4));\r\n });\r\n{code}\r\n# Find your JDK and move it\r\n\r\n*Actual:* {{TypeError: Path must be a string}} error is returned:\r\n{code}\r\nTypeError: Path must be a string. Received null\r\n at assertPath (path.js:8:11)\r\n at Object.win32.join (path.js:221:5)\r\n at Watcher.onChange (C:\\Users\\qe\\Desktop\\something\\node_modules\\jdklib\\node_modules\\node-appc\\dist\\fs.js:270:19)\r\n at emitTwo (events.js:87:13)\r\n at FSWatcher.emit (events.js:172:7)\r\n at FSEvent.FSWatcher._handle.onchange (fs.js:1221:12)\r\n{code}\r\n\r\n*Expected:* No errors should be returned while watching the JDK.", "attachment": [ { "id": "60156", "filename": "bug.gif", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-30T00:53:28.000+0000", "size": 771907, "mimeType": "image/gif" } ], "flagged": false, "summary": "Windows: jdklib v2 - If you move your JDK while running jdklib.watch(), then \"TypeError: Path must be a string\" error is returned", "creator": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "OS: Windows 10\r\njdklib: 1.3.0, 1.3.1", "closedSprints": [ { "id": 759, "state": "closed", "name": "2016 Sprint 24 Tooling", "startDate": "2016-11-19T01:30:27.024Z", "endDate": "2016-12-03T01:30:00.000Z", "completeDate": "2016-12-05T01:56:08.379Z", "originBoardId": 199 }, { "id": 745, "state": "closed", "name": "2016 Sprint 22 Tooling", "startDate": "2016-10-22T00:19:59.632Z", "endDate": "2016-11-05T00:19:00.000Z", "completeDate": "2016-11-07T04:39:49.512Z", "originBoardId": 199 }, { "id": 751, "state": "closed", "name": "2016 Sprint 23 Tooling", "startDate": "2016-11-05T00:40:36.428Z", "endDate": "2016-11-19T01:40:00.000Z", "completeDate": "2016-11-28T03:51:25.291Z", "originBoardId": 199 } ], "comment": { "comments": [ { "id": "406958", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This ticket is probably no longer valid. Must wait a while longer before it can be re-validated.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2017-02-14T04:33:35.000+0000", "updated": "2017-02-14T04:33:35.000+0000" }, { "id": "429162", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This issue is no longer valid.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2017-10-17T03:53:20.000+0000", "updated": "2017-10-17T03:53:20.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }