{ "id": "153215", "key": "ALOY-1331", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "17081", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" }, { "id": "17475", "name": "alloy 1.7.26", "archived": false, "released": true, "releaseDate": "2015-11-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-11-23T02:54:05.000+0000", "created": "2015-11-16T23:34:31.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-5.1.0" ], "versions": [ { "id": "17371", "name": "alloy 1.7.25", "archived": false, "released": true, "releaseDate": "2015-11-12" } ], "issuelinks": [], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2016-01-13T22:22:24.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": "12329", "name": "Runtime", "description": "Generic bucket for uncategorized runtime issues" } ], "description": "h5.Description\r\n\r\nWhen building an Alloy app for Windows Platform the app crashes with the below error\r\n\r\n\r\nThe error originates from [this line in alloy.js|https://github.com/appcelerator/alloy/blob/1fb9878e769c6afee6f46516c08b4708830e26a6/Alloy/lib/alloy.js#L486] and removing the OS_BLACKBERRY check allows the app to launch.\r\n\r\n{code}\r\n[ERROR] : Application Error: {\r\n[ERROR] : \"line\": 2,\r\n[ERROR] : \"column\": 10,\r\n[ERROR] : \"message\": \"Error while require(/app) Error while require(alloy) Can't find variable: OS_BLACKBERRY\",\r\n[ERROR] : \"native_stack\": [\r\n[ERROR] : \"JSExportClass::CallNamedFunction\"\r\n[ERROR] : ]\r\n[ERROR] : }\r\n{code}\r\n\r\nh5.Steps to reproduce \r\n\r\n1. Create an Alloy app using {{appc new}}\r\n2. Build the app to Windows Platform using {{appc run -p windows}}\r\n\r\nh5.Actual Result \r\n\r\nApp crashes with the below \r\n\r\n\r\n{code}\r\n[ERROR] : Application Error: {\r\n[ERROR] : \"line\": 2,\r\n[ERROR] : \"column\": 10,\r\n[ERROR] : \"message\": \"Error while require(/app) Error while require(alloy) Can't find variable: OS_BLACKBERRY\",\r\n[ERROR] : \"native_stack\": [\r\n[ERROR] : \"JSExportClass::CallNamedFunction\"\r\n[ERROR] : ]\r\n[ERROR] : }\r\n{code}\r\n\r\nh5.Expected result\r\n\r\nApp should not crash", "attachment": [], "flagged": false, "summary": "Windows: App crashes with 'Cannot find variable: OS_BLACKBERRY", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "OS: Microsoft Windows 10 Pro 10.0.10240\r\nAppc core: 5.1.0-58 (Alloy 1.7.25)\r\nAppc NPM: 4.2.1\r\nTi SDK: 5.1.0.v20151116142031\r\nAppc Studio: 4.4.0.201511130407\r\nNode: v4.2.1\r\nNPM: 2.14.7", "closedSprints": [ { "id": 531, "state": "closed", "name": "2015 Sprint 23 Tooling", "startDate": "2015-11-10T23:44:28.164Z", "endDate": "2015-11-21T02:44:00.000Z", "completeDate": "2015-11-23T20:21:44.795Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "370465", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR: https://github.com/appcelerator/alloy/pull/740", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2015-11-17T00:31:57.000+0000", "updated": "2015-11-17T00:31:57.000+0000" }, { "id": "370468", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR merged.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-11-17T00:37:24.000+0000", "updated": "2015-11-17T00:37:24.000+0000" }, { "id": "370475", "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.10240\r\nAppc core: 5.1.0-60 (Alloy 1.7.26)\r\nAppc NPM: 4.2.1\r\nTi SDK: 5.1.0.v20151116164430\r\nAppc Studio: 4.4.0.201511130407\r\nNode: v4.2.1\r\nNPM: 2.14.7\r\n\r\nAlloy apps no longer crash on launch\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-11-17T03:05:14.000+0000", "updated": "2015-11-17T03:05:14.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }