Community
Participate
Working Groups
When running the code formatter on large and 'cluttered' files, the code formatter uses a large amount of memory and crashes with out of memory errors.
Created attachment 10455 [details] Large file that causes eclipse crash
Created attachment 10456 [details] code formatter configuration
I don't understand. Running the code formatter without ui, I get the following time: Formatting: 281 ms Number of edits: 2023 edits Total formatting time: 1542 ms (formatting + applying edits)
Created attachment 10479 [details] Resulting output after formatting using your code formatter preferences
What are your memory settings?
Please check bug 44141 comment 10. Is this your case?
memory settings? as far as jvm eclipse is running in I havn't modified those settings from the 3.0M8 defaults As for bug 44141 comment 10, that doesn't seem to be this case as diffing doesn't come into the picture at all (unless the code formatter somehow makes use of the diff functionality).
How are you running the code formatter? In the ui? In your own code? In this is done in the ui, then the diff is in the picture.
I am running it in the eclipse UI. Just out of curiosity how does diff enter into it?
The UI activates the diff on changes in a compilation unit. I close as a duplicate of bug 44141. *** This bug has been marked as a duplicate of 44141 ***