| Summary: | Project-specific java indent level config not working | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Phil Adams <padamstx> |
| Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
| Status: | CLOSED WORKSFORME | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | mateusz.matela |
| Version: | 4.8 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Phil Adams
Does it affect any other settings or only indentation level? And what do you mean by that: "indention size", "tab size" or "default indentation for wrapped lines"? Can you try with the newest version? And also with a clean installation and a fresh workspace to make sure it's not caused by some plugins? I installed a fresh copy of eclipse (2019-03) and then created two projects ("indent2" and "indent4") in a new workspace. Everything seemed to work correctly in terms of the indent level of each project.
I set my *global* code formatter settings (imported from my other eclipse installation) such that the indentation size is 4 spaces. I then re-formatted the test java class in each of the two projects mentioned above and 4 spaces were correctly used for the indentation.
I then modified the project settings for the "indent2" project such that the indentation size is 2 spaces instead of 4. I then re-formatted the test java class in that project and it changed the formatting to use 2 spaces instead of 4, as expected.
So... it looks like something else must be at play here. I'll just migrate my projects forward to this version of eclipse and create new workspaces, etc.
Thanks for looking into this.
Closing as I can't reproduce this is a clean environment on eclipse 2019-03. Follow-up... After trying unsuccessfully to reproduce this in a clean workspace on the 2019-03 version of eclipse, I went ahead and opened up the 2019-03 version on my existing workspace where I originally encountered the problem, and everything seems to work fine there now. So, perhaps something was fixed between the Photon and 2019-03 releases. |