Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18792] Liveview: Recompiling an Alloy app fails when Alloy is not installed globally

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-04-20T23:20:31.000+0000
Affected Version/sRelease 4.0.0
Fix Version/sRelease 4.0.0
ComponentsLiveView
Labelsqe-4.0.0
ReporterEwan Harris
AssigneeGary Mathews
Created2015-04-08T20:15:16.000+0000
Updated2015-04-29T22:54:51.000+0000

Description

Description

When building an alloy project with Liveview enabled, when making changes to an app the re-compile of the app fails with the below
[LiveView] Alloy recompile initiated for ios
[LiveView] /bin/sh: alloy: command not found
This 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.

Steps To Reproduce

1. Make sure you have no global install of Alloy 2. From Studio build an Alloy app with Liveview enabled 3. When the app has opened make changes and save the file

Actual Result

The recompile will fail with the above error

Expected Result

The recompile should work with no issues

Comments

  1. Gary Mathews 2015-04-08

    PR : https://github.com/appcelerator/liveview/pull/85
  2. Ewan Harris 2015-04-29

    Verified using: Mac OSX 10.10.3 Appc Studio: 4.0.0.201504272049 Titanium SDK build: 4.0.0.v20150427093413 Appc CLI (NPM): 0.3.51 Appc CLI (Registry): 0.2.273 Nexus 5 (4.4.4) When recompiling an Alloy app without a global install of Alloy the recompile does not fail Closing ticket

JSON Source