{ "id": "168579", "key": "ALOY-1572", "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": "19573", "name": "Release 6.2.3", "archived": false, "released": true }, { "id": "19875", "name": "Alloy 1.9.13", "archived": false, "released": true, "releaseDate": "2017-07-10" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-07-10T22:40:26.000+0000", "created": "2017-06-23T12:32:48.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "19384", "name": "alloy 1.9.11", "archived": false, "released": true, "releaseDate": "2017-04-10" } ], "issuelinks": [], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2017-07-11T23:17:36.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": "13604", "name": "Tooling", "description": "Items related to Alloy tooling and workflow" } ], "description": "If your Alloy project has an `app.js` in a subdirectory (example: `lib/app.js`), it is not compiled.\r\n\r\nSo, if you have a pre-processor constant like `OS_IOS` or `OS_ANDROID` in this file,\r\nthe result is a runtime error because no var defined `OS_IOS` is found.\r\n\r\n*This is a critical issue, because Alloy produces a broken app!*\r\n\r\nPR: https://github.com/appcelerator/alloy/pull/836", "attachment": [], "flagged": false, "summary": "Alloy doesn't compile external app.js", "creator": { "name": "kopiro", "key": "kopiro", "displayName": "Flavio De Stefano", "active": true, "timeZone": "Europe/Rome" }, "subtasks": [], "reporter": { "name": "kopiro", "key": "kopiro", "displayName": "Flavio De Stefano", "active": true, "timeZone": "Europe/Rome" }, "environment": null, "closedSprints": [ { "id": 921, "state": "closed", "name": "2017 Sprint 14 Tooling", "startDate": "2017-07-02T23:55:00.000Z", "endDate": "2017-07-16T23:55:00.000Z", "completeDate": "2017-07-17T14:40:08.859Z", "originBoardId": 219 } ], "comment": { "comments": [ { "id": "422622", "author": { "name": "btknorr", "key": "btknorr", "displayName": "Brian Knorr", "active": true, "timeZone": "America/Chicago" }, "body": "We are seeing the same issue with the latest Alloy. As a workaround we are setting all the env vars like OS_IOS on the Alloy object in the alloy.js file. This way our javascript files in lib can use Alloy.OS_IOS, etc...", "updateAuthor": { "name": "btknorr", "key": "btknorr", "displayName": "Brian Knorr", "active": true, "timeZone": "America/Chicago" }, "created": "2017-06-23T15:05:12.000+0000", "updated": "2017-06-23T15:05:12.000+0000" }, { "id": "422699", "author": { "name": "kopiro", "key": "kopiro", "displayName": "Flavio De Stefano", "active": true, "timeZone": "Europe/Rome" }, "body": "I made a PR to avoid to define these constants", "updateAuthor": { "name": "kopiro", "key": "kopiro", "displayName": "Flavio De Stefano", "active": true, "timeZone": "Europe/Rome" }, "created": "2017-06-23T23:17:29.000+0000", "updated": "2017-06-23T23:17:29.000+0000" }, { "id": "422944", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Please share a sample project for us to test. Also, provide your environment details.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-06-27T15:39:31.000+0000", "updated": "2017-06-27T15:39:31.000+0000" }, { "id": "423790", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "1_9_X: https://github.com/appcelerator/alloy/pull/838\r\nmaster: https://github.com/appcelerator/alloy/pull/839", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2017-07-10T19:07:20.000+0000", "updated": "2017-07-10T19:10:36.000+0000" }, { "id": "423965", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with this environment:\r\nNode Version: 6.10.3\r\nNPM Version: 3.10.10\r\nMac OS: 10.12.4\r\nAppc CLI: 6.2.3-master.20\r\nAppc CLI NPM: 4.2.9\r\nTitanium SDK version: 6.1.1.GA\r\nAppcelerator Studio, build: 4.9.0.201705302345\r\nXcode 8.3.2\r\n\r\nRan test project with app.js in a subfolder, and there were no compile time or runtime errors.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-11T23:14:56.000+0000", "updated": "2017-07-11T23:14:56.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }