Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-5835

iOS: Application error message is not giving the correct line number of an error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 1.8.0
    • Fix Version/s: Sprint 2011-43, Release 1.8.0
    • Component/s: iOS
    • Environment:

      iPod 4.3.3, 1.8.0.v20111013161411, OSX 10.7.2, Titanium Studio build: 1.0.6.201110171921

      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

          Activity

            People

            • Assignee:
              rseagraves Reggie Seagraves
              Reporter:
              avaghti Alan Vaghti
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-4962
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration