Menu

#337 Hangups with New Editor in 1.7.4.0

1.7.4.1
closed
Editor (7)
7
2012-10-04
2012-06-14
tkiesel
No

The new editor has major issues with editing large .java files. Typing even a single letter can hang the interface and peg a CPU at 100% for several seconds while the interface catches up.

Discussion

  • Flemming N. Larsen

    I have fixed this bug with version 1.7.4.1 of Robocode + some other bugs in the editor. The editor is still slow with large text files. But that needs attention in another bug report.
    The editor was entering an infinite loop when performing syntax highlighting due to some issues with the way JEditorPane works, and the limitations this component has e.g. Some workarounds have been introduced.

     
  • Julian Kent

    Julian Kent - 2012-07-05

    I haven't had time to look at your client, but another open-source java-based IDE which does syntax highlighting is jGrasp. Their solution is to press 'F2' every time you want the syntax highlighting and indentation updated.

     
  • Flemming N. Larsen

    @minifly: Actually, I cheat by only syntax highlighting the text that is visible. So I remove old syntax highlighting first, and then add new syntax highlighting, when updates are made - like scrolling the next, inserting or removing text etc. I think this is a far better approach. :-)

    In a coming version (after fixing other bugs), I will add options to the GUI to control various settings of the editor. So e.g. syntax highlighting can be disabled. Fonts and colors can be changed etc.

     
  • Flemming N. Larsen

    Closed.

     
  • Flemming N. Larsen

    • status: pending --> closed
    • milestone: 1.7.4.x --> 1.7.4.1
     

Log in to post a comment.