{ "id": "112841", "key": "TIMOB-13554", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-07-29T00:31:35.000+0000", "created": "2013-04-14T23:46:51.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-07-29T00:31:35.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": "h4. Steps to reproduce\r\n\r\n# Install LiveView from https://wiki.appcelerator.org/display/tools/LiveView\r\n# Create a new Alloy project\r\n# Run the project from the command line using a command like (replace the appropriate spots): \\\\\r\n{code}\r\n\"/usr/local/bin/titanium\" \"--no-colors\" \"--no-prompt\" \"build\" \"--platform\" \"iphone\" \"--sdk\" \"3.1.0.v20130412191547\" \"--log-level\" \"trace\" \"--target\" \"simulator\" \"--ios-version\" \"6.1\" \"--device-family\" \"iphone\" \"--sim-version\" \"6.1\" \"--skip-js-minify\"\r\n{code}\r\n# Now do the same, but add the --liveview flag to the end.\r\n\r\nh4. Result\r\n\r\nI've gotten a number of different behaviors.\r\n\r\n* A syntax error in app.js\r\n* [DEBUG] Bad plugin hooks that failed to load: [DEBUG] /usr/local/lib/node_modules/liveview/hook/lvhook.js", "attachment": [ { "id": "37478", "filename": "app.js", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-15T03:50:46.000+0000", "size": 146455, "mimeType": "application/x-javascript" }, { "id": "37476", "filename": "Screen Shot 2013-04-14 at 7.47.54 PM.png", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-15T02:49:19.000+0000", "size": 111667, "mimeType": "image/png" } ], "flagged": false, "summary": "LiveView: Unable to run an Alloy app through LiveView", "creator": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "247518", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The syntax error:\r\n\r\n{code}\r\n-- Start simulator log -------------------------------------------------------\r\n[INFO] Application started\r\n[DEBUG] Reading stylesheet from: /Users/ingo/Library/Application Support/iPhone Simulator/6.1/Applications/CB58C071-E8B4-4E34-AF2B-C19E7A9FD4E8/TestApp3.app/stylesheet.plist\r\n[INFO] TestApp3/1.0 (3.1.0.v20130412191547.0464b6c)\r\n[DEBUG] Analytics is enabled = YES\r\n[DEBUG] Loading: /Users/ingo/Library/Application Support/iPhone Simulator/6.1/Applications/CB58C071-E8B4-4E34-AF2B-C19E7A9FD4E8/TestApp3.app/app.js, Resource: app_js\r\n[DEBUG] Assigning Exception Handling Delegate...\r\n[DEBUG] Done\r\n[INFO] [object ComCrittercismTiModule] loaded\r\n[DEBUG] Loading: /Users/ingo/Library/Application Support/iPhone Simulator/6.1/Applications/CB58C071-E8B4-4E34-AF2B-C19E7A9FD4E8/TestApp3.app/com.crittercism.ti.js, Resource: com_crittercism_ti_js\r\n[ERROR] [LiveView] {\r\n[ERROR] error = {\r\n[ERROR] backtrace = \"#0 () at file://localhost/Users/ingo/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/CB58C071-E8B4-4E34-AF2B-C19E7A9FD4E8/TestApp3.app/app.js:4903\\n#1 Controller() at :27\\n#2 () at :72\\n#3 () at :3\\n#4 () at file://localhost/Users/ingo/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/CB58C071-E8B4-4E34-AF2B-C19E7A9FD4E8/TestApp3.app/app.js:5022\\n#5 () at file://localhost/Users/ingo/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/CB58C071-E8B4-4E34-AF2B-C19E7A9FD4E8/TestApp3.app/app.js:4903\\n#6 () at file://localhost/Users/ingo/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/CB58C071-E8B4-4E34-AF2B-C19E7A9FD4E8/TestApp3.app/app.js:5062\";\r\n[ERROR] line = 1;\r\n[ERROR] message = \"Parse error\";\r\n[ERROR] name = SyntaxError;\r\n[ERROR] sourceId = 290265920;\r\n[ERROR] };\r\n[ERROR] module = \"app.js\";\r\n[ERROR] } \r\n[INFO] LiveView Alloy project monitor started\r\n[DEBUG] Application booted in 856.863976 ms\r\n[INFO] Client connected\r\n\r\n{code}\r\n\r\napp.js is attached. Note I've used the _unminifed_ version to help debug the issue. I did this by having the hook include the liveview.js over liveview.min.js", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-15T02:48:47.000+0000", "updated": "2013-04-15T03:50:23.000+0000" }, { "id": "247521", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Formatted nicer:\r\n\r\n{code}\r\nbacktrace =\r\n#0 () at file://localhost/Users/ingo/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/CB58C071-E8B4-4E34-AF2B-C19E7A9FD4E8/TestApp3.app/app.js:4903\r\n#1 Controller() at :27\r\n#2 () at :72\r\n#3 () at :3\r\n#4 () at file://localhost/Users/ingo/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/CB58C071-E8B4-4E34-AF2B-C19E7A9FD4E8/TestApp3.app/app.js:5022\r\n#5 () at file://localhost/Users/ingo/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/CB58C071-E8B4-4E34-AF2B-C19E7A9FD4E8/TestApp3.app/app.js:4903\r\n#6 () at file://localhost/Users/ingo/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/CB58C071-E8B4-4E34-AF2B-C19E7A9FD4E8/TestApp3.app/app.js:5062\r\n{code}\r\n\r\napp.js, line 4903 is:\r\n\r\n{code:JavaScript|firstLineNumber=4902|showLineNumbers=true}\r\n4902: if (global.ENV !== 'liveview') { freshModule.cache(); }\r\n4903: freshModule._compile();\r\n{code}\r\n\r\nline 5062 is:\r\n\r\n{code:JavaScript|firstLineNumber=4902|showLineNumbers=true}\r\n5062: var app = require('app');\r\n{code}\r\n\r\n", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-15T04:07:01.000+0000", "updated": "2013-04-15T04:08:21.000+0000" }, { "id": "247626", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Duplicate, covered in more detail in TIMOB-13563", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-15T20:16:37.000+0000", "updated": "2013-04-15T20:16:37.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }