Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14636] LiveView: 'alloy compile' command is used to recompile the Alloy code without specifying the platform

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-07-25T19:03:15.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 15 Tooling, 2013 Sprint 15, Release 3.1.2, Release 3.2.0
ComponentsLiveView
Labelsqe-closed-3.2.0
ReporterFederico Casali
AssigneeChristian Sullivan
Created2013-07-23T22:35:04.000+0000
Updated2013-12-18T11:40:24.000+0000

Description

Problem description

When modifying an Alloy project, LiveView is triggering the 'alloy compile' command in order to recompile the Alloy code and then update the running app. However, the correct compile command should be always passed specifying the platform, for ex. alloy compile --config platform=ios For this reason, with Alloy 1.2.0, the 'alloy compile' command is returning an error and in this case LiveView is not working at all.

Steps to reproduce

1. Modify an Alloy project running LiveView Result: App is not updated. Error log:
[LiveView] Alloy recompile initiated
[LiveView]        .__  .__                
_____  |  | |  |   ____ ___.__.
\__  \ |  | |  |  /  _ <   |  |
 / __ \|  |_|  |_(  <_> )___  |
(____  /____/____/\____// ____|
     \/                 \/
Alloy by Appcelerator. The MVC app framework for Titanium.

[DEBUG] ----- CONFIGURATION -----
[DEBUG] deploytype = development
[DEBUG] project path = /Users/fcasali/Documents/Appcelerator_Studio_Workspace_4/alloyDefaultProject
[DEBUG] app path = /Users/fcasali/Documents/Appcelerator_Studio_Workspace_4/alloyDefaultProject/app
[DEBUG] 
[ERROR] You must define a target platform for the alloy compile command

Comments

  1. Christian Sullivan 2013-07-25

    resolved in [master] https://github.com/appcelerator/liveview/commit/279acdef30f3da3d43f38de078df0d8c9960d2ec
  2. Priya Agarwal 2013-12-18

    Tested Environment: Appcelerator Studio: 3.2.0.201312171913 SDK:3.2.0.v20131217190633 alloy: 1.3.0-cr2 acs: 1.0.10 npm: 1.3.2 titanium: 3.2.0-cr3 titanium-code-processor: 1.1.0-cr2 Xcode:5.0.2 OS: Mac OSX 10.9 Device: HTC Desire(v4.0.3) and Iphone5C(v7.0.4) liveView:1.0.1 Tested with both classic and alloy app. LiveView works fine and app gets relaunched with changes itself. Hence Closing the issue

JSON Source