Community
Participate
Working Groups
On Integration build I200405060200 I have a very large class file (1400 lines - not my usual practice!) that has been a complete pain as far as Eclipse goes - demonstrating many 'odd' issues that make me think Eclipse has a problem with its size (or complexity). Might not be - that's just a guess. Anyway, the problem I am reporting here is a highlighting issue. The class highlights properly on load, but the highlighting degrades and disappears as I make changes to this file (have only noticed it on this one). I will attach a screenshot or two, but essentially, the highlighting 'disappears' in methods that get edited - leaving all text as plain black. In some cases, even chunks of commented-out code, or Javadoc start losing their highlights and colouring too. I'll attach the file, too, but I don't know how much use you will be able to make of it as it has many dependencies on other classes
Created attachment 10600 [details] Snapshot of editor with highlighting in disarray As you can see, the syntax highlighting has disappeared from most of this code - including the Javadoc blocks. But you will also see that it is still there fore the methods above, and little snippets of the code blocks that are otherwise black NB For reference, this is with a completely default implementation, colour-scheme wise, with the new syntax-context highlighting on
Created attachment 10601 [details] Another shot of the broken highlights This is another shot of the broken highlighting. This demonstrates (sort of) how the formatting can manage to recover after all is lost - ie all-black at the top. partially colourful in the centre, and working at the bottom of this screenful
Created attachment 10602 [details] The java file that is causing the problems This is the file with which I am experiencing this problem. It may or may not be of use to you... a) don't judge me on it - it is a work-in-progress dumping ground that will get refactored into a bunch of nicer, smaller classes! b) this class has also demonstrated other issues with Eclipse - such as invalid reports of missing class files (which I also reported), and broken highlighting issues that I noticed in much earlier Eclipse 3.0 builds (M1, M2 etc) that seemed very intermittent, or the occasional loss of automatic cursor indentation on newline. May or may not be coincidence. I'm a heavy-user of Eclipse 3.0 in terms of workspace size and usage of milestone builds - and this is the only file I have *consistently* seen these problems with. That might be coincidence, file size, complexity, a 'rogue' character in the file somewhere, or maybe Eclipse just massively objects to how I've written it and is forcing me to refactor!
Christof, please look into this
Ian, have you seen this on recent builds? Does it still occur if you turn off advanced highlighting?
Please reopen when you have additional information.
Just for reference, I have had this happen again. I had an anonymous inner class in the style Object found = find( new Visitor() { ... } ); and I refactored this to make a new local variable out of the 'new Visitor() { ... }' construct The refactoring was successful, but the editor did not catch up with the highlighting and the subsequent screen-full of code was all in black. A simple page up/page down tidied this up... It is pretty rare, so I'll report instances as they occur in case it gives any pointers, but it doesn't (anymore) happen with enough frequency to compel me to reopen it until I find something more predictable
Were any messages written to the .log?
Get rid of deprecated state.
.