Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5001] Cant compile ti-mocha on 6.1.0.GA

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2017-08-01T18:34:47.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labels6.1.0, android, compiler
ReporterCreative
AssigneeShak Hossain
Created2017-05-30T09:52:10.000+0000
Updated2017-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

Comments

  1. Sharif AbuDarda 2017-07-19

    Can you test this on SDK 6.1.1.GA?

JSON Source