{ "id": "174298", "key": "TIMOB-27525", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "20950", "name": "Release 9.1.0", "archived": false, "released": true, "releaseDate": "2020-08-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-06-17T13:28:39.000+0000", "created": "2019-10-25T13:33:15.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "eboateng", "key": "eboateng", "displayName": "Ebenezer Boateng", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-06-17T13:28:39.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13600", "name": "LiveView", "description": "Live preview of Titanium apps" } ], "description": "On any project, add the following line:\r\n\r\n\r\n{code:java}\r\n//Ti.include('vendor/pubnub.js');\r\n{code}\r\n\r\nMake 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.\r\n\r\nIt seems that somehow, LiveView is ignoring the fact the line is commented out and trying to process the 'include' function, causing the error.\r\n\r\nIf you surround by a multi line comment like this instead, then it works.\r\n\r\n{code:java}\r\n/*Ti.include('vendor/pubnub.js');*/\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Commented out line with Ti.include in it causes LiveView failure", "creator": { "name": "raybelisle", "key": "raybelisle", "displayName": "Ray Belisle", "active": true, "timeZone": "America/Edmonton" }, "subtasks": [], "reporter": { "name": "raybelisle", "key": "raybelisle", "displayName": "Ray Belisle", "active": true, "timeZone": "America/Edmonton" }, "environment": "Ti.SDK 8.x/LiveView", "closedSprints": [ { "id": 1180, "state": "closed", "name": "2020 Sprint 4", "startDate": "2020-02-17T09:48:41.834Z", "endDate": "2020-02-28T09:48:00.000Z", "completeDate": "2020-02-28T17:07:21.344Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "452452", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "This looks to be some bad code in liveview where it tries to handle Ti.include calls but doesn't ignore commented out code causing the try/catch it's wrapped it to get borked (the multi-line comment is self contained so that's why it doesn't break) anything. Moving to TIMOB, thanks for the report [~raybelisle]", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-11-04T16:59:51.000+0000", "updated": "2019-11-04T16:59:51.000+0000" }, { "id": "454427", "author": { "name": "eboateng", "key": "eboateng", "displayName": "Ebenezer Boateng", "active": true, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/liveview/pull/134", "updateAuthor": { "name": "eboateng", "key": "eboateng", "displayName": "Ebenezer Boateng", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-02-25T15:39:42.000+0000", "updated": "2020-03-02T09:20:08.000+0000" }, { "id": "454610", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Removing from current sprint as this will only be testable once we update liveview in the SDK, when we do that we can pull this ticket back into the sprint for qe", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-03-09T12:12:31.000+0000", "updated": "2020-03-09T12:12:31.000+0000" }, { "id": "455833", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket* fix verified in SDK version {{9.1.0.v20200615121135}}. Able to still use liveview when having a {{ti.include}} commented out e.g.\r\n{code:java}\r\n//Ti.include('vendor/pubnub.js');\r\n{code}\r\n\r\n*Test Environment*\r\n{code:java}\r\nMacOS Catalina: 10.15.5 Beta\r\nXcode: 11.4\r\nJava Version: 1.8.0_131\r\nAndroid NDK: 21.1.6273396-beta2\r\nNode.js: 10.16.3\r\n\"\"NPM\":\"5.0.0\",\"CLI\":\"8.0.0\"\"\r\nAndoird Pixel xl 7.1.1 Emulator \r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-06-17T13:27:56.000+0000", "updated": "2020-06-17T13:27:56.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }