{ "id": "172110", "key": "AC-5855", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2018-08-22T11:20:55.000+0000", "created": "2018-08-22T11:01:52.000+0000", "labels": [], "versions": [], "issuelinks": [ { "id": "56743", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "172088", "key": "CLI-1322", "fields": { "summary": "appc ti clean errors if globally set sdk differs from the one configured in tiapp.xml", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-22T11:41:10.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14552", "name": "Appcelerator CLI", "description": "Please enter tickets related to Tooling and the CLI here" }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Steps to reproduce:\r\n1) 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)\r\n2) create a new appcelerator project\r\n3) run `appc ti sdk select 7.3.0.GA`\r\n4) in your project created in step 2) run `appc ti clean`\r\n\r\nAn error is thrown... \r\n\r\nHere is my console output (shows it failing on 7.0.3 and 7.0.5)\r\n\r\nmbp:testclean paulryan$ appc ti clean\r\nAppcelerator Command-Line Interface, version 7.0.3\r\nCopyright (c) 2014-2018, Appcelerator, Inc. All Rights Reserved.\r\n\r\n[INFO] tiapp.xml set to 7.2.0.GA, but current Titanium SDK set to 7.3.0.GA\r\n[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\"\r\n\r\nmodule.js:473\r\n throw err;\r\n ^\r\n\r\nError: Cannot find module '/Users/paulryan/Documents/projects/piota/temp/testclean/ti'\r\n at Function.Module._resolveFilename (module.js:527:15)\r\n at Function.Module._load (module.js:453:25)\r\n at Function.Module.runMain (module.js:665:10)\r\n at startup (bootstrap_node.js:187:16)\r\n at bootstrap_node.js:608:3\r\nmbp:testclean paulryan$ appc use 7.0.5\r\n7.0.5 is now your active version\r\nmbp:testclean paulryan$ appc ti clean\r\nAppcelerator Command-Line Interface, version 7.0.5\r\nCopyright (c) 2014-2018, Appcelerator, Inc. All Rights Reserved.\r\n\r\n[INFO] tiapp.xml set to 7.2.0.GA, but current Titanium SDK set to 7.3.0.GA\r\n[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\"\r\n\r\nmodule.js:473\r\n throw err;\r\n ^\r\n\r\nError: Cannot find module '/Users/paulryan/Documents/projects/piota/temp/testclean/ti'\r\n at Function.Module._resolveFilename (module.js:527:15)\r\n at Function.Module._load (module.js:453:25)\r\n at Function.Module.runMain (module.js:665:10)\r\n at startup (bootstrap_node.js:187:16)\r\n at bootstrap_node.js:608:3\r\nmbp:testclean paulryan$ ", "attachment": [], "flagged": false, "summary": "cannot clean a project if SDK is less than 7.3.0.GA where 7.3.0.GA is selected", "creator": { "name": "paulatstepup", "key": "paulatstepup", "displayName": "Paul Ryan", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "paulatstepup", "key": "paulatstepup", "displayName": "Paul Ryan", "active": true, "timeZone": "Europe/London" }, "environment": "Mac High Sierra and Sierra (not tested on any others)\r\nNode 8.7.x and 8.11.x (not tested on any others)\r\nappc 7.0.3 and 7.0.5 (not tested on others)", "comment": { "comments": [ { "id": "440984", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "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.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-08-22T11:20:01.000+0000", "updated": "2018-08-22T11:20:01.000+0000" }, { "id": "440985", "author": { "name": "paulatstepup", "key": "paulatstepup", "displayName": "Paul Ryan", "active": true, "timeZone": "Europe/London" }, "body": "Ok thanks for the heads up - I tried searching JIRA before I raised it to avoid a dup, but could not find one", "updateAuthor": { "name": "paulatstepup", "key": "paulatstepup", "displayName": "Paul Ryan", "active": true, "timeZone": "Europe/London" }, "created": "2018-08-22T11:41:10.000+0000", "updated": "2018-08-22T11:41:10.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }