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

tab completion for static imports in groovysh does not work

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.7
    • Fix Version/s: 2.4.8
    • Component/s: Groovysh
    • Labels:
      None

      Description

      Currently, if I run groovysh, and enter the following:

      class MyMath {
          static int square(int x) {return x*x}
      }
      import static MyMath.*
      

      Then enter

      sq

      followed by hitting the Tab key, groovysh does not provided any possible auto-completions.

      Instead, hitting the Tab key should auto-complete to the square method in MyMath.

      I fixed this already in my local groovy installation and can submit it as a pull request if that helps.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jwagenleitner John Wagenleitner
                Reporter:
                heenenee Abraham Grief
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: