{ "id": "167979", "key": "AC-5001", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2017-08-01T18:34:47.000+0000", "created": "2017-05-30T09:52:10.000+0000", "labels": [ "6.1.0", "android", "compiler" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-08-01T18:34:47.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Error log lines:\r\n\r\n{code}\r\n[ERROR] /Users/myuser/Documents/Appcelerator_Studio_Workspace/my-app/Resources/android/node_modules/ti-mocha/lib/build.js: Invalid number (32:40)\r\n{code}\r\n\r\nAfter commenting out this specific line, and rebuilding, it finds another issue:\r\n\r\n{code}\r\n[ERROR] /Users/myuser/Documents/Appcelerator_Studio_Workspace/my-app/Resources/android/node_modules/ti-mocha/lib/install.js: Invalid number (12:53)\r\n{code}\r\n\r\nThe faulty lines are:\r\n{code:javascript}\r\nwrench.mkdirSyncRecursive(C.BUILD_DIR, 0755); // build.js line 32\r\nif (!fs.existsSync(copyTo)) { fs.mkdirSync(copyTo, 0755); } // install.js line 12\r\n{code}\r\n\r\nI've inspected both files and they seem to use both valid javascript, so I have no clue why the titanium compiler fails when not even in runtime yet.\r\n\r\nFull sourcecode for this module can be found at https://github.com/tonylukasavage/ti-mocha", "attachment": [], "flagged": false, "summary": "Cant compile ti-mocha on 6.1.0.GA", "creator": { "name": "creative_jira_user", "key": "uzbbert", "displayName": "Creative", "active": false, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "creative_jira_user", "key": "uzbbert", "displayName": "Creative", "active": false, "timeZone": "Europe/Amsterdam" }, "environment": "Unsure if this is a titanium issue, but after upgrading from Ti SDK 6.0.3.GA to *6.1.0.GA*, i am not able to build my app due to a compilation error in a npm module (https://www.npmjs.com/package/ti-mocha). The lines that the error indicates seems like valid javascript, but it fails to build because of this.\r\n\r\nI'm also using* Alloy 1.9.11*, however the alloy compiler seems to work fine as it outputs \"Alloy compiler completed successfully\". The errors are displayed after the alloy compilation.\r\n\r\nThe issue happens when compiling for *Android* only.", "comment": { "comments": [ { "id": "424395", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Can you test this on SDK 6.1.1.GA?", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-07-19T19:25:42.000+0000", "updated": "2017-07-19T19:25:42.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }