Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2459] Titanium Code Processor error on Windows

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2014-01-06T06:01:38.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy, Titanium SDK & CLI
Labelstriage
ReporterSurajit Biswas
AssigneeRitu Agrawal
Created2013-04-05T10:47:02.000+0000
Updated2016-03-08T07:41:30.000+0000

Description

I have created one titanium project. Please see the attachment. Now I try to run the Titanium Code Processor by using the command titanium-code-processor analyze -o android -d D:\SampleUIModule But it shows below error: --------------------------- Titanium Code Processor v0.3.2 Copyright (c) 2012-2013, Appcelerator, Inc. All Rights Reserved. info: Analyzing project at "D:\SampleUIModule" error: Could not run the "titanium project" command: Error: Command failed: [ERR OR] Missing required option "--username" C:\Users\263668\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc \lib\analytics.js:180 sessionCookie = status.cookie.match ^ (/(PHPSESSID= [A-Za-z0-9]+)/), TypeError: Cannot call method 'match' of undefined at C:\Users\263668\AppData\Roaming\npm\node_modules\titanium\node_modules\no de-appc\lib\analytics.js:180:35 at async.parallel (C:\Users\263668\AppData\Roaming\npm\node_modules\titanium \node_modules\async\lib\async.js:476:17) at async.forEach (C:\Users\263668\AppData\Roaming\npm\node_modules\titanium\ node_modules\async\lib\async.js:94:25) at async.parallel (C:\Users\263668\AppData\Roaming\npm\node_modules\titanium \node_modules\async\lib\async.js:473:21) at process.on.async.parallel.osinfo (C:\Users\263668\AppData\Roaming\npm\nod e_modules\titanium\node_modules\node-appc\lib\analytics.js:56:5) at module.exports.getOSInfo (C:\Users\263668\AppData\Roaming\npm\node_module s\titanium\node_modules\node-appc\lib\environ.js:215:4) at ChildProcess.exithandler (child_process.js:538:7) at ChildProcess.EventEmitter.emit (events.js:99:17) at maybeClose (child_process.js:638:16) at Process._handle.onexit (child_process.js:680:5) Make sure that the Titanium CLI is installed and a 3.0 or newer SDK is installed . --------------------------- I am behind a proxy server.

Attachments

FileDateSize
SampleUIModule.zip2013-04-05T10:47:02.000+0000753651

Comments

  1. Davide Cassenti 2013-04-05

    Hello, I tried to run the code processor with the code you mentioned, and it works fine on my machine. This is the command I run:
       $ titanium-code-processor analyze -a -o android -d SampleUIModule
       Titanium Code Processor v0.3.2
       Copyright (c) 2012-2013, Appcelerator, Inc.  All Rights Reserved.
       info: Analyzing project at "/tmp/SampleUIModule"
       info: Code processing finished successfully in 1216 ms.
       
  2. Surajit Biswas 2013-04-08

    Hello I also tried with the same command but it is giving me the error: {quote} titanium-code-processor analyze -a -o android -d D:\SampleUIModu le Titanium Code Processor v0.3.2 Copyright (c) 2012-2013, Appcelerator, Inc. All Rights Reserved. info: Analyzing project at "D:\SampleUIModule" error: Could not run the "titanium project" command: Error: Command failed: [ERR OR] Missing required option "--username" C:\Users\263668\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc \lib\analytics.js:180 sessionCookie = status.cookie.match(/(PHPSESSID= [A-Za-z0-9]+)/), ^ TypeError: Cannot call method 'match' of undefined at C:\Users\263668\AppData\Roaming\npm\node_modules\titanium\node_modules\no de-appc\lib\analytics.js:180:35 at async.parallel (C:\Users\263668\AppData\Roaming\npm\node_modules\titanium \node_modules\async\lib\async.js:476:17) at async.forEach (C:\Users\263668\AppData\Roaming\npm\node_modules\titanium\ node_modules\async\lib\async.js:94:25) at async.parallel (C:\Users\263668\AppData\Roaming\npm\node_modules\titanium \node_modules\async\lib\async.js:473:21) at process.on.async.parallel.osinfo (C:\Users\263668\AppData\Roaming\npm\nod e_modules\titanium\node_modules\node-appc\lib\analytics.js:56:5) at module.exports.getOSInfo (C:\Users\263668\AppData\Roaming\npm\node_module s\titanium\node_modules\node-appc\lib\environ.js:215:4) at ChildProcess.exithandler (child_process.js:538:7) at ChildProcess.EventEmitter.emit (events.js:99:17) at maybeClose (child_process.js:638:16) at Process._handle.onexit (child_process.js:680:5) Make sure that the Titanium CLI is installed and a 3.0 or newer SDK is installed . {quote} Can you please place the sample code to some directory such as D:\Code\ I am on windows machine
  3. Surajit Biswas 2013-04-08

    Hello, I have tested the same in MAC. And it is working there. But not working in windows.
  4. Bryan Hughes 2013-04-08

    The code processor uses the Titanium CLI to query projects, etc. It seems that you are not logged in. The code processor should handle this more gracefully, but you can get around this by logging in using "titanium login"
  5. Shak Hossain 2013-12-09

    We have not heard back from you since you posted the issue. Not sure if this is still throwing error in your app. If so, please send us the details per Bryan's recommendations so that we can take next necessary step to fix. If we don't hear back, we will assume the issue is no longer valid and close it.
  6. Ritu Agrawal 2014-01-06

    Resolving this ticket as we have not been able to reproduce the issue and we have not heard back from the reporter. We would be happy to reopen the ticket and investigate it further if you can provide the requested information.

JSON Source