Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5835] iOS: Application error message is not giving the correct line number of an error

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2011-10-27T14:24:08.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sSprint 2011-43, Release 1.8.0
ComponentsiOS
Labelsmodule_exceptions, qe-testadded
ReporterAlan Vaghti
AssigneeReggie Seagraves
Created2011-10-23T23:38:05.000+0000
Updated2014-06-19T12:43:26.000+0000

Description

1) Create a new project and place the following in the app.js (notice the syntax error at line 7)
var win = Ti.UI.createWindow({backgroundColor:'white'});

var img = Ti.UI.createImageView({image:'grouch.jpg'});

win.add(img);

win.orientationModes[]; //error

win.open();
2) Place grouch.png in Resources folder 3) Launch the application Results: Application Error: Parse error at app.js (line 1) Error message shows an error at line 1, even though it is at line 7. Notes: This was reproducible in 1.7.3.

Attachments

FileDateSize
grouch.jpg2011-10-23T23:55:11.000+000052018
parseError.png2011-10-23T23:38:05.000+000077166

Comments

  1. Natalie Huynh 2011-11-14

    Tested with 1.8.0.1.v20111114102656 on iPad 2 (4.3.5) iPod Touch (4.0.2) iPhone 4s (5.0) Xoom 3.2.1

JSON Source