Uploaded image for project: 'VS Code Extension'
  1. VS Code Extension
  2. VSCODE-230

Running playground results in an error

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Cannot Reproduce
    • None
    • No version
    • Playgrounds
    • None
    • Not Needed

    Description

      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

      Attachments

        Activity

          People

            sergey.petushkov@mongodb.com Sergey Petushkov
            sergey.petushkov@mongodb.com Sergey Petushkov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: