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

Commented out line with Ti.include in it causes LiveView failure

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 9.1.0
    • Component/s: LiveView
    • Labels:
      None
    • Environment:

      Ti.SDK 8.x/LiveView

    • Story Points:
      3
    • Sprint:
      2020 Sprint 4

      Description

      On any project, add the following line:

      //Ti.include('vendor/pubnub.js');
      

      Make sure the line is COMMENTED OUT with the single line prefix //. Compile the app with LiveView turned on. The file load will fail. Remove the line and save, the file will load without issue.

      It seems that somehow, LiveView is ignoring the fact the line is commented out and trying to process the 'include' function, causing the error.

      If you surround by a multi line comment like this instead, then it works.

      /*Ti.include('vendor/pubnub.js');*/
      

        Attachments

          Activity

            People

            • Assignee:
              eboateng Ebenezer Boateng
              Reporter:
              raybelisle Ray Belisle
              Reviewer:
              Ewan Harris
              Tester:
              Samir Mohammed
            • Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration