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

Groovysh tab completion should provide trailing spaces only when expecting more arguments

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0, 2.4.4
    • Fix Version/s: 2.5.0-alpha-1
    • Component/s: Groovysh
    • Labels:
      None

      Description

      And also bug after 'as' completion of import

      To reproduce ( '|' shows the cursor, <tab> means hitting tab)

      groovy:000> :ex|<tab>
      groovy:000> :exit |  // bad trailing blank, no more arguments allowed
      
      groovy:000> :history sh|<tab>
      groovy:000> :history show |  // bad trailing blank, no more arguments allowed
      
      groovy:000>  import java.lang.Math as Foo|<tab>
      // internal Exception, causes prompt to be reprinted
      

      See https://github.com/apache/incubator-groovy/pull/92

        Attachments

          Activity

            People

            • Assignee:
              pascalschumacher Pascal Schumacher
              Reporter:
              tkruse Thibault Kruse
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: