Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1718] JavaScript compile error in app.js not shown when running on Android

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2015-02-02T17:20:47.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsStudio
LabelsTCSupportTriage, android, api
ReporterMichal Ferko
AssigneeMauro Parra-Miranda
Created2015-01-26T16:06:34.000+0000
Updated2016-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

Comments

  1. Shuo Liang 2015-01-27

    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
  2. Michal Ferko 2015-01-27

    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.
  3. Shuo Liang 2015-01-28

    Actually I can see the compile error when add ' in the end of that line,
       INFO] :   Processing JavaScript files
       [ERROR] :  Failed to parse /Users/shuoliang/Documents/Titanium_Studio_Workspace/AppTest6/Resources/app.js
       [ERROR] :  Unexpected token: name (Tab) [line 12, column 11]
       [ERROR] :  
       [ERROR] :          title:'Tab 1',
       [ERROR] :      -----------^
       [ERROR] :  
       [ERROR] Application Installer abnormal process termination. Process exit value was 1
       
    This is the error casued by add ' in first line.
  4. Mauro Parra-Miranda 2015-02-02

    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.

JSON Source