Bug 263212 - [scalability mode] editor should not remove trailing whitespace
Summary: [scalability mode] editor should not remove trailing whitespace
Status: ASSIGNED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 5.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-02 05:11 EST by Markus Schorn CLA
Modified: 2020-09-04 15:19 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Schorn CLA 2009-02-02 05:11:45 EST
When saving a large file (in scalability mode with all options enabled) the IDE gets stuck (does not respond at least for minutes). This is not the case when I disable the editor feature of removing trailing whitespace. Here is the stack trace of the main thread while the IDE does not respond:

Stack trace: 
org.eclipse.core.internal.filebuffers.SynchronizableDocument.get(SynchronizableDocument.java:139)
   - locked java.lang.Object@1f312f0
org.eclipse.cdt.internal.ui.text.BufferedDocumentScanner.updateBuffer(BufferedDocumentScanner.java:74)
org.eclipse.cdt.internal.ui.text.BufferedDocumentScanner.read(BufferedDocumentScanner.java:115)
org.eclipse.cdt.internal.ui.text.FastCPartitionScanner.nextToken(FastCPartitionScanner.java:127)
org.eclipse.jface.text.rules.FastPartitioner.documentChanged2(FastPartitioner.java:339)
org.eclipse.jface.text.AbstractDocument.updateDocumentStructures(AbstractDocument.java:672)
org.eclipse.jface.text.AbstractDocument.fireDocumentChanged(AbstractDocument.java:759)
org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1157)
org.eclipse.core.internal.filebuffers.SynchronizableDocument.replace(SynchronizableDocument.java:195)
   - locked java.lang.Object@1f312f0
org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1176)
org.eclipse.core.internal.filebuffers.SynchronizableDocument.replace(SynchronizableDocument.java:181)
   - locked java.lang.Object@1f312f0
org.eclipse.text.edits.DeleteEdit.performDocumentUpdating(DeleteEdit.java:64)
org.eclipse.text.edits.TextEdit.traverseDocumentUpdating(TextEdit.java:917)
org.eclipse.text.edits.TextEditProcessor.executeDo(TextEditProcessor.java:194)
org.eclipse.text.edits.TextEdit.dispatchPerformEdits(TextEdit.java:739)
org.eclipse.text.edits.TextEditProcessor.performEdits(TextEditProcessor.java:156)
org.eclipse.text.edits.TextEdit.apply(TextEdit.java:711)
org.eclipse.text.edits.TextEdit.apply(TextEdit.java:735)
org.eclipse.cdt.internal.ui.editor.CDocumentProvider.performSaveActions(CDocumentProvider.java:1050)
org.eclipse.cdt.internal.ui.editor.CDocumentProvider.createSaveOperation(CDocumentProvider.java:960)
org.eclipse.ui.editors.text.TextFileDocumentProvider.saveDocument(TextFileDocumentProvider.java:769)
org.eclipse.ui.texteditor.AbstractTextEditor.performSave(AbstractTextEditor.java:4842)
org.eclipse.ui.texteditor.AbstractTextEditor.doSave(AbstractTextEditor.java:4631)
org.eclipse.ui.texteditor.AbstractTextEditor$TextEditorSavable.doSave(AbstractTextEditor.java:6946)
org.eclipse.ui.Saveable.doSave(Saveable.java:212)