-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: AsyncRewriter
-
None
-
Iteration Z
-
Not Needed
The autocomplete sometimes fails with the following error on latest master:
> db.undefined:1148
if (_fs23 === "returned") return _srv23;else if (_fs23 === "threw") throw _srv23;
^
TypeError: compareFn is not a function
at eval (eval at innerEval (/Users/michael.rose/Software/mongodb/mongosh/packages/shell-evaluator/lib/shell-evaluator.js:46:13), <anonymous>:1108:58)
at Generator.next (<anonymous>)
at eval (eval at innerEval (/Users/michael.rose/Software/mongodb/mongosh/packages/shell-evaluator/lib/shell-evaluator.js:46:13), <anonymous>:1115:65)
at eval (eval at innerEval (/Users/michael.rose/Software/mongodb/mongosh/packages/shell-evaluator/lib/shell-evaluator.js:46:13), <anonymous>:1128:29)
at Array.sort (<anonymous>)
at eval (eval at innerEval (/Users/michael.rose/Software/mongodb/mongosh/packages/shell-evaluator/lib/shell-evaluator.js:46:13), <anonymous>:1083:55)
at Array._arv9.sort (eval at innerEval (/Users/michael.rose/Software/mongodb/mongosh/packages/shell-evaluator/lib/shell-evaluator.js:46:13), <anonymous>:1146:21)
at commonPrefix (internal/readline/utils.js:359:34)
at PrettyREPLServer.<anonymous> (readline.js:526:20)
at cb (util.js:207:31)