{ "id": "133941", "key": "AC-1229", "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": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2014-09-05T06:53:30.000+0000", "created": "2014-07-31T00:08:02.000+0000", "labels": [ "TCSupportTriage", "studio3" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:37:36.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": "14551", "name": "Studio", "description": "Please enter tickets related to Titanium Studio here." } ], "description": "I use shortcut key to format my js and xml files. The problem I found is that formatting works improperly on js file after I formatted xml files.\r\n\r\nSee attached screen dump for reference\r\n\r\nh3. Steps to reproduce the problem - \r\n1. Use shortcut key to format a xml file first\r\n2. Open another js file and format it\r\n3. JS file is wrongly formatted.... \r\n\r\n", "attachment": [ { "id": "50144", "filename": "8EDE4157-2D6E-43FD-A4C6-08E6E950F6A2.png", "author": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-31T00:08:02.000+0000", "size": 91658, "mimeType": "image/png" }, { "id": "50143", "filename": "after_format.png", "author": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-31T00:08:02.000+0000", "size": 176350, "mimeType": "image/png" } ], "flagged": false, "summary": "Formatting messes up the javascript file content", "creator": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti.Studio : 3.3.0\r\nMac OS X 10.8.5\r\n\r\n\r\n\r\n", "comment": { "comments": [ { "id": "317835", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\nWe have tested this issue with our following testing environment. It’s not a Studio bug. Please check your js file code, if there is any error in code then it should be shown in wrong formatted. \r\n\r\n*TESTING ENVIRONMENT:*\r\n\r\n Titanium SDK: 3.3.0.GA and 3.2.3.GA\r\n Titanium CLI: 3.3.0\r\n OS X Version: 10.9.3\r\n Android API Level: 17 and 19\r\n\r\n*STEPS TO REPRODUCE:*\r\n\r\n1. Use shortcut key (*shift+command+f* in Mac and *window+shift+f* in windows) to format a xml file first\r\n2. Open another js file and format it\r\n3. JS file is perfectly formatted \r\n\r\n \r\n*TESTING RESULT:*\r\n \r\nJs file shows their proper format.\r\n\r\nThanks.\r\n", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-08-10T06:40:42.000+0000", "updated": "2014-08-26T05:12:51.000+0000" }, { "id": "320283", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello [~jialhe85@gmail.com]!\r\n\r\nDo you have any sample that shows the issue? \r\n\r\nBest Regards!", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-08-26T05:13:20.000+0000", "updated": "2014-08-26T05:13:20.000+0000" }, { "id": "320285", "author": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Mauro\r\n\r\nafter_format.png shows the issue. Unfortunately, I have no sample scripts that do this.\r\n\r\nThanks", "updateAuthor": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-26T05:20:20.000+0000", "updated": "2014-08-26T05:20:20.000+0000" }, { "id": "320287", "author": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Mostafizur\r\n\r\nBut, when I exit studio and restart it, formatting the same script works again....\r\nLet me try to get sample scripts that will show the problem\r\n\r\nThanks\r\n\r\n\r\n", "updateAuthor": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-26T05:22:31.000+0000", "updated": "2014-08-26T05:22:31.000+0000" }, { "id": "321987", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "We can reopen this one if we get code that reproduces the issue. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-09-05T06:53:30.000+0000", "updated": "2014-09-05T06:53:30.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }