cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Issue with Visual Studio Code Databricks extension

Mihai_Cog
Contributor

Hello,

I successfully installed the extension and connected it to my databricks account. But when I try to select the repo (which already exists under repos in my databricks repo account) for syncing , I don't see it.

I use Azure Devops (Git repo) as source control and I successfully connected databricks to the git repo.

 

Thank you.

6 REPLIES 6

Kaniz_Fatma
Community Manager
Community Manager

Hi @Mihai_Cog , 

Based on the given information, it seems that the user has successfully installed the Databricks extension and connected it to their Databricks account.
 
However, when they try to select a repo for syncing, they are unable to see it.
 
To resolve this issue, the user needs to follow these steps:
 
1. Make sure that the repo exists in the Databricks repo account. If it does not exist, the user needs to create it before syncing.
2. Open Visual Studio Code and navigate to the Databricks extension.
3. Click on the Databricks icon in the sidebar to open the extension.
4. In the Command Palette, search for the repo's name using the "Databricks: Sync Workspace" command.
5. Select the repository's name from the list that appears.
6. The extension will add the repo's workspace path to the code project's .databricks/project.json file.
 
By following these steps, the user should be able to select the repo for syncing in the Databricks extension.
 

Hello @Kaniz_Fatma and thank you for the answer.

From the 4. step I cannot follow what you said.

When I am doing point 4., I am writing "Databricks: Sync Workspace", but seems hat doesn't exist this.

So, after I am opening Command Palette, I use "Preferences: Open User Settings" and there I find Extensions and inside I see Databricks.

After that I am looking for Destination Type:

Screenshot 2023-09-15 at 18.14.41.pngScreenshot 2023-09-15 at 18.14.56.png

As you can see there, I modified from Workspace to Repo, I see nothing. I am going in the left side after I have added repo in the settings and still not seeing the Repo I already have created on Azure DevOps and cloned in Databricks Repo.

When I have in Settings changed from Workspace to Repo, and I am going in the left side of VSCode and preaa Databricks Icon, choose Sync Destination, I press Config Sync Destination and I see only:

Create new sync destination under /Repos/User/, but not displaying my Repo that is already in Databricks Repo.

And if I try to create the repo with the same name(RepoName my Repo that is already created in Databricks Repo) from "Create new sync destination", is creating a folder in Databricks repo with "RepoName.ide" in the end. 

Ok, I agree that can be a conflict because I have already the same RepoName created, but how I can get the already created RepoName, the one that exists and was cloned from Azure DevOps.

What I need is to have is the repo name from Azure DevOps.

Thank you.

matt7salomon
New Contributor II

Hello, I cant get the vs code connection to run interactive cells with my databricks cluster. Eevrytime I have to push the whole notebook to the cluster as a job. I cant see the databricks kernels in vs code to select from them. Tried updating but didnt help

saadansari-db
New Contributor III

Hi Matt, do you have Databricks Connect enabled? that should let you run cell by cell interactively on VS Code

saadansaridb_0-1726734622713.png

 

yes. I do. I clicked on the red line and now it says enabled. However, sometimes vscode says building after i reinstall databricks connect and doesnt stop building.

saadansari-db
New Contributor III

I think the building spinner can be confusing - we are looking at improving that experience. 

Did the cell-by-cell execution work for you now?

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group