Bug 184398 - [formatter] Formatter does not fully format in one step
Summary: [formatter] Formatter does not fully format in one step
Status: CLOSED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P5 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2007-04-27 06:04 EDT by Dani Megert CLA
Modified: 2020-04-08 20:22 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2007-04-27 06:04:17 EDT
I20070427-0010.

In order to format the following snippet you need to call the formatter twice.

1. paste this code (include the two empty lines):
----------------------------


public class Test {
}
----------------------------
2. Format ==>
----------------------------

public class Test {
}
----------------------------
3. Format ==>
----------------------------
public class Test {
}
----------------------------
Comment 1 Olivier Thomann CLA 2007-04-27 12:14:36 EDT
What are your compiler settings?
How many empty lines to do preserve ?
Comment 2 Dani Megert CLA 2007-04-27 12:42:03 EDT
forgot step 0.: start with fresh workspace
Comment 3 Olivier Thomann CLA 2007-05-02 14:28:41 EDT
What do you expect?
step2 and 3 to return the same result ?
Comment 4 Dani Megert CLA 2007-05-02 14:47:55 EDT
I would expect that either the first format directly gives the result that I get after the second one or that the second one does nothing.
Comment 5 Frederic Fusier CLA 2008-08-18 08:07:47 EDT
Ownership has changed for the formatter, but I surely will not have enough time to fix your bug during the 3.5 development process, hence set its priority to P5.
Please provide a patch if you definitely need the bug to be fixed in this version and I'll have a look at it...
TIA
Comment 6 Dani Megert CLA 2008-08-18 10:47:17 EDT
Looks like some inconsistency in the formatter. Any chance to put this back on the 3.5 radar?
Comment 7 Frederic Fusier CLA 2008-08-18 10:58:03 EDT
Except big regressions introduced by the the comments formatter rewriting, we will unfortunately not have enough time to look at formatter bugs and enhancements during 3.5 plan...

Is there any strong needs for JDT/Text or JDT/UI to have this issue fixed?
Comment 8 Dani Megert CLA 2008-08-18 11:09:41 EDT
>Is there any strong needs for JDT/Text or JDT/UI to have this issue fixed?
My guess/hope is that this simple test case might help to fix other similar related bugs.
Comment 9 Eclipse Genie CLA 2020-04-08 20:22:32 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.