Summary: | [formatter] Code Formater fails due to overlapping edits | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Rodrigo Kumpera <kumpera> | ||||
Component: | Core | Assignee: | Frederic Fusier <frederic_fusier> | ||||
Status: | VERIFIED DUPLICATE | QA Contact: | |||||
Severity: | major | ||||||
Priority: | P5 | CC: | daniel_megert, guenther.koegel, roedyg | ||||
Version: | 3.1 | Keywords: | helpwanted | ||||
Target Milestone: | 3.4 M7 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Rodrigo Kumpera
2005-09-30 18:19:08 EDT
Created attachment 27735 [details]
Java file that JDT fails to format
I am investigating. The problem seems to come from the formatting of the comment. If the formatting of comment is disabled, it works fine. The absence of closing <pre> tag is confusing the comment formatter. (In reply to comment #4) > The absence of closing <pre> tag is confusing the comment formatter. I totally forgot to include my formating options, sorry for that. I'm using then builtin profile Eclipse with 0 lines before atributes. Closing the <pre> tag allowed formating to work again. Thanks. Ok, but this is only a workaround. The heuristic to determine the "end" of a missing <pre> block is not good. This seems to be related to a fix for bug 57011. *** Bug 153261 has been marked as a duplicate of this bug. *** *** Bug 123518 has been marked as a duplicate of this bug. *** 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 I can reproduce using 3.3.2 but not using 3.4.0. As it also was not reprodcible using 3.4M7, I guess this issue has been fixed since the new comment formatter has been enabled... *** This bug has been marked as a duplicate of bug 102780 *** Verified for 3.4.0 using I20080617-2000. |