Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17822] CLI: Update node-appc to latest version to address timodule caching

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2014-11-05T21:17:44.000+0000
Affected Version/sn/a
Fix Version/sRelease 4.0.0
ComponentsCLI, Tooling
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2014-10-06T22:45:01.000+0000
Updated2015-03-19T23:12:37.000+0000

Description

There were some fixes in node-appc's timodule library to address module detection caching.

Comments

  1. Chris Barber 2014-10-06

    Master: https://github.com/appcelerator/titanium_mobile/pull/6201 To test: 1) create an app that uses modules 2) verify that the correct modules were found You do not need to do a full build... just look at the output right at the top of a build.
  2. Tim Poulsen 2014-10-09

    Doesn't work for me. App using ti.map won't build with the following output:
       [DEBUG] Detected iphone module: ti.map 2.0.0 @ /Library/Application Support/Titanium/modules/iphone/ti.map/2.0.0
       [DEBUG] Detected iphone module: ti.map 2.0.1 @ /Library/Application Support/Titanium/modules/iphone/ti.map/2.0.1
       [DEBUG] Detected iphone module: ti.map 2.0.2 @ /Library/Application Support/Titanium/modules/iphone/ti.map/2.0.2
       [DEBUG] Detected tizen module: tizen 3.0.0 @ /Library/Application Support/Titanium/modules/tizen/tizen/3.0.0
       [DEBUG] Looking for Titanium module id=ti.map version=latest platform=iphone deploy-type=development
       [WARN]  Could not find a valid Titanium module id=ti.map version=latest platform=iphone deploy-type=development
       [ERROR] Could not find all required Titanium Modules:
       [ERROR]    id: ti.map	 version: latest	 platform: iphone	 deploy-type: development
        
       
    In /Library/Application Support/Titanium/modules/iphone/ti.map/ I have versions 2.0.0, 2.0.1, and 2.0.2. In ~/Library/Application Support/Titanium/modules/iphone/ti.map/ I have version 2.0.2 and 2.0.4 (which is the version created by this 3.5.0 build)
  3. Chris Barber 2014-10-13

    [~skypanther] PR updated and ready for testing. Thank you!
  4. Tim Poulsen 2014-10-14

    [~cbarber] The new PR builds & finds the c2.0.2 map module in /Library/Application Support/Titanium/modules/iphone/ti.map/ But it doesn't find the newer version 2.0.4 in ~/Library/Application Support/Titanium/modules/iphone/ti.map/ Per http://docs.appcelerator.com/titanium/latest/#!/guide/Using_a_Module both locations should be valid, though the latter is preferred for newer OSX versions.
  5. Chris Barber 2014-11-05

    Small node-appc fix: https://github.com/appcelerator/node-appc/pull/98
  6. Tim Poulsen 2014-11-05

    That fixed it! PR merged
  7. Lokesh Choudhary 2015-03-19

    Verified the implementation. CLI picks up the latest module & no caching issue is seen. Closing. Environment: Appc Studio : 3.5.1.201412091616 Ti SDK : 4.0.0.v20150317234215 CLI : 4.0.0-alpha Alloy : 1.6.0-alpha MAC Yosemite : 10.10.2 Nexus 5 - Android 5.1 Iphone 6 plus - IOS 8.3 Beta

JSON Source