mongodb-js / vscode

Connect to MongoDB and Atlas and directly from your VS Code environment, navigate your databases and collections, inspect your schema and use playgrounds to prototype queries and aggregations.
https://marketplace.visualstudio.com/items?itemName=mongodb.mongodb-vscode
Apache License 2.0
326 stars 58 forks source link

Bug Report: Not able to connect to the local MongoDB #229

Closed yashrahurikar23 closed 3 years ago

yashrahurikar23 commented 3 years ago

Bug Report

Current Behavior

When I try to connect to the local MongoDB it just keeps connecting..

Code/Gist

Expected Behavior/Code

Ideally it should show me the collections in my local Mongo

Environment

Possible Solution

Additional Context/Screenshots

Anemy commented 3 years ago

Hi @yashrahurikar23 a few questions to help us debug this - how are you connecting? With connection string or connection form? Is it a standalone instance or a replica set? Can you connect to this local instance with shell?

yashrahurikar23 commented 3 years ago

Hi @Anemy Thank you for replying I am connecting via the form It is a standalone instance Yes I can connect to the instance with shell

I also wanted to ask if this might be because of some user permission issues with VS Code?, as I am trying all this on Linux

addaleax commented 3 years ago

I’m also Ubuntu 20.04, and I can connect to localhost. Which versions of vscode and the extension are you using? How did you install them?

yashrahurikar23 commented 3 years ago

I am using VS code version 1.46.0 Mongo DB for VS code version 0.2.0

yashrahurikar23 commented 3 years ago

With the new update for the extension, I am able to connect to the local Mongo