Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15961] Code Processor: Cannot analyze for any platform through CLI

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionWon't Fix
Resolution Date2014-08-14T17:51:36.000+0000
Affected Version/sRelease 3.2.0
Fix Version/sn/a
ComponentsCLI, Code Processor
Labelsft, qe-3.2.0, regression
ReporterSamuel Dowse
AssigneePraveen Innamuri
Created2013-12-11T20:54:02.000+0000
Updated2017-03-22T17:10:32.000+0000

Description

Description

Running "ti analyze" inside of a project directory will prompt asking for a deployment target. No matter which deployment target is chosen, the code processor will say it doesn't exist.
Target platform to build for:
 1)  android
 2)  blackberry
 3)  ios
 4)  mobileweb
 5)  tizen
Enter # or platform name: 1
 
[ERROR] Unable to find platform configuration for "android"

Steps To Reproduce

1. Create a project in Appcelerator Studio 2. Open Terminal 3. Move into the project directory 4. Run "ti analyze" 5. Choose a target platform

Attachments

FileDateSize
log.txt2014-07-02T19:48:45.000+00002715
sample.options2013-12-16T03:54:49.000+00002180

Comments

  1. Thomas Huelbert 2013-12-12

    need environment info and regression info.
  2. Samuel Dowse 2013-12-12

    Tested on: Mac OSX 10.9 Mavericks Titanium-Code-Processor: 1.0.0 Titanium SDK, build: 3.1.3.GA CLI: 3.1.2 Runnning the command "titanium-code-processor analyze --osname=" worked for all platforms except Tizen. Tizen is not an option in version 1.0.0.
  3. Michael Xia 2013-12-16

    The command that Studio runs for code analyzer is the following:
       "/usr/local/bin/titanium" "--no-colors" "--no-progress-bars" "--no-prompt" "--no-banner" "analyze" "-o" "stream" "-F" "/Users/mxia/Documents/Appcelerator_Studio_Workspace 3.2.0/.metadata/.plugins/com.appcelerator.titanium.codeprocessor.core/analyzer7173935206727179441.options"
       
    The .options file contains all the info and options for code analyzer to run. Attached one.
  4. Jason Kneen 2014-02-11

    Workaround above doesn't work on 3.2.1 I try:- titanium-code-processor analyze --osname=ios and get Titanium Code Processor version 1.1.0 Copyright (c) 2012-2013, Appcelerator, Inc. All Rights Reserved. Run "titanium analyze" to use the Titanium Code Processor
  5. Ingo Muschenetz 2014-02-11

    Did you try the workaround as noted? You need to run "titanium analyze" now, not "titanium-code-processor"
  6. Jason Kneen 2014-02-11

    I was following Samuel's guide which didn't work. Is Michael's the correct workaround?
  7. Ingo Muschenetz 2014-02-11

    Yes, Michael's should be the correct approach.
  8. Olga Romero 2014-07-02

    Reopened, using Mac osx 10.9.4 Mavericks Appcelerator Studio, build: 3.3.0.201406231625 Titanium SDK, build: 3.3.0.v20140701114913 Node.JS Version: v0.10.28 NPM Version: 1.4.9 acs@1.0.15 alloy@1.4.0-rc3 npm@1.4.9 titanium@3.3.0-rc4 titanium-code-processor@1.1.1 Please see the log.txt Error is generated running
       ti analyze -p android   (e.g.)
       
  9. Ingo Muschenetz 2014-08-14

    We will not be supporting this use case.
  10. Lee Morris 2017-03-22

    Closing ticket as Code Processor is no longer supported.

JSON Source