Project: titanium
Issue TIMOB-17346: CLI: Ti config JSON corrupted resulting in inability to run CLI commands
h5. Description: Ritu experienced an issue during update to 3.3.0 GA components which resulted in her ti config JSON getting corrupted. The cause or timing of this are not known. No other team members experienced it during our update testing, so at this point seems isolated to a single system. When a project is created in Studio in this configuration, the tiapp.xml is not rendered correctly. In addition all commands for the CLI fail, see below for details: {code} ChangeMeMBA-5:analytics ragrawal$ ti -v FATAL ERROR: Error: Unable to parse config file ChangeMeMBA-5:analytics ragrawal$ ti info FATAL ERROR: Error: Unable to parse config file {code} To fix the issue, the JSON structure was manually edited to be valid. h5. Steps to reproduce: Steps are mostly unknown, but have more detail on config # Configure a system in the following manner: ## One latest development version of the SDK in your titanium folder, but no GA 3.3.0 ## Latest modules from a previous development 3.3.0 build install ## Studio 3.3.0 Latest version ## GA npm components (acs 1.0.14, CLI 3.2.3, Alloy 1.3.1, titanium-code-preocessor 1.1.1) # Check for Appcelerator updates in studio # Update your NPM components and SDK # Check in terminal "ti config" h5. Result: JSON structure is invalid, and the CLI is unable to parse. CLI commands fail, and Studio tiapp.xml editor fails to render (since components are missing from CLI-built project) h5. Expected Result: CLI identifies bad structure and offers information on solution
Story points: 8