{ "id": "159842", "key": "TIMOB-23279", "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": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" }, { "id": "18198", "name": "windowslib 0.4.15", "archived": false, "released": true, "releaseDate": "2016-07-12" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-07-14T22:59:45.000+0000", "created": "2016-04-27T02:21:35.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "18049", "name": "windowslib 0.4.9", "archived": false, "released": true, "releaseDate": "2016-04-19" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-10-05T16:09:14.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "wptool.js always reports a device, even if there is not one connected\r\n\r\n{code}\r\n{\r\n \"name\": \"Device\",\r\n \"udid\": 0,\r\n \"index\": 0,\r\n \"wpsdk\": null\r\n }\r\n{code}\r\n\r\nThe wptool binary does not omit any invalid devices, this is reported when no device is connected or when two devices are connected.\r\n{code}\r\n{\r\n \"name\": \"Device\",\r\n \"udid\": 0,\r\n \"index\": 0,\r\n \"version\": \"2147483647.2147483647.2147483647.2147483647\",\r\n \"wpsdk\": null\r\n }\r\n{code}", "attachment": [], "flagged": false, "summary": "Windows: Omit invalid devices from wptool detection", "creator": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 678, "state": "closed", "name": "2016 Sprint 14 SDK", "startDate": "2016-07-02T00:25:57.921Z", "endDate": "2016-07-16T00:25:00.000Z", "completeDate": "2016-07-18T03:18:29.729Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "384011", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/windowslib/pull/42", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-04-27T02:28:21.000+0000", "updated": "2016-04-27T02:28:21.000+0000" }, { "id": "385134", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~cwilliams] Could you review this? Is this still valid [~gmathews]?", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-05-09T12:30:21.000+0000", "updated": "2016-05-09T12:30:21.000+0000" }, { "id": "385279", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~kota] Yes, this is still valid", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-05-10T13:26:13.000+0000", "updated": "2016-05-10T13:26:13.000+0000" }, { "id": "390565", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~gmathews] I tried this locally, and {{ti info -p windows -o json}} gives me following result.\r\n\r\n*When a device is connected*\r\n{code}\r\n\"devices\": [\r\n {\r\n \"name\": \"Lumia 630 Dual SIM (RM-978)\",\r\n \"udid\": \"00000015-4901-3b2b-0000-000000000000\",\r\n \"index\": 0,\r\n \"wpsdk\": \"8.1\",\r\n \"ip\": \"127.0.0.1\"\r\n }\r\n]\r\n{code}\r\n\r\nThis looks good.(y)\r\n\r\n*When no device is connected*\r\n{code}\r\n\"devices\": [\r\n {\r\n \"name\": \"Device\",\r\n \"udid\": 0,\r\n \"index\": 0,\r\n \"wpsdk\": null\r\n }\r\n],\r\n{code}\r\n\r\nIs this expected result? Do we want to show this place holder device when no device is connected? > [~gmathews]\r\nIf so, could you push a PR to {{titanium_mobile}} to request bump up the version for {{windowslib}}? Thanks.\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-07-13T01:55:51.000+0000", "updated": "2016-07-13T01:55:51.000+0000" }, { "id": "390710", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "titanium_mobile: https://github.com/appcelerator/titanium_mobile/pull/8138", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-14T17:48:17.000+0000", "updated": "2016-07-14T17:48:17.000+0000" }, { "id": "392076", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~gmathews] Is it ok to make this ticket be \"resolved\" while [windowslib/pull/49|https://github.com/appcelerator/windowslib/pull/49] is still open?", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-01T01:32:14.000+0000", "updated": "2016-08-01T01:32:14.000+0000" }, { "id": "398135", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified using:\r\n\r\nOS: Microsoft Windows 10 Pro 10.0.14393\r\nAppc core: 6.0.0-56\r\nAppc NPM: 4.2.8-7\r\nTi SDK: 6.0.0.v20161004202820\r\nAppc Studio: 4.8.0.201609292239\r\n\r\nWhen no device is connected {{ti info -t windows}} and {{ti info -t windows -o json}} no longer report the placeholder device\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2016-10-05T16:09:10.000+0000", "updated": "2016-10-05T16:09:10.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }