[AC-5001] Cant compile ti-mocha on 6.1.0.GA
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Needs more info |
| Resolution Date | 2017-08-01T18:34:47.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Titanium SDK & CLI |
| Labels | 6.1.0, android, compiler |
| Reporter | Creative |
| Assignee | Shak Hossain |
| Created | 2017-05-30T09:52:10.000+0000 |
| Updated | 2017-08-01T18:34:47.000+0000 |
Description
Error log lines:
[ERROR] /Users/myuser/Documents/Appcelerator_Studio_Workspace/my-app/Resources/android/node_modules/ti-mocha/lib/build.js: Invalid number (32:40)
After commenting out this specific line, and rebuilding, it finds another issue:
[ERROR] /Users/myuser/Documents/Appcelerator_Studio_Workspace/my-app/Resources/android/node_modules/ti-mocha/lib/install.js: Invalid number (12:53)
The faulty lines are:
wrench.mkdirSyncRecursive(C.BUILD_DIR, 0755); // build.js line 32
if (!fs.existsSync(copyTo)) { fs.mkdirSync(copyTo, 0755); } // install.js line 12
I'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.
Full sourcecode for this module can be found at https://github.com/tonylukasavage/ti-mocha
Can you test this on SDK 6.1.1.GA?