Uploaded image for project: 'Appcelerator CLI'
  1. Appcelerator CLI
  2. CLI-780

"appc setup" fails with "invalid config results returned from titanium" in preprod

    Details

    • Type: Bug
    • Status: Open
    • Priority: None
    • Resolution: Unresolved
    • Affects Version/s: Release 4.1.3
    • Fix Version/s: None
    • Component/s: Titanium
    • Environment:

      AppC CLI 4.1.3-4

      Description

      In preproduction, running appc setup will fail when checking for SDK updates. Probably because ti sdk -o json returns no releases in preprod (for some reason) and it tries to calculate the version weight for undefined.

      ? Do you plan on developing Titanium apps? Yes
       
      Checking your environment...
       
      "/usr/local/bin/node" "/Users/fokkezb/.appcelerator/install/4.1.3-4/package/node_modules/appc-cli-titanium/node_modules/titanium/bin/titanium" sdk -o json
      checking for titanium, result:
       { activeSDK: '4.1.0.GA',
        defaultInstallLocation: '/Users/fokkezb/Library/Application Support/Titanium',
        installLocations:
         [ '/Users/fokkezb/Library/Application Support/Titanium',
           '/Library/Application Support/Titanium' ],
        installed:
         { '4.1.0.GA': '/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/4.1.0.GA',
           '4.0.0.GA': '/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA',
           '3.5.1.GA': '/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA',
           '3.4.1.GA': '/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/3.4.1.GA',
           '3.3.0.GA': '/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA',
           '3.2.3.GA': '/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/3.2.3.GA',
           '3.1.3.GA': '/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA' } }
      /usr/local/bin/node [ '/Users/fokkezb/.appcelerator/install/4.1.3-4/package/node_modules/appc-cli-titanium/node_modules/titanium/bin/titanium',
        'sdk',
        '-r',
        '-o',
        'json',
        '--no-banner',
        '--no-prompt' ]
      {
      	"activeSDK": "4.1.0.GA",
      	"defaultInstallLocation": "/Users/fokkezb/Library/Application Support/Titanium",
      	"installLocations": [
      		"/Users/fokkezb/Library/Application Support/Titanium",
      		"/Library/Application Support/Titanium"
      	],
      	"installed": {
      		"4.1.0.GA": "/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/4.1.0.GA",
      		"4.0.0.GA": "/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA",
      		"3.5.1.GA": "/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA",
      		"3.4.1.GA": "/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/3.4.1.GA",
      		"3.3.0.GA": "/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA",
      		"3.2.3.GA": "/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/3.2.3.GA",
      		"3.1.3.GA": "/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA"
      	},
      	"releases": {}
      }
      "/usr/local/bin/node" "/Users/fokkezb/.appcelerator/install/4.1.3-4/package/node_modules/appc-cli-titanium/node_modules/titanium/bin/titanium" sdk -o json
      checking for titanium, result:
       { activeSDK: '4.1.0.GA',
        defaultInstallLocation: '/Users/fokkezb/Library/Application Support/Titanium',
        installLocations:
         [ '/Users/fokkezb/Library/Application Support/Titanium',
           '/Library/Application Support/Titanium' ],
        installed:
         { '4.1.0.GA': '/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/4.1.0.GA',
           '4.0.0.GA': '/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA',
           '3.5.1.GA': '/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA',
           '3.4.1.GA': '/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/3.4.1.GA',
           '3.3.0.GA': '/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA',
           '3.2.3.GA': '/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/3.2.3.GA',
           '3.1.3.GA': '/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA' } }
      /usr/local/bin/node [ '/Users/fokkezb/.appcelerator/install/4.1.3-4/package/node_modules/appc-cli-titanium/node_modules/titanium/bin/titanium',
        'sdk',
        '-o',
        'json',
        '--no-banner',
        '--no-prompt' ]
      {
      	"activeSDK": "4.1.0.GA",
      	"defaultInstallLocation": "/Users/fokkezb/Library/Application Support/Titanium",
      	"installLocations": [
      		"/Users/fokkezb/Library/Application Support/Titanium",
      		"/Library/Application Support/Titanium"
      	],
      	"installed": {
      		"4.1.0.GA": "/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/4.1.0.GA",
      		"4.0.0.GA": "/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA",
      		"3.5.1.GA": "/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA",
      		"3.4.1.GA": "/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/3.4.1.GA",
      		"3.3.0.GA": "/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA",
      		"3.2.3.GA": "/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/3.2.3.GA",
      		"3.1.3.GA": "/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA"
      	}
      }
      {
      	"activeSDK": "4.1.0.GA",
      	"defaultInstallLocation": "/Users/fokkezb/Library/Application Support/Titanium",
      	"installLocations": [
      		"/Users/fokkezb/Library/Application Support/Titanium",
      		"/Library/Application Support/Titanium"
      	],
      	"installed": {
      		"4.1.0.GA": "/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/4.1.0.GA",
      		"4.0.0.GA": "/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA",
      		"3.5.1.GA": "/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA",
      		"3.4.1.GA": "/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/3.4.1.GA",
      		"3.3.0.GA": "/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA",
      		"3.2.3.GA": "/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/3.2.3.GA",
      		"3.1.3.GA": "/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA"
      	}
      }
      Cannot call method 'split' of undefined
      TypeError: Cannot call method 'split' of undefined
          at calculateWeight (/Users/fokkezb/.appcelerator/install/4.1.3-4/package/node_modules/appc-cli-titanium/plugins/util.js:714:21)
          at Object.ltSdkVersion (/Users/fokkezb/.appcelerator/install/4.1.3-4/package/node_modules/appc-cli-titanium/plugins/util.js:744:37)
          at ChildProcess.<anonymous> (/Users/fokkezb/.appcelerator/install/4.1.3-4/package/node_modules/appc-cli-titanium/plugins/setup.js:77:18)
          at ChildProcess.emit (events.js:98:17)
          at maybeClose (child_process.js:766:16)
          at Socket.<anonymous> (child_process.js:979:11)
          at Socket.emit (events.js:95:17)
          at Pipe.close (net.js:466:12)
      ERROR  | Error: invalid config results returned from titanium. (JSON parse error)
          at ChildProcess.<anonymous> (/Users/fokkezb/.appcelerator/install/4.1.3-4/package/node_modules/appc-cli-titanium/plugins/setup.js:99:19)
          at ChildProcess.emit (events.js:98:17)
          at maybeClose (child_process.js:766:16)
          at Socket.<anonymous> (child_process.js:979:11)
          at Socket.emit (events.js:95:17)
          at Pipe.close (net.js:466:12)
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              fokkezb Fokke Zandbergen
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Git Source Code