{ "id": "148807", "key": "TIMOB-19029", "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": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-06-17T15:11:02.000+0000", "created": "2015-06-15T22:45:28.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "qe-4.1.0" ], "versions": [ { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-06-23T00:13:42.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": "h5.Description\r\n\r\nWhen the CLI is parsing the JS files of an app, if there is a parsing error then it is surfaced as the following\r\n\r\n{code}\r\nC:\\ProgramData\\Titanium\\mobilesdk\\win32\\4.1.0.v20150614181235\\node_modules\\uglify-js\\lib\\parse.js:197\r\n throw new JS_Parse_Error(message, line, col, pos);\r\n ^\r\nError\r\n at new JS_Parse_Error (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\4.1.0.v20150614181235\\node_modules\\uglify-js\\lib\\parse.js:189:18)\r\n at js_error (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\4.1.0.v20150614181235\\node_modules\\uglify-js\\lib\\parse.js:197:11)\r\n at croak (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\4.1.0.v20150614181235\\node_modules\\uglify-js\\lib\\parse.js:656:9)\r\n at token_error (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\4.1.0.v20150614181235\\node_modules\\uglify-js\\lib\\parse.js:664:9)\r\n at expect_token (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\4.1.0.v20150614181235\\node_modules\\uglify-js\\lib\\parse.js:677:9)\r\n at expect (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\4.1.0.v20150614181235\\node_modules\\uglify-js\\lib\\parse.js:680:36)\r\n at expr_list (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\4.1.0.v20150614181235\\node_modules\\uglify-js\\lib\\parse.js:1172:44)\r\n at subscripts (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\4.1.0.v20150614181235\\node_modules\\uglify-js\\lib\\parse.js:1310:30)\r\n at subscripts (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\4.1.0.v20150614181235\\node_modules\\uglify-js\\lib\\parse.js:1287:20)\r\n at subscripts (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\4.1.0.v20150614181235\\node_modules\\uglify-js\\lib\\parse.js:1287:20)\r\n{code} \r\n\r\nWhen building for Android it will be surfaced as the following\r\n\r\n{code}\r\n[ERROR] Failed to parse C:\\Users\\Windo_000\\Documents\\Appcelerator_Studio_Workspace\\testCreate\\Resources\\app.js\r\n[ERROR] Unexpected token punc «;», expected punc «,» [line 18, column 39]\r\n[ERROR]\r\n[ERROR] var doc = Ti.XML.parseString(xmlString;\r\n[ERROR] ---------------------------------------^\r\n[ERROR]\r\n{code}\r\n\r\nh5.Steps To Reproduce\r\n\r\n1. In an existing titanium project edit the app.js so that it will fail the parsing, remove a parentheses for example\r\n2. Build the app for Windows\r\n\r\nh5.Actual Result\r\n\r\nThe parser fails with the first error\r\n\r\nh5.Expected Result\r\n\r\nThe parser should fail with an error indicating the reason why", "attachment": [], "flagged": false, "summary": "Windows: If parsing JS files fails the error message does not contain a reason", "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": "Windows 8.1\r\nTi CLI: 4.1.0-dev\r\nTi SDK: 4.1.0.v20150614181235", "closedSprints": [ { "id": 420, "state": "closed", "name": "2015 Sprint 12 Windows", "startDate": "2015-06-07T01:15:19.706Z", "endDate": "2015-06-21T01:15:00.000Z", "completeDate": "2015-06-20T23:02:18.410Z", "originBoardId": 144 } ], "comment": { "comments": [ { "id": "355185", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/289", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-16T07:28:35.000+0000", "updated": "2015-06-16T07:28:35.000+0000" }, { "id": "355704", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\nWe not see a reason for parse failure like below:\r\n{code}\r\n[ERROR] : Failed to parse C:\\Users\\Steve Ballmer\\Documents\\Appcelerator_Studio_Workspace\\lokiprod\\Resources\\app.js\r\nUnexpected token punc «;», expected punc «,» [line 5, column 28]\r\n throw new Error('oh no!';\r\n ----------------------------^\r\n{code}\r\n\r\nEnvironment:\r\nAppc Studio: 4.1.0.201506211738\r\nTi SDK: 4.1.0.v20150622145911\r\nTi CLI: 4.0.1\r\nAlloy: 1.6.2\r\nWindows: 8.1 Enterprise 64-bit\r\nAPPC NPM: 4.1.0-1\r\nAPPC CLI: 4.1.0-1 \r\nDevice: Nokia Lumia 928 - Windows Phone 8.1\r\nWindows Phone Emulator : 8.1.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-06-23T00:13:18.000+0000", "updated": "2015-06-23T00:13:18.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }