Community
Participate
Working Groups
Created attachment 243125 [details] Project with predefined formatting settings I have Save Actions that format the source code according to predefined settings. The layout of the code is not consistent, flipping between the attached Save1.png, Save2.png. To reproduce: 1) Use the attached project. It has the formatting settings and save actions defined. The only class is Formatter.java. 2) Make a trivial change, like adding a whitespace somewhere and then Save. 3) Repeat Each time, the formatter will format the code differently. If I go to Save Actions->Configure->Code Organizing and uncheck "Correct Indentation", then the issue seems to disappear, namely the format will consistenly be the one shown in Save1.png.
Created attachment 243126 [details] First (and expected) outcome of save actions
Created attachment 243127 [details] Second (and not expected) outcome of save
I will take a look
Still an issue in 4.4 RC2
(In reply to Alexander Karatarakis from comment #4) > Still an issue in 4.4 RC2 Target milestone is 4.5. Will be fixed post Luna.
Created attachment 244731 [details] Example of toggling code layout Another example of toggling code layout. On each save the code layout toggles between the two states.
Added another example. This issue is really annoying for our team. Real changes are hidden behind a lot of noise. It's a pity that this known bug made its way through all RCs. Is there a possible workaround? Does someone know if changing some formatter settings helps?
My current workaround: Go to Save Actions->Configure->Code Organizing and uncheck "Correct Indentation".
I have the same issue. It seam's to happens when I add a line comment on the end of the line. Alexander your work around didn't work for me. Can you fix it please as fast as possible? Maybe you can release a hot fix before the next release? It cause us troubles when we committing the code to repository.
*It seems that it happens
This is really annoing if you use the format on save to keep the source code consistent between developers in the source repository to identify changes easily.
Added an offshoot bug 442689
Adding bug 439582 as a dependent since bug 442689 is tagged as its duplicate.
Here's a screen capture of how "Correct Indentations" messes with indentation during a save. https://www.youtube.com/watch?v=0N4x_z6YEXY
This is really annoying issue and a fix in 4.5 is not enough, this is a critical issue.
(In reply to Mariusz Pala from comment #15) > This is really annoying issue and a fix in 4.5 is not enough, this is a > critical issue. Please see bug 439582 comment 4. This is found to be a duplicate of bug 439582 instead of being dependent on that bug. *** This bug has been marked as a duplicate of bug 439582 ***
Verified for 4.5 RC1 using 20150514-1000 build