[AC-1718] JavaScript compile error in app.js not shown when running on Android
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2015-02-02T17:20:47.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Studio |
Labels | TCSupportTriage, android, api |
Reporter | Michal Ferko |
Assignee | Mauro Parra-Miranda |
Created | 2015-01-26T16:06:34.000+0000 |
Updated | 2016-03-08T07:38:13.000+0000 |
Description
After creating an empty non-Alloy project (with just the two tabs saying "I am window 1" and "I am window 2"), introducing a syntax error in app.js will not show the actual error, but simply fail to run an Android app.
In my case, it was simply adding a tick ' at the end of the first line of code:
Titanium.UI.setBackgroundColor('#000');'
The environment just writes:
[INFO] : Processing JavaScript files
[ERROR] Application Installer abnormal process termination. Process exit value was 1
Hi, You can try to switch the console mode to "track" or "debug" in up right corner of console window, then it may give you more info about coding status. Regards, Shuo
I switched to "track", but no info is shown about JavaScript syntax errors. I expected to be able to install to the device and then see the "continue-kill" popup. Some kind of notification would be great, however, at the moment, I don't think that the programmer is somehow notified.
Actually I can see the compile error when add ' in the end of that line,
This is the error casued by add ' in first line.
The app didn't get installed, according to: Application Installer abnormal process termination. Process exit value was 1 Please try this again and report back when the apps is actually installed.