{ "id": "124648", "key": "ALOY-920", "fields": { "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "15758", "description": "Alloy 1.4.0", "name": "Alloy 1.4.0", "archived": false, "released": true, "releaseDate": "2014-07-17" }, { "id": "15759", "description": "Alloy 1.3.1", "name": "Alloy 1.3.1", "archived": false, "released": true, "releaseDate": "2014-02-10" }, { "id": "15815", "description": "2014 Sprint 01", "name": "2014 Sprint 01", "archived": true, "released": true, "releaseDate": "2014-01-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-07-10T17:17:00.000+0000", "created": "2014-01-10T17:01:42.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "15758", "description": "Alloy 1.4.0", "name": "Alloy 1.4.0", "archived": false, "released": true, "releaseDate": "2014-07-17" }, { "id": "15403", "description": "Alloy 1.3.0", "name": "Alloy 1.3.0", "archived": false, "released": true, "releaseDate": "2013-12-20" } ], "issuelinks": [ { "id": "34229", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "124649", "key": "ALOY-921", "fields": { "summary": "Update uglify-js to 2.4.8 ", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-07-10T17:17:00.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": [], "description": "If you attempt to compile an Alloy app that has [should.js|https://github.com/visionmedia/should.js] (the browser-compatible file that works with traditional Titanium dev), it will result in the following compile time error:\r\n\r\n{code}\r\n[INFO] ----- OPTIMIZING -----\r\n[INFO] - iphone/alloy.js\r\n[TRACE] processing \"builtins\" module...\r\n[TRACE] processing \"optimizer\" module...\r\n[TRACE] processing \"compress\" module...\r\n[INFO] - iphone/should.js\r\nWARN: ERROR: Unexpected token keyword «with», expected punc «(» [iphone/should.js:383,6]\r\n[ERROR] Error generating AST for \"/Users/tlukasavage/development/aloy920/Resources/iphone/should.js\"\r\n[ERROR] Unexpected token keyword «with», expected punc «(»\r\n[ERROR] line 383, column 6, position 9813\r\n{code}\r\n\r\nWe should investigate the root of the error, put in a quick fix, then address the specific problems with uglify-js either via new options or an update to uglify-js.", "attachment": [], "flagged": false, "summary": "should.js causes compiler error", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "287656", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "According to this ticket, this issue was resolved in uglify-js 2.4.8: https://github.com/mishoo/UglifyJS2/issues/319", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-10T17:08:32.000+0000", "updated": "2014-01-10T17:08:32.000+0000" }, { "id": "287672", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/alloy/pull/297\r\ntest app: https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-920\r\n\r\nMerged to both master and 1_3_X\r\n\r\nSkip compiling should.js for now. Uglify-js will be fixed in Alloy 1.4.0 with ALOY-921.\r\n\r\nh3. Functional Test\r\n\r\n# Run the given test app\r\n# Make sure you don't get the compile error noted in the description\r\n# make sure you get no runtime errors", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-10T18:02:30.000+0000", "updated": "2014-01-13T21:20:17.000+0000" }, { "id": "305397", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed - there are no compile errors. \r\n\r\nTiSDK 3.3.0.v20140516002513\r\nAlloy 1.4.0-alpha\r\nAppcelerator Studio 3.3.0.201405121247\r\nCLI 3.3.0-dev\r\n\r\nClosing", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-17T02:08:37.000+0000", "updated": "2014-05-17T02:08:37.000+0000" }, { "id": "312986", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "should.js provided in the app cause compile error.\r\n\r\nEnvironment used:\r\nTested on:\r\nDevice : iPod touch 2 , iOS version: 7.1.2\r\nSDK: 3.3.0.v20140708132513\r\nCLI version : 3.3.0-rc4\r\nOS : MAC OSX 10.9.2\r\nAlloy: 1.4.0-rc4\r\nACS: 1.0.15\r\nnpm:1.3.2\r\nLiveView: 1.0.4\r\nAppcelerator Studio, build: 3.3.0.201407081443\r\ntitanium-code-processor: 1.1.1\r\nXCode : 5.1.1", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-07-09T11:35:31.000+0000", "updated": "2014-07-09T11:35:31.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }