Solution to "Too many errors" compiler message

You must Login before you can answer or comment on any questions.

If you have too many JS files or big JS files, compiler returns an error like this:

JavaScript compiler reported "Too many errors. (84% scanned)." at app.js:3998
The problem is that if your code is OK at line 4000 (in this case) and you have an error at line 4100, it will not be shown. So, to increase the number of errors that compiler can handle, just right click on Titanium Developer icon and select Show Package Contents, edit the file Contents/Resources/modules/packaging/js/compiler.js. Then change maxerr:100 to a greater value and save.

In Titanium Studio didn't find how to change this :(

— asked 2 years ago by David
0 Comments

2 Answers

Over 4000 lines in one file? I think it is a good idea to start modulized programing … ;-)

— answered 2 years ago by Rainer Schleevoigt
answer permalink
1 Comment
  • If you split code in various includes, Titanium shows the same error. Anyway, there are big apps with lots of code, not all mobile apps are small...

    — commented 2 years ago by David

Your Answer

Think you can help? Login to answer this question!