[AC-2459] Titanium Code Processor error on Windows
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2014-01-06T06:01:38.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Alloy, Titanium SDK & CLI |
Labels | triage |
Reporter | Surajit Biswas |
Assignee | Ritu Agrawal |
Created | 2013-04-05T10:47:02.000+0000 |
Updated | 2016-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
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:
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
Hello, I have tested the same in MAC. And it is working there. But not working in windows.
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"
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.
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.