Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6079] CLI build setting the Alloy theme to NULL

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2019-01-09T13:05:38.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator CLI
Labelsalloy, build, cli, theme
ReporterChristopher Stea
AssigneeShak Hossain
Created2018-12-24T20:31:21.000+0000
Updated2019-01-09T13:05:38.000+0000

Description

When building for iOS on CLI 7.0.8 and 7.0.9, the build tool forces config=null and the app is built without including any of the theme's .tss files. Building the same code using CLI 7.0.7 works around the issue.

Attachments

FileDateSize
AC-6079.zip2018-12-25T23:10:44.000+00008661356
AppceleratorIssue6079.zip2018-12-25T19:09:03.000+00008663638
CLI 707.png2018-12-25T23:04:40.000+000031448
CLI 709.png2018-12-25T23:15:51.000+000032582
Screenshot_20181226-112936.png2018-12-26T05:59:25.000+000046689
Screenshot_20181226-115150.png2018-12-26T05:58:34.000+000043389

Comments

  1. Rakhi Mitro 2018-12-25

    Hello, Thanks for reporting this. Can you please share a simple test case to reproduce the issue on our end?
  2. Leandro Farias 2018-12-25

    Hi I think this issue affect android too. I attached a sample project with a themed config.json. The problem: - Themed config.json global nodes are "ignored" after frist compilation on liveview mode, ad-hoc, production or test mode. More: *appc ti clean* not solve the problem. The error console: [INFO]   Finished building the application in 1s 946ms [INFO]   Launching iOS Simulator [LiveView] version 1.2.2 [LiveView] Alloy project monitor started [LiveView] File Server Started on 0.0.0.0:8324 [LiveView] Event Server Started on 0.0.0.0:8323 -- Start simulator log ------------------------------------------------------- [INFO]   AppceleratorIssue6079 1.0 (Powered by Titanium 7.5.0.2e5a7423d0) [LiveView] Client connected [INFO]   [LiveView] Error Evaluating app.js @ Line: 39 [ERROR]  TypeError: undefined is not an object (evaluating 'Alloy.CFG.colors.primary') [ERROR]  File: app.js [ERROR]  Line: 39 [ERROR]  SourceId: [ERROR]  Backtrace: [ERROR]   undefined When I use this same project with cli 7.0.7, I have no problems.
  3. Christopher Stea 2018-12-25

    Attached is a simple testcase which is basically the Titanium Alloy Sample app with an added theme that changes the background color of the .container class. [^AC-6079.zip] When built using CLI 7.0.7 I get the expected result: !CLI 707.png|thumbnail! But when building using CLI 7.0.8 or 7.0.9, the result is: !CLI 709.png|thumbnail! The build log shows that theme is set to NULL even though it is set properly in config.json:
       [INFO] :   Executing Alloy compile: /usr/local/bin/node /Users/Chris/.appcelerator/install/7.0.9/package/node_modules/alloy/bin/alloy compile /Users/Chris/Developer/Appcelerator_Studio_Workspace/TestCase/app --config theme=null,platform=ios,version=0,simtype=none,devicefamily=universal,deploytype=development,target=simulator --no-colors
       
  4. Sharif AbuDarda 2018-12-26

    This issue is duplicate of ALOY-1638. Reported for reopening.
  5. Ewan Harris 2019-01-09

    Closing as a dupe of ALOY-1638, for now please use appc cli 7.0.7, 7.0.9 did not update alloy correctly to fix this issue

JSON Source