Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5855] cannot clean a project if SDK is less than 7.3.0.GA where 7.3.0.GA is selected

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2018-08-22T11:20:55.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator CLI, Titanium SDK & CLI
Labelsn/a
ReporterPaul Ryan
AssigneeShak Hossain
Created2018-08-22T11:01:52.000+0000
Updated2018-08-22T11:41:10.000+0000

Description

Steps to reproduce: 1) run appc ti sdk select to select an SDK < 7.3.0.GA (I have reproduced this issue with 7.1.1.GA and 7.2.0.GA) 2) create a new appcelerator project 3) run appc ti sdk select 7.3.0.GA 4) in your project created in step 2) run appc ti clean An error is thrown... Here is my console output (shows it failing on 7.0.3 and 7.0.5) mbp:testclean paulryan$ appc ti clean Appcelerator Command-Line Interface, version 7.0.3 Copyright (c) 2014-2018, Appcelerator, Inc. All Rights Reserved. [INFO] tiapp.xml set to 7.2.0.GA, but current Titanium SDK set to 7.3.0.GA [INFO] Forking correct SDK command: "/Users/paulryan/.nvm/versions/node/v8.7.0/bin/node" "ti" "clean" "--sdk" "7.2.0.GA" "--no-banner" "--config-file" "/Users/paulryan/.titanium/config.json" "--project-dir" "/Users/paulryan/Documents/projects/piota/temp/testclean" "--log-level" "trace" module.js:473 throw err; ^ Error: Cannot find module '/Users/paulryan/Documents/projects/piota/temp/testclean/ti' at Function.Module._resolveFilename (module.js:527:15) at Function.Module._load (module.js:453:25) at Function.Module.runMain (module.js:665:10) at startup (bootstrap_node.js:187:16) at bootstrap_node.js:608:3 mbp:testclean paulryan$ appc use 7.0.5 7.0.5 is now your active version mbp:testclean paulryan$ appc ti clean Appcelerator Command-Line Interface, version 7.0.5 Copyright (c) 2014-2018, Appcelerator, Inc. All Rights Reserved. [INFO] tiapp.xml set to 7.2.0.GA, but current Titanium SDK set to 7.3.0.GA [INFO] Forking correct SDK command: "/Users/paulryan/.nvm/versions/node/v8.7.0/bin/node" "ti" "clean" "--sdk" "7.2.0.GA" "--no-banner" "--config-file" "/Users/paulryan/.titanium/config.json" "--project-dir" "/Users/paulryan/Documents/projects/piota/temp/testclean" "--log-level" "trace" module.js:473 throw err; ^ Error: Cannot find module '/Users/paulryan/Documents/projects/piota/temp/testclean/ti' at Function.Module._resolveFilename (module.js:527:15) at Function.Module._load (module.js:453:25) at Function.Module.runMain (module.js:665:10) at startup (bootstrap_node.js:187:16) at bootstrap_node.js:608:3 mbp:testclean paulryan$

Comments

  1. Ewan Harris 2018-08-22

    Thanks for the report [~paulatstepup], this is a known issue with the 7.0.5/7.3.0 release that will be fixed in an upcoming release of the appc cli, (I believe we're shooting for this week), you can follow CLI-1322 for more details.
  2. Paul Ryan 2018-08-22

    Ok thanks for the heads up - I tried searching JIRA before I raised it to avoid a dup, but could not find one

JSON Source