{ "id": "152674", "key": "TIMOB-19882", "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": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-05-19T15:49:03.000+0000", "created": "2015-11-05T15:54:44.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "issuelinks": [], "assignee": null, "updated": "2020-05-19T15:49:03.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": "When I use LiveView to run an Alloy project with:\r\n\r\n{code:xml}\r\n\r\n\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nAnd then remove {{}} and save I don't get the Alloy parse error I'd expect:\r\n\r\n{code}\r\n...\r\n-- Start simulator log -------------------------------------------------------\r\n[INFO] Application started\r\n[INFO] test-alloy/1.0 (5.2.0.0add7c0)\r\n [LiveView] Client connected\r\n [LiveView] Alloy recompile initiated for ios\r\n [LiveView] Reload Triggered\r\n REASON: File Changed\r\n FILE: /Users/fokkezb/dev/tests/test-alloy/app/views/index.xml\r\n [LiveView] Client disconnected\r\n [LiveView] Client connected\r\n[INFO] [LiveView] Reloading App\r\n[INFO] UI SHUTDOWN COMPLETE. TRYING TO RESUME RESTART\r\n[INFO] test-alloy/1.0 (5.2.0.0add7c0)\r\n[INFO] [LiveView] Error Evaluating alloy.js @ Line: 36\r\n[ERROR] ReferenceError: Can't find variable: OS_MOBILEWEB\r\n[ERROR] File: alloy.js\r\n[ERROR] Line: 36\r\n[ERROR] SourceId: \r\n[ERROR] Backtrace:\r\n[ERROR] undefined\r\n[INFO] [LiveView] Error Evaluating app.js @ Line: 3\r\n[ERROR] TypeError: undefined is not a function (evaluating 'Alloy.createController(\"index\")')\r\n[ERROR] File: app.js\r\n[ERROR] Line: 3\r\n[ERROR] SourceId: \r\n[ERROR] Backtrace:\r\n[ERROR] undefined\r\n{code}\r\n\r\nWhile as I then do {{appc run}} (without LiveView) directly after I do get what I expected:\r\n\r\n{code}\r\n...\r\n[INFO] Executing Alloy compile: /usr/local/bin/node /Users/fokkezb/.appcelerator/install/5.1.0-38/package/node_modules/appc-cli-titanium/node_modules/alloy/bin/alloy compile /Users/fokkezb/dev/tests/test-alloy/app --config platform=ios,version=0,simtype=none,devicefamily=universal,deploytype=development,target=simulator\r\n[INFO] [config.json] regenerating CFG.js from config.json...\r\n[INFO] ----- MVC GENERATION -----\r\n[INFO] [app.tss] global style processing...\r\n[INFO] [global style] writing to cache...\r\n[INFO] [index.xml] view processing...\r\n[INFO] style: \"index.tss\"\r\n[INFO] view: \"index.xml\"\r\n[ERROR] Error parsing XML file.\r\n[ERROR] Unclosed XML tag or attribute\r\n[ERROR] @#[line:3,col:3]\r\n[ERROR] Alloy compiler failed\r\nERROR | ti run exited with error code 1\r\n{code}", "attachment": [], "flagged": false, "summary": "LiveView: Alloy compile error not shown", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "appc -v -o json\r\n{\"NPM\":\"4.2.1\",\"CLI\":\"5.1.0-38\"}", "comment": { "comments": [ { "id": "455506", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "The alloy error now makes it through to the appc cli so closing", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-05-19T15:49:03.000+0000", "updated": "2020-05-19T15:49:03.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }