Skip to content

"Perform Setup Tasks" removes comments from eclipse.ini (and rearranges its contents too) #3799 #1060

@fedejeanne

Description

@fedejeanne

Tip

Originally reported as a releng issue but it was suggested that I report it here: see Ed's comment.


Let's make sure issue is not already fixed in latest builds first.

Steps to reproduce

From a fresh installation and clean workspace:

  • Help > Perform Setup Tasks -> Next, next ... finish

I expected: That the contents of the eclipse.ini remain unchanged or at least that the comments remain in the file

But got: Comments got removed and the content was rearranged (a flag was moved a few lines up)

Screenshots

I had this at the very end of my eclipse.ini file:

Image

I started the wizard via Help > Perform Setup Tasks, here's what I had:

Image

After finishing the update (even before restarting Eclipse) the line with the flag was moved some lines up (sorry, I forgot to include the line numbers in the screenshot) and, worst of all, the comment is gone.

Image

This is a small nuance but I usually comment out flags that I only need every once in a while and I leave them in the ini file so that I can uncomment them when necessary. This bug makes that practice impossible.

I know it was possible to leave comments in the file before since I had been doing it for a while, I just don't know exactly when did this behavior changed so I can't provide a lower version bound for this bug.

Tested under this environment:

  • OS & version: Windows 11
  • Eclipse IDE/Platform version (as shown in Help > About): 2026-06 (4.40) - I20260427-1800

Community

  • I understand reporting an issue to this OSS project does not mandate anyone to fix it. Other contributors may consider the issue, or not, at their own convenience. The most efficient way to get it fixed is that I fix it myself and contribute it back as a good quality patch to the project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions