Bug 480031 - [clean up][save actions] White spaces are not removed in some cases
Summary: [clean up][save actions] White spaces are not removed in some cases
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.5.1   Edit
Hardware: PC Windows 10
: P4 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-17 10:51 EDT by John Doe CLA
Modified: 2022-10-29 06:31 EDT (History)
4 users (show)

See Also:


Attachments
Class file and formatter to reproduce this issue (3.45 KB, application/x-zip-compressed)
2015-10-17 10:51 EDT, John Doe CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Doe CLA 2015-10-17 10:51:59 EDT
Created attachment 257333 [details]
Class file and formatter to reproduce this issue

Hello,

To demand, I separate my previous bug submit into individual substitutions, original ticket:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=479958


When "Save Actions" > "Additional Actions" > "Remove trailing white spaces on all lines" is enabled, white spaces after line comments that are after a piece of code are not removed. Only if I save it a second time.

In the ZIP file, there is the class file to reproduce the bug, with formatter settings.


My configuration:
 * Windows 10
 * Eclipse 4.5.1 64-bit
 * JDK 1.8 update 60

Tested with these builds, same result for all these builds (fresh install, no plug-in):
 * Eclipse 4.5.1 64-bit
 * Eclipse 4.6 M2 64-bit
 * eclipse-SDK-M20151014-1000-win32-x86_64.zip
 * eclipse-SDK-I20151014-1100-win32-x86_64.zip


Best regards,
Comment 1 Dani Megert CLA 2017-05-08 12:36:34 EDT
Noopur, please have a look during 4.8 with low prio.
Comment 2 Eclipse Genie CLA 2020-07-16 15:07:13 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.

If you have further information on the current state of the bug, please add it. 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.
Comment 3 Jeff Johnston CLA 2020-07-16 15:41:19 EDT
This still fails in latest Eclipse using the supplied formatter file and doing a source->format.  A cleanup that includes removing all trailing spaces works as expected.
Comment 4 Eclipse Genie CLA 2022-10-29 06:31:26 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.

If you have further information on the current state of the bug, please add it. 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.