Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 138039

Summary: Broken text editor after formatting
Product: [Eclipse Project] Platform Reporter: John Arthorne <john.arthorne>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: P3    
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Attachments:
Description Flags
log file
none
File being edited at time of failure none

Description John Arthorne CLA 2006-04-21 15:42:52 EDT
Build id: N20060421-0010 + text patch for bug 137908

I was typing in a Java editor, and then quickly hit Ctrl+Shift+F to format the code.  This caused an assertion failed error in JFace text.  After this point the editor was completely broken.  Type characters would appear before the caret, the dirty indicator did not work, syntax highlighting was broken, and most commands (including Delete) would cause the assertion failure again. I will attach the log.  After closing and reopening the editor it was fine, and I have been unable to reproduce it again so far.
Comment 1 John Arthorne CLA 2006-04-21 15:43:15 EDT
Created attachment 39212 [details]
log file
Comment 2 John Arthorne CLA 2006-04-21 15:46:19 EDT
After thinking a bit more, it may not have been the format that caused the failure.  I have a habit of doing Ctrl+Shift+O,F,D,S to organize imports, format, sort, and save all in a single sequence.  I was doing this sequence when it failed (I have custom binding of Ctrl+Shift+D to the sort members command).
Comment 3 Dani Megert CLA 2006-04-22 03:42:57 EDT
It would be interesting to have the file. Most valuable would be a state close to when it happened.
Comment 4 John Arthorne CLA 2006-04-24 10:16:10 EDT
Created attachment 39275 [details]
File being edited at time of failure

I was able to find the file in my local history from the time of the failure.  However, I was not able to reproduce the failure afterwards with the same contents.  I think the failure was related to the fact that I had just finished typing and the reconciler was running at the time I issued the other commands.
Comment 5 Dani Megert CLA 2006-04-24 11:44:52 EDT

*** This bug has been marked as a duplicate of 124832 ***