Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-818

Autocompletion prints visible error with --apiStrict for pipeline stages

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.15.0
    • Affects Version/s: None
    • Component/s: Autocomplete
    • None
    • Iteration Düsseldorf
    • Not Needed

      > db.shipwrecks.aggregate([ { $Tab completion error: TypeError: Invalid Version: undefined
          at new SemVer (/home/addaleax/src/mongosh/packages/autocomplete/node_modules/semver/classes/semver.js:22:13)
          at compare (/home/addaleax/src/mongosh/packages/autocomplete/node_modules/semver/functions/compare.js:3:3)
          at Object.gte (/home/addaleax/src/mongosh/packages/autocomplete/node_modules/semver/functions/gte.js:2:30)
          at isAcceptable (/home/addaleax/src/mongosh/packages/autocomplete/lib/index.js:102:26)
          at /home/addaleax/src/mongosh/packages/autocomplete/lib/index.js:124:55
          at eval (eval at innerEval (/home/addaleax/src/mongosh/packages/shell-evaluator/lib/shell-evaluator.js:34:13), <anonymous>:1:115235)
          at Array._arv9.filter (eval at innerEval (/home/addaleax/src/mongosh/packages/shell-evaluator/lib/shell-evaluator.js:34:13), <anonymous>:1:115988)
          at filterQueries (/home/addaleax/src/mongosh/packages/autocomplete/lib/index.js:123:30)
          at completer (/home/addaleax/src/mongosh/packages/autocomplete/lib/index.js:78:26)
          at /home/addaleax/src/mongosh/packages/cli-repl/lib/mongosh-repl.js:149:44
      

            Assignee:
            michael.rose@mongodb.com Michael Rose (Inactive)
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: