{ "id": "141750", "key": "TIMOB-18240", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-07-26T03:08:18.000+0000", "created": "2014-12-17T01:18:25.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.5.0" ], "versions": [ { "id": "16676", "description": "Release 3.4.1", "name": "Release 3.4.1", "archived": false, "released": true, "releaseDate": "2014-11-14" } ], "issuelinks": [], "assignee": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-07-26T03:08:18.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": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "On a new Windows 7 machine, though Android SDK is installed and available, the titanium info command does not return any platform targets for Android SDK. No errors are displayed with the titanium info command.\r\n\r\nHowever, only when I ran android list command, the output contains \"xcopy not recognized as a valid command\". After updating the env variable PATH with the location of xcopy, only then titanium info command is able to resolve the Android platform targets on the machine.\r\n\r\nSo, CLI is not able to parse the \"android list\" output if there are any warnings/errors, though they shouldn't impact the list of platforms/emulators.", "attachment": [], "flagged": false, "summary": "CLI: Android platform targets not detected when xcopy is not available on path", "creator": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Windows 7, Windows 8.1", "comment": { "comments": [ { "id": "339079", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "This problem also happens on Windows 8.1 systems with existing Titanium installations.\r\n\r\nThe xcopy.exe command is located in %SystemRoot%\\system32 (typically C:\\Windows\\System32, though could be elsewhere). This folder reference would typically be added to the {{Path}} variable in the System Variables section of the Environment Variables dialog rather than the {{PATH}} variable in the User Variables section. Those are concatenated to create the actual environment for cmd/PowerShell.\r\n\r\nRemove %SystemRoot%\\system32; from the path and the error will occur with {{ti info}}. The error appears to happen when exec'ing the {{wmic}} command in node-app/lib/environ, here: https://github.com/appcelerator/node-appc/blob/master/lib/environ.js#L243\r\n\r\nRunning {{wmic os get Caption,Version}} at the prompt even with system32 missing from the path is successful.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2015-01-14T19:19:35.000+0000", "updated": "2015-01-14T19:19:35.000+0000" }, { "id": "424719", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing due to inactivity. If this issue still exists, please raise a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-26T03:08:18.000+0000", "updated": "2017-07-26T03:08:18.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }