groovy
  1. groovy
  2. GROOVY-2494

GroovyConsole freezes when opening a big script

    Details

    • Type: Bug Bug
    • Status: Reopened Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.5.1
    • Fix Version/s: None
    • Component/s: Swing
    • Labels:
      None
    • Environment:
      Groovy 1.5.1
      JDK 1.6.0_03
      WIN XP
    • Number of attachments :
      0

      Description

      When opening a script that contains many lines groovyConsole freezes for several seconds. This may be related to applying color syntax to the code.

        Issue Links

          Activity

          Hide
          Danno Ferrin added a comment - - edited

          It is related to the syntax color highlighting, and it appears to be deep in javax.swing.text and the matchers used to match it. Nothing that Groovy or our text editor class is doing as best I can see. We may need to over-rider the paste actions to get it fixed.

          (accidentally resolved it when I meant to press 'add comment')

          Show
          Danno Ferrin added a comment - - edited It is related to the syntax color highlighting, and it appears to be deep in javax.swing.text and the matchers used to match it. Nothing that Groovy or our text editor class is doing as best I can see. We may need to over-rider the paste actions to get it fixed. (accidentally resolved it when I meant to press 'add comment')
          Hide
          Claus Ibsen added a comment -

          Is this really a critical bug?

          Show
          Claus Ibsen added a comment - Is this really a critical bug?
          Hide
          Andres Almiray added a comment -

          Well, it gets really annoying when working with several scripts for a while (specially coming from GraphicsPad). But I guess not that many people use groovyConsole everyday, otherwise this should have been reported previously.

          Show
          Andres Almiray added a comment - Well, it gets really annoying when working with several scripts for a while (specially coming from GraphicsPad). But I guess not that many people use groovyConsole everyday, otherwise this should have been reported previously.
          Hide
          Paul King added a comment -

          Changing priority to major as per last comment.

          Show
          Paul King added a comment - Changing priority to major as per last comment.
          Hide
          Tim Yates added a comment -

          Does my patch for the syntax highlghting:

          http://jira.codehaus.org/browse/GROOVY-2790

          Help with this too?

          Show
          Tim Yates added a comment - Does my patch for the syntax highlghting: http://jira.codehaus.org/browse/GROOVY-2790 Help with this too?
          Hide
          Tim Yates added a comment -

          Actually...it probably won't as it still has to go through the regular expression Lexer to colourise the script...

          I'll have a look to see if I can optimise the lexer a bit

          Show
          Tim Yates added a comment - Actually...it probably won't as it still has to go through the regular expression Lexer to colourise the script... I'll have a look to see if I can optimise the lexer a bit
          Hide
          Pascal Schumacher added a comment -

          Seems related to GROOVY-3581. Maybe even a duplicate.

          Show
          Pascal Schumacher added a comment - Seems related to GROOVY-3581 . Maybe even a duplicate.

            People

            • Assignee:
              Unassigned
              Reporter:
              Andres Almiray
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: