jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • groovy
  • GROOVY-2494

GroovyConsole freezes when opening a big script

  • Log In
  • Views
    • XML
    • Word
    • Printable

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

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.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Danno Ferrin added a comment - 11/Jan/08 1:01 PM - 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 - 11/Jan/08 1:01 PM - 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
Permalink
Claus Ibsen added a comment - 20/Jan/08 5:21 AM

Is this really a critical bug?

Show
Claus Ibsen added a comment - 20/Jan/08 5:21 AM Is this really a critical bug?
Hide
Permalink
Andres Almiray added a comment - 20/Jan/08 1:32 PM

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 - 20/Jan/08 1:32 PM 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
Permalink
Paul King added a comment - 16/Apr/08 7:51 PM

Changing priority to major as per last comment.

Show
Paul King added a comment - 16/Apr/08 7:51 PM Changing priority to major as per last comment.
Hide
Permalink
Tim Yates added a comment - 28/Aug/09 9:07 AM

Does my patch for the syntax highlghting:

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

Help with this too?

Show
Tim Yates added a comment - 28/Aug/09 9:07 AM Does my patch for the syntax highlghting: http://jira.codehaus.org/browse/GROOVY-2790 Help with this too?
Hide
Permalink
Tim Yates added a comment - 28/Aug/09 9:08 AM

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 - 28/Aug/09 9:08 AM 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

People

  • Assignee:
    Unassigned
    Reporter:
    Andres Almiray
Vote (0)
Watch (1)

Dates

  • Created:
    11/Jan/08 12:51 PM
    Updated:
    28/Aug/09 9:08 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.