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

When the language server worker runs out of memory it fails silently

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.10.0
    • Affects Version/s: None
    • Component/s: Playgrounds
    • None
    • 3
    • Not Needed
    • Iteration Lobster, Iteration Quahog

      When the worker encounters an error like the javascript runtime running out of memory, we currently fail silently and future runs of the playground also fail. In the language server logs it prints `extensionPath is not defined`. We should instead surface the error that occurred and make sure future playgrounds can still be run.

      Here's an example playground to reproduce:

      
      use('test');
      
      const docs = [];
      const amountOfDocsToCreate = 10000000;
      const currentTime = new Date();
      for(let i = 0; i < amountOfDocsToCreate; i++) {
        docs.push({
          a: currentTime,
          b: Math.ceil(Math.random() * 100)
        });
      }
      
      db.test10m.insertMany(docs);
      

            Assignee:
            rhys.howell@mongodb.com Rhys Howell
            Reporter:
            rhys.howell@mongodb.com Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: