{ "id": "146724", "key": "TIMOB-18792", "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": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-04-20T23:20:31.000+0000", "created": "2015-04-08T20:15:16.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-4.0.0" ], "versions": [ { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-04-29T22:54:51.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": "h5.Description\r\n\r\nWhen building an alloy project with Liveview enabled, when making changes to an app the re-compile of the app fails with the below\r\n\r\n{code}\r\n[LiveView] Alloy recompile initiated for ios\r\n[LiveView] /bin/sh: alloy: command not found\r\n{code}\r\n\r\nThis is because at [line 451 in fserver.js|https://github.com/appcelerator/liveview/blob/master/lib/fserver.js#L451] to recompile the app the alloy command line is used, this should be changed to appc alloy so that we are using the alloy installed in the CLI.\r\n\r\nh5.Steps To Reproduce\r\n\r\n1. Make sure you have no global install of Alloy\r\n2. From Studio build an Alloy app with Liveview enabled\r\n3. When the app has opened make changes and save the file\r\n\r\nh5.Actual Result\r\n\r\nThe recompile will fail with the above error\r\n\r\nh5.Expected Result\r\n\r\nThe recompile should work with no issues", "attachment": [], "flagged": false, "summary": "Liveview: Recompiling an Alloy app fails when Alloy is not installed globally", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Mac OSX 10.10.2\r\nAppc Studio: 4.0.0.201504080927\r\nTitanium SDK build: 4.0.0.v20150402073415\r\nAppc CLI (NPM): 0.3.37\r\nAppc CLI (Registry): 0.2.23\r\nLiveview: 1.0.7", "closedSprints": [ { "id": 373, "state": "closed", "name": "2015 Sprint 07 Tooling", "startDate": "2015-03-28T00:00:53.618Z", "endDate": "2015-04-25T00:00:00.000Z", "completeDate": "2015-04-13T16:16:20.402Z", "originBoardId": 121 }, { "id": 377, "state": "closed", "name": "2015 Sprint 08 Tooling", "startDate": "2015-04-10T16:22:00.000Z", "endDate": "2015-04-25T00:00:00.000Z", "completeDate": "2015-04-30T19:39:26.044Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "348985", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR : https://github.com/appcelerator/liveview/pull/85", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-04-08T23:36:00.000+0000", "updated": "2015-04-08T23:36:00.000+0000" }, { "id": "351191", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified using:\r\n\r\nMac OSX 10.10.3\r\nAppc Studio: 4.0.0.201504272049\r\nTitanium SDK build: 4.0.0.v20150427093413\r\nAppc CLI (NPM): 0.3.51\r\nAppc CLI (Registry): 0.2.273\r\nNexus 5 (4.4.4)\r\n\r\nWhen recompiling an Alloy app without a global install of Alloy the recompile does not fail\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-04-29T22:54:47.000+0000", "updated": "2015-04-29T22:54:47.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }