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

Playground run "MONGOSH execute all error: extensionPath is undefined"

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.0
    • Affects Version/s: None
    • Component/s: None
    • Environment:
      VSCode 1.75.1 on MacOS 10.13.6, MongoDB for VS Code v0.10.0
      Remote VPS with MongoDB 3.6.7 inside a Docker container
    • Not Needed

      Problem Statement/Rationale

      Running a playground has no effect.
      Error in the "MongoDB Language Server" output reads:
      MONGOSH execute all error: extensionPath is undefined

      Browsing collections of the same database in the "Connections" panel on the left works fine.

      Right-click on the connection, Launch MongoDB Shell launches a functional session.

      The only thing that fails is the Playground Run.

      Single log line:
      [Error - 17:52:24] MONGOSH execute all error: extensionPath is undefined
       Steps to Reproduce
      Under Mac OS not the newest version, no local MongoDB / mongosh installed,launch VSCode, install MongoDB extension v.0.10.0, connect to a remote MongoDB server. Make sure connection works, collections and documents can be browsed.

      Create a simplest playground with statements like

       

      use('myDatabaseName');
      const result = db.CollectionName.find({});
      console.log('result', result);
      

      Click the black triangle button on the upper right.

      Expected Results

      A popup window with resuls, or any meaningful output in the Output panel.

      Actual Results

      Nothing happens except a single error line in the Output - "MongoDB Language Server".

      Additional Notes

      Same behavior observed both:

      • running VSCode new blank WorkSpace
      • "Remote SSH" workspace, connected to the VPS that exposes the MongoDB  Docker container port.

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            hello@sergeisokolov.com Sergei Sokolov
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: