{ "id": "121974", "key": "TIMOB-15645", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "15707", "description": "2013 Sprint 23", "name": "2013 Sprint 23", "archived": true, "released": true, "releaseDate": "2013-11-15" }, { "id": "15709", "description": "2013 Sprint 23 Core", "name": "2013 Sprint 23 Core", "archived": true, "released": true, "releaseDate": "2013-11-15" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-11-04T09:16:20.000+0000", "created": "2013-11-02T22:16:51.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "cli", "qe-closed-3.2.0" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-06-19T12:43:23.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": "10202", "name": "Android", "description": "Android Platform" }, { "id": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "Test steps:\r\n\r\nRunning something like \"ti build -p android --avd-id 14 --avd-skin HVGA --legacy\" will return an error:\r\n\r\n{code}\r\nTraceback (most recent call last):\r\n File \"/Library/Application Support/Titanium/mobilesdk/osx/3.2.0/android/builder.py\", line 2546, in \r\n builder = Builder(project_name,sdk_dir,project_dir,template_dir,app_id,is_emulator)\r\n File \"/Library/Application Support/Titanium/mobilesdk/osx/3.2.0/android/builder.py\", line 458, in __init__\r\n android_creator.create(parent_dir, project_dir=self.top_dir, build_time=True)\r\n File \"/Users/ayeung/titanium/titanium_mobile/dist/mobilesdk/osx/3.2.0/android/android.py\", line 341, in create\r\n app_properties = self.app_properties, app_info = self.app_info)\r\n File \"/Users/ayeung/titanium/titanium_mobile/dist/mobilesdk/osx/3.2.0/android/android.py\", line 110, in render\r\n tmpl = self.load_template(os.path.join(template_dir, 'templates','build' , template_file))\r\n File \"/Users/ayeung/titanium/titanium_mobile/dist/mobilesdk/osx/3.2.0/android/android.py\", line 102, in load_template\r\n return Template(filename=template, output_encoding='utf-8', encoding_errors='replace')\r\n File \"/Users/ayeung/titanium/titanium_mobile/dist/mobilesdk/osx/3.2.0/common/mako/template.py\", line 93, in __init__\r\n (code, module) = _compile_text(self, file(filename).read(), filename)\r\n File \"/Users/ayeung/titanium/titanium_mobile/dist/mobilesdk/osx/3.2.0/common/mako/template.py\", line 250, in _compile_text\r\n node = lexer.parse()\r\n File \"/Users/ayeung/titanium/titanium_mobile/dist/mobilesdk/osx/3.2.0/common/mako/lexer.py\", line 160, in parse\r\n if self.match_python_block():\r\n File \"/Users/ayeung/titanium/titanium_mobile/dist/mobilesdk/osx/3.2.0/common/mako/lexer.py\", line 276, in match_python_block\r\n self.append_node(parsetree.Code, self.escape_code(text), match.group(1)=='!', lineno=line, pos=pos)\r\n File \"/Users/ayeung/titanium/titanium_mobile/dist/mobilesdk/osx/3.2.0/common/mako/lexer.py\", line 94, in append_node\r\n node = nodecls(*args, **kwargs)\r\n File \"/Users/ayeung/titanium/titanium_mobile/dist/mobilesdk/osx/3.2.0/common/mako/parsetree.py\", line 127, in __init__\r\n self.code = ast.PythonCode(text, **self.exception_kwargs)\r\n File \"/Users/ayeung/titanium/titanium_mobile/dist/mobilesdk/osx/3.2.0/common/mako/ast.py\", line 30, in __init__\r\n expr = pyparser.parse(code.lstrip(), \"exec\", **exception_kwargs)\r\n File \"/Users/ayeung/titanium/titanium_mobile/dist/mobilesdk/osx/3.2.0/common/mako/pyparser.py\", line 37, in parse\r\n raise exceptions.SyntaxException(\"(%s) %s (%s)\" % (e.__class__.__name__, str(e), repr(code[0:50])), **exception_kwargs)\r\nmako.exceptions.SyntaxException: (SyntaxError) invalid syntax (, line 1) (u'- !!tiapp.analytics \\n') in file '/Users/ayeung/titanium/titanium_mobile/dist/mobilesdk/osx/3.2.0/android/templates/build/AppInfo.java' at line: 56 char: 10\r\n{code}\r\n\r\nThis could be related to the fact that the templates were moved. After resolving this issue, we will most likely need to modify AppInfo.java to include the new getDeployType() method as well.\r\n\r\nAnother thing to note is that the '-T device' flag does not seem to work for legacy either. It just assumes that it is an emulator and prompts the user for an avd-id.", "attachment": [], "flagged": false, "summary": "Andorid: CLI: Legacy flag does not work on CLI", "creator": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "277923", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Pull request: https://github.com/appcelerator/titanium_mobile/pull/4905", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-11-04T07:13:30.000+0000", "updated": "2013-11-04T07:13:30.000+0000" }, { "id": "277928", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "To test, run:\n\n{code}\nti build -p android --legacy --avd-id --avd-skin \n{code}", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-11-04T07:53:19.000+0000", "updated": "2013-11-04T07:53:19.000+0000" }, { "id": "278797", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with:\nCLI 3.2.0 (git://github.com/appcelerator/titanium.git)\nAlloy 1.3.3\nTitanium SDK, build: 3.2.0.v20131107161747\n\nClean the project first before running command 'ti build'\n\nProject built successfully and launched on Emulator.", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-08T19:13:04.000+0000", "updated": "2013-11-08T19:13:04.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }