Some top-level functions no longer tab-completable

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.2.0
    • Component/s: 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(
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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(
      

            Assignee:
            Backlog - Server Tooling and Methods (STM) (Inactive)
            Reporter:
            Kevin Pulo
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: