Titanium Mobile
  1. Titanium Mobile
  2. TIMOB-11776

CLI: Could not find all required Titanium Modules: ti.cloud if Titanium SDK not in default location

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: High High
    • Resolution: Fixed
    • Affects Version/s: Release 3.0.0
    • Component/s: CLI
    • Environment:

      Description

      Can't build project containing modules if cli is enabled and sdk path is in non-default location.

      This is a regression. It works from the old cli.

      .titanium/config.json

      {
      	"user": {
      		"locale": "en-us"
      	},
      	"app": {
      		"sdk": "latest",
      		"workspace": ""
      	},
      	"cli": {
      		"colors": true,
      		"completion": false,
      		"logLevel": "info",
      		"prompt": true,
      		"failOnWrongSDK": false,
      		"quiet": false
      	},
      	"paths": {
      		"commands": [],
      		"hooks": [],
      		"modules": [],
      		"plugins": [],
      		"sdks": [
      			"/Users/dhyde/Desktop/titanium"
      		]
      	},
      	"android": {
      		"sdkPath": "/Users/dhyde/Desktop/android/android-sdk-r20.0.3",
      		"ndkPath": "/Users/dhyde/Desktop/android/android-ndk-r8b"
      	}
      }
      

      Note: Setting paths.modules had no effect (either for '.../titanium' or '.../titanium/modules').

      Steps to Reproduce:

      Note: Steps 1-3 are meant to configure a Titanium SDK in a non-standard location.

      1. Move Titanium SDK to the Desktop (e.g., Desktop/Titanium/<modules & mobilesdk>).
      2. Set Titanium SDK in Studio Preferences to new location.
      3. Add titanium path to .titanium/config.json (see above, or use 'titanium config paths.sdk <Titanium>' command in terminal).

      4. Create Titanium Project w/ACS Enabled.
      5. Run Project in SDK 3.0.0+.

      Actual Result:

      Command (in Studio):

      !ENTRY com.aptana.core 1 0 2012-11-14 16:29:58.799
      !MESSAGE (Build 3.0.0.201211131839) [INFO] com.aptana.core/debug/shell Running process:
      Process: "/usr/local/bin/titanium" "--no-banner" "--no-colors" "--no-prompt" "build" "--platform" "iphone" "--sdk" "3.0.0.v20121113111657" "--log-level" "trace" "--target" "simulator" "--ios-version" "6.0" "--device-family" "iphone"
      Working directory: /Users/dhyde/Desktop/tistud/rc/workspace/TiProject
      Environment: {ANDROID_NDK=/Users/dhyde/Desktop/android/android-ndk-r8b, ANDROID_SDK=/Users/dhyde/Desktop/android/android-sdk-r20.0.3, APTANA_VERSION=3.0.0.1346448223, Apple_PubSub_Socket_Render=/tmp/launch-uOBKPF/Render, Apple_Ubiquity_Message=/tmp/launch-zMAdSZ/Apple_Ubiquity_Message, COMMAND_MODE=unix2003, COM_GOOGLE_CHROME_FRAMEWORK_SERVICE_PROCESS/USERS/DHYDE/LIBRARY/APPLICATION_SUPPORT/GOOGLE/CHROME_SOCKET=/tmp/launch-xxuSXL/ServiceProcessSocket, HOME=/Users/dhyde, LANG=en_US.UTF-8, LOGNAME=dhyde, NUM_CPUS=4, PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/dhyde/Desktop/android/android-sdk-r20.0.3/tools:/Users/dhyde/Desktop/android/android-sdk-r20.0.3/platform-tools, PWD=/Users/dhyde/Desktop/tistud/rc/workspace/TiProject, SHELL=/bin/bash, SHLVL=1, SSH_AUTH_SOCK=/tmp/launch-WTnmk6/Listeners, TI_DEBUG=0, TMPDIR=/var/folders/6f/wxjmlj0n7kl5w8kmq5hrrbch0000gp/T/, USER=dhyde, __CF_USER_TEXT_ENCODING=0x1F6:0:0, com.apple.java.jvmTask=JNI}
      

      Error:

      [WARN] :  Could not find Titanium module id: ti.cloud version: latest platform: undefined
      [ERROR] :  Could not find all required Titanium Modules:
      [ERROR] :     id: ti.cloud	 version: latest	 platform: commonjs
      

      Expected Result:

      Same result as old CLI, which is success.

      Old Python Command (in Studio):

      !ENTRY com.aptana.core 1 0 2012-11-14 16:34:16.769
      !MESSAGE (Build 3.0.0.201211131839) [INFO] com.aptana.core/debug/shell Running process:
      Process: "/usr/bin/python" "/Users/dhyde/Desktop/titanium/mobilesdk/osx/3.0.0.v20121113111657/iphone/builder.py" "simulator" "6.0" "/Users/dhyde/Desktop/tistud/rc/workspace/TiProject" "com.appcelerator.tiproject" "TiProject" "universal" "iphone"
      Working directory: null
      Environment: {ANALYTICS_SOURCE=studio, ANDROID_NDK=/Users/dhyde/Desktop/android/android-ndk-r8b, ANDROID_SDK=/Users/dhyde/Desktop/android/android-sdk-r20.0.3, APTANA_VERSION=3.0.0.1346448223, Apple_PubSub_Socket_Render=/tmp/launch-uOBKPF/Render, Apple_Ubiquity_Message=/tmp/launch-zMAdSZ/Apple_Ubiquity_Message, COMMAND_MODE=unix2003, COM_GOOGLE_CHROME_FRAMEWORK_SERVICE_PROCESS/USERS/DHYDE/LIBRARY/APPLICATION_SUPPORT/GOOGLE/CHROME_SOCKET=/tmp/launch-xxuSXL/ServiceProcessSocket, DEVELOPER_DIR=/Users/dhyde/Desktop/ios/xcode/xcode-4.5.2/Xcode.app/Contents/Developer, HOME=/Users/dhyde, JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home, LANG=en_US.UTF-8, LOGNAME=dhyde, NUM_CPUS=4, PATH=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/dhyde/Desktop/android/android-sdk-r20.0.3/tools:/Users/dhyde/Desktop/android/android-sdk-r20.0.3/platform-tools, PWD=/Users/dhyde/Desktop/tistud/rc/titanium-studio/TitaniumStudio.app/Contents/MacOS, SHELL=/bin/bash, SHLVL=1, SSH_AUTH_SOCK=/tmp/launch-WTnmk6/Listeners, TI_DEBUG=0, TMPDIR=/var/folders/6f/wxjmlj0n7kl5w8kmq5hrrbch0000gp/T/, USER=dhyde, __CF_USER_TEXT_ENCODING=0x1F6:0:0, com.apple.java.jvmTask=JNI}
      

        Issue Links

          Activity

          Show
          Chris Barber added a comment - Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3466 3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3467

            People

            • Assignee:
              Chris Barber
              Reporter:
              Dustin Hyde (Inactive)
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development

                  Poker Sessions

                  This issue is currently not assigned to any Poker Session.