Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17208] CLI: CLI crashes when "ti build -d" and "ti build -A" command is run without path values

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2015-02-10T07:15:33.000+0000
Affected Version/sRelease 3.3.0
Fix Version/sRelease 4.1.0
ComponentsCLI
Labelsqe-3.3.0
ReporterKajenthiran Velummaylum
AssigneeFeon Sua Xin Miao
Created2014-06-25T04:51:14.000+0000
Updated2015-07-07T18:05:58.000+0000

Description

titanium build command fails for the flags *-d* and *-A* if there are no path values specified. The behavior of flags are described in following table based on the test result. || command || behavior || | ti build -d | CLI crashes | | ti build --project-dir (if current directory is a project directory) | build success | | ti build --project-dir ( if current directory is not a project directory) | CLI crashes | | | | | ti build -A | CLI crashes | | ti build --android-sdk | build success with default android path | | ti build --android-sdk (without valid android path settings) | Invalid SDK path error is thrown and prompting for new *SDK path* | For more details, please refer the attached screenshots. This is *not a regression* since issue is occurring in CLI 3.2.3 GA as well.

Attachments

FileDateSize
android_sdk_path.png2014-06-25T04:51:14.000+0000121405
project_dir.png2014-06-25T04:51:14.000+0000116715
without_valid_android_sdk.png2014-06-25T04:51:14.000+000024280

Comments

  1. Feon Sua Xin Miao 2015-02-10

    Ti SDK : 3.5.0.GA Ti CLI : 3.4.1
  2. Wilson Luu 2015-07-07

    Closing ticket as cannot reproduce. Tested on: Appc CLI NPM: 4.1.0-1 Appc CLI Core: 4.1.0-5 Arrow: 1.1.0-11 SDK: 4.1.0.v20150706111546 Node: v0.10.38 OS: Yosemite (10.10.4)

JSON Source