Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-9436

groovyConsole line numbers don't always line up with content

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.4.18, 2.5.9, 3.0.1
    • None
    • Groovy Console
    • None
    • MacOSX

    Description

      See attached macosx-groovy3-java8.png. The line numbers do not line up with the content (code) when certain character is in the content.

      To reproduce, open groovyConsole, press enter a few times and then type the unicode character U+030B (COMBINING DOUBLE ACUTE ACCENT). On MacOSX, Finnish keyboard, that is SHIFT-ALT-0 (zero).

      You should see that the font in the text editor kind of gets smaller, but the line number panel does not reflect that.

      Same can result can be obtained if you open a file that contains the offending character. E.g. attached console-numberspanel-out-of-sync-1.groovy.

      Attachments

        1. console-numberspanel-out-of-sync-1.groovy
          0.1 kB
          Mikko Värri
        2. macosx-groovy3-java11plus.png
          111 kB
          Mikko Värri
        3. macosx-groovy3-java8.png
          86 kB
          Mikko Värri
        4. miniGroovyConsole.groovy
          3 kB
          Mikko Värri

        Activity

          People

            Unassigned Unassigned
            vmj Mikko Värri
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: