{ "id": "130425", "key": "ALOY-1015", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2014-06-23T18:53:03.000+0000", "created": "2014-05-14T17:30:03.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "supportTeam" ], "versions": [], "issuelinks": [ { "id": "37699", "type": { "id": "10020", "name": "Depends", "inward": "is dependent of", "outward": "depends on" }, "outwardIssue": { "id": "130509", "key": "TIMOB-16984", "fields": { "summary": "TiAPI: Deprecate Ti.include", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": null, "updated": "2018-03-07T22:26:00.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "h5.Issue description\r\nAfter enabling LiveView Ti.include statements are not loaded correctly.\r\nRunning app normally works fine. The app has the following similar structure:\r\n\r\nh6.alloy.js\r\n{code}\r\nTi.include('testing.js');//File: \"app/lib/testing.js\"\r\nsetConfig(\"username\", \"appc_developer\");\r\nvar name = getConfig(\"username\", 0);\r\nalert(name); \r\n{code}\r\n\r\nh6.Console Output\r\n{code}\r\n[INFO] : Focusing the iOS Simulator\r\n[LiveView] version 1.0.4\r\n[LiveView] File Server Started on Port 8324\r\n[LiveView] Alloy project monitor started\r\n[LiveView] Event Server Started on Port 8323\r\n[INFO] : Application started\r\n[INFO] : TestLiveView/1.0 (3.2.3.GA.b958a70)\r\n[LiveView] Client connected\r\n[ERROR] : Script Error {\r\n[ERROR] : backtrace = \"#0 () at file:///Users/egomez/Library/Application%20Support/iPhone%20Simulator/7.1/Applications/ADCAFC30-B60E-488C-A977-4E77631DE3CD/TestLiveView.app/app.js:638\\n#1 () at file:///Users/egomez/Library/Application%20Support/iPhone%20Simulator/7.1/Applications/ADCAFC30-B60E-488C-A977-4E77631DE3CD/TestLiveView.app/app.js:502\\n#2 () at file:///Users/egomez/Library/Application%20Support/iPhone%20Simulator/7.1/Applications/ADCAFC30-B60E-488C-A977-4E77631DE3CD/TestLiveView.app/app.js:469\\n#3 () at file:///Users/egomez/Library/Application%20Support/iPhone%20Simulator/7.1/Applications/ADCAFC30-B60E-488C-A977-4E77631DE3CD/TestLiveView.app/app.js:403\\n#4 () at file:///Users/egomez/Library/Application%20Support/iPhone%20Simulator/7.1/Applications/ADCAFC30-B60E-488C-A977-4E77631DE3CD/TestLiveView.app/app.js:676\";\r\n[ERROR] : line = 608;\r\n[ERROR] : message = \"'undefined' is not a function (evaluating '_src.replace(/\\\\/\\\\/(.*)$/gm, '')')\";\r\n[ERROR] : name = TypeError;\r\n[ERROR] : sourceId = 300321376;\r\n[ERROR] : sourceURL = \"file:///Users/egomez/Library/Application%20Support/iPhone%20Simulator/7.1/Applications/ADCAFC30-B60E-488C-A977-4E77631DE3CD/TestLiveView.app/app.js\";\r\n[ERROR] : }\r\n{code} \r\n\r\nh5.Titanium Classic\r\nLiveView is able to detect changes made by using a Titanium Classic app. To test it out just place \"testing.js\" into Resources folder and use the following code for replicate:\r\n\r\nh6.app.js\r\n{code}\r\nTi.include('testing.js');\r\nsetConfig(\"username\", \"appc_developer_\");\r\nvar name = getConfig(\"username\", 0);\r\nalert(name); \r\n{code}\r\n\r\nh6.Console Output\r\n{code}\r\n[INFO] : Focusing the iOS Simulator\r\n[LiveView] version 1.0.4\r\n[LiveView] File Server Started on Port 8324\r\n[LiveView] Event Server Started on Port 8323\r\n[INFO] : Application started\r\n[INFO] : TouchTestIDs/1.0 (3.2.3.GA.b958a70)\r\n[LiveView] Client connected\r\n[INFO] : [object ComAppceleratorApmModule] loaded\r\n[INFO] : [object ComSoastaTouchtestModule] loaded\r\n[LiveView] Reload Triggered\r\n REASON: File Changed\r\n FILE: /Users/egomez/Documents/Appcelerator_Studio_Workspace/TouchTestIDs/Resources/app.js\r\n[LiveView] Client disconnected\r\n[INFO] : [LiveView] Reloading App\r\n[INFO] : UI SHUTDOWN COMPLETE. TRYING TO RESUME RESTART\r\n[INFO] : TouchTestIDs/1.0 (3.2.3.GA.b958a70)\r\n[LiveView] Client connected\r\n{code}\r\n\r\nh6.testing.js\r\n{code}\r\nfunction setConfig(name, value) {\r\n Titanium.App.Properties.setString(name, value);\r\n}\r\nfunction getConfig(name, defaultvalue) {\r\n return Titanium.App.Properties.getString(name, defaultvalue); \r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "LiveView: Ti.include statements not supported", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.2.3.GA\r\nTiCLI 3.2.3\r\nAlloy 1.3.1\r\nAppcelerator Studio, build: 3.2.3.201404181520\r\niOS 7 Simulator", "comment": { "comments": [ { "id": "304808", "author": { "name": "core13", "key": "core13", "displayName": "Malcolm Hollingsworth", "active": true, "timeZone": "Europe/London" }, "body": "Ti.include should be deprecated and removed as soon as possible. It was a solution to a problem that has long been solved.\r\n\r\nIf you are wanting to include large sections of code in-line then re-think and convert them to CommonJS. Problem solved and much better code in your app.", "updateAuthor": { "name": "core13", "key": "core13", "displayName": "Malcolm Hollingsworth", "active": true, "timeZone": "Europe/London" }, "created": "2014-05-14T17:35:58.000+0000", "updated": "2014-05-14T17:35:58.000+0000" }, { "id": "305513", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Per TIMOB-16984, Ti.include is likely to be deprecated. Consider closing this ticket as a result.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-05-19T15:36:23.000+0000", "updated": "2014-05-19T15:36:23.000+0000" }, { "id": "305521", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Thanks [~skypanther], \r\n\r\nClient ported everything to CommonJS already. Looking forward to see this in 3.3.0 (Ti.include removed) and official.\r\n\r\nClose ticket as applicable.", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-05-19T16:14:44.000+0000", "updated": "2014-05-19T16:14:44.000+0000" }, { "id": "310488", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Because Ti.include() has been deprecated, I'm closing this as won't fix.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-06-23T18:53:03.000+0000", "updated": "2014-06-23T18:53:03.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }