-
Type: Bug
-
Resolution: Cannot Reproduce
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Playgrounds
-
None
-
Not Needed
Problem Description
Running a seemingly harmless code snippet in playground results in error
Steps to Reproduce
- Copy-paste this code snippet from one of the mongodb university courses to the playground
- Run the playground
Expected Results
- It evaluates without error
Actual Results
- It shows an error (taken from the server output log):
MONGOSH execute all error: MongoshInternalError: Could not compare scopes. This is an error inside Mongosh. Please file a bug report. Please include a log file from this session. at /Users/sergey.petushkov/.vscode/extensions/mongodb.mongodb-vscode-0.4.0/dist/languageServerWorker.js:154130:27 at Array.forEach (<anonymous>) at /Users/sergey.petushkov/.vscode/extensions/mongodb.mongodb-vscode-0.4.0/dist/languageServerWorker.js:154128:24 at Array.forEach (<anonymous>) at SymbolTable.compareSymbolTables (/Users/sergey.petushkov/.vscode/extensions/mongodb.mongodb-vscode-0.4.0/dist/languageServerWorker.js:154126:25) at Object.enter (/Users/sergey.petushkov/.vscode/extensions/mongodb.mongodb-vscode-0.4.0/dist/languageServerWorker.js:123123:27) at NodePath._call (/Users/sergey.petushkov/.vscode/extensions/mongodb.mongodb-vscode-0.4.0/dist/languageServerWorker.js:141105:20) at NodePath.call (/Users/sergey.petushkov/.vscode/extensions/mongodb.mongodb-vscode-0.4.0/dist/languageServerWorker.js:141092:17) at NodePath.visit (/Users/sergey.petushkov/.vscode/extensions/mongodb.mongodb-vscode-0.4.0/dist/languageServerWorker.js:141142:31) at TraversalContext.visitQueue (/Users/sergey.petushkov/.vscode/extensions/mongodb.mongodb-vscode-0.4.0/dist/languageServerWorker.js:123393:16)
Additional Notes
Even though error seems to be originated somewhere in mongosh, pasting this code snippet to cli directly doesn't result in an error