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

Some top-level functions no longer tab-completable

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 3.2.0
    • Shell
    • Server Tooling & Methods
    • ALL
    • Hide

      In the shell, type "v" then press Tab a few times. In 3.0.8, this gives:

      validateIndexKey(  valueOf(           version(
      

      but in 3.2.0 it gives only:

      validateIndexKey(  valueOf(
      

      Show
      In the shell, type "v" then press Tab a few times. In 3.0.8, this gives: validateIndexKey( valueOf( version( but in 3.2.0 it gives only: validateIndexKey( valueOf(

    Description

      In the 3.2.0 shell, the version(), quit() and bsonWoCompare() functions no longer tab complete, although they are still present and work fine when executed.

      There are other functions that also don't tab complete anymore, but they aren't as user-facing as the above functions.

      $ diff -u <(/m/3.0.8/bin/mongo --norc --eval "for(i='_'.charCodeAt(0); i <= 'z'.charCodeAt(0); i++) {shellAutocomplete(String.fromCharCode(i)); __autocomplete__.forEach(function(x) {print(x)}); }") <(/m/3.2.1-rc0/bin/mongo --norc --eval "for(i='_'.charCodeAt(0); i <= 'z'.charCodeAt(0); i++) {shellAutocomplete(String.fromCharCode(i)); __autocomplete__.forEach(function(x) {print(x)}); }") | grep '^-'
      --- /dev/fd/63  2015-12-29 16:20:21.750340725 +1100
      -MongoDB shell version: 3.0.8
      -_scopedThreadInject(
      -_threadInject(
      -bsonWoCompare(
      -DB(
      -DBCollection(
      -DBQuery(
      -DBRef(
      -MongodRunner(
      -quit(
      -ReplSetBridge(
      -startMongod(
      -startMongodEmpty(
      -startMongodNoReset(
      -startMongodTest(
      -startMongos(
      -stopMongoProgram(
      -stopMongod(
      -version(
      

      Attachments

        Activity

          People

            backlog-server-stm Backlog - Server Tooling and Methods (STM) (Inactive)
            kevin.pulo@mongodb.com Kevin Pulo
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: