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

Tab completion does not work in mid-code

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.1.0
    • None
    • Shell
    • None
    • ALL

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: