Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-4043

Tab completion does not work in mid-code

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.1.0
    • Affects Version/s: None
    • Component/s: Shell
    • Labels:
      None
    • ALL

      Tab completion in the shell seems to stop working after other code is already on the input line. It seems like this dates to the introduction of linenoise as a readline replacement.

      MongoDB shell version: 2.1.0-pre-
      > f=function(){} // define empty function
      function () {
      }
      > f.toL<tab>ocaleString() // hit tab after "f.toL" and it completes (I added the ")")
      function () {
      }
      > typeof f.toL<tab> // nothing, no completion
      undefined
      > g=f.toL<tab> // nothing, no completion

      The behavior is the same in 1.9.1, 2.0.0 and the current code. This works in 1.8.4-rc1-pre- built from source today.

      Tested in Ubuntu 11.04 with gnome terminal.

            Assignee:
            tad Tad Marshall
            Reporter:
            tad Tad Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: