Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1229] Formatting messes up the javascript file content

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2014-09-05T06:53:30.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsStudio
LabelsTCSupportTriage, studio3
ReporterDavid He
AssigneeMauro Parra-Miranda
Created2014-07-31T00:08:02.000+0000
Updated2016-03-08T07:37:36.000+0000

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. See attached screen dump for reference

Steps to reproduce the problem -

1. Use shortcut key to format a xml file first 2. Open another js file and format it 3. JS file is wrongly formatted....

Attachments

FileDateSize
8EDE4157-2D6E-43FD-A4C6-08E6E950F6A2.png2014-07-31T00:08:02.000+000091658
after_format.png2014-07-31T00:08:02.000+0000176350

Comments

  1. Mostafizur Rahman 2014-08-10

    Hello, We 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. *TESTING ENVIRONMENT:* Titanium SDK: 3.3.0.GA and 3.2.3.GA Titanium CLI: 3.3.0 OS X Version: 10.9.3 Android API Level: 17 and 19 *STEPS TO REPRODUCE:* 1. Use shortcut key (*shift+command+f* in Mac and *window+shift+f* in windows) to format a xml file first 2. Open another js file and format it 3. JS file is perfectly formatted *TESTING RESULT:* Js file shows their proper format. Thanks.
  2. Mauro Parra-Miranda 2014-08-26

    Hello [~jialhe85@gmail.com]! Do you have any sample that shows the issue? Best Regards!
  3. David He 2014-08-26

    @Mauro after_format.png shows the issue. Unfortunately, I have no sample scripts that do this. Thanks
  4. David He 2014-08-26

    @Mostafizur But, when I exit studio and restart it, formatting the same script works again.... Let me try to get sample scripts that will show the problem Thanks
  5. Mauro Parra-Miranda 2014-09-05

    We can reopen this one if we get code that reproduces the issue.

JSON Source