<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Errors using Databricks Extension for VS Code on Windows in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/errors-using-databricks-extension-for-vs-code-on-windows/m-p/91592#M38214</link>
    <description>&lt;P&gt;Hi - I am trying to get my VS Code (running on Windows) to work with the Databricks extension for VS Code.&amp;nbsp; It seems like I can almost get this to work.&amp;nbsp; Here is my setup:&lt;/P&gt;&lt;P&gt;1. Using Databricks Extension v2.4.0&lt;BR /&gt;2. Connecting to Databricks cluster with runtime 15.4 LTS ML (Python 3.11)&lt;BR /&gt;3. On Windows VS Code, using a virtual environment with Python 3.11.9&lt;BR /&gt;4. Using VS Code 1.93.1&lt;BR /&gt;5. As part of the Databricks Extension install in VS Code, Databricks Connect 13.3.2 was installed&lt;/P&gt;&lt;P&gt;What works:&lt;/P&gt;&lt;P&gt;1. Connect to cluster is OK&lt;BR /&gt;2. Creation of ".bundle/..." workspace folder for temp work is created.&lt;BR /&gt;3. Python environment and Databricks Connect seem to have no errors in VS Code&lt;BR /&gt;4. Using the "Databricks" icon in VS Code, I am able to "Run current file with Databricks Connect", I seem to be able to run my code!&amp;nbsp; This would be great, except...&lt;/P&gt;&lt;P&gt;What doesn't work:&lt;/P&gt;&lt;P&gt;1. I don't see an easy way to verify that the code actually ran on my Databricks cluster&lt;BR /&gt;2. Local environment variables for VS Code are used instead of the environment variables set up for the cluster.&amp;nbsp; This is a big issue.&amp;nbsp; I specifically want to use the environment variables I have set up for the cluster (that use secret scopes)...I want to get away from local environment variables with VS Code&lt;BR /&gt;3. Running "databricks-connect test" from the command line in the virtual environment on the Windows machine fails with this error message:&amp;nbsp;&amp;nbsp;\Lib\site-packages\pyspark\sql\session.py", line 488, in getOrCreate raise RuntimeError(RuntimeError: Only remote Spark sessions using Databricks Connect are supported. Could not find connection parameters to start a Spark remote session.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;3.1. I am not sure if that even matters, as with the Databricks Extension for VS Code I guess that Databricks Connect is built into the extension, and doesn't need to run from the command line, yet I wouldn't expect this error.&lt;BR /&gt;5. Finally, most seriously, when I try to hit "sync" to sync the workspace folder on Databricks ".../.bundle/...." with the local repo folder... the files sync, but I get a "Building..." message that continues forever.&lt;BR /&gt;5.1. It looks like the sync completes (by the way, the above is like the 2nd time I ran it, the first time showed all the files synching)...but the "Build..." goes on forever and never stops.&lt;/P&gt;&lt;P&gt;This would be a really great thing for our department if I can get this to work.&amp;nbsp; I want to get rid of anyone using local environment variables, and control everything through Databricks secret scopes referenced through cluster environment variables.&amp;nbsp; It seems like I am close.&lt;/P&gt;&lt;P&gt;Can anyone help?&amp;nbsp; Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 24 Sep 2024 15:23:33 GMT</pubDate>
    <dc:creator>m997al</dc:creator>
    <dc:date>2024-09-24T15:23:33Z</dc:date>
    <item>
      <title>Errors using Databricks Extension for VS Code on Windows</title>
      <link>https://community.databricks.com/t5/data-engineering/errors-using-databricks-extension-for-vs-code-on-windows/m-p/91592#M38214</link>
      <description>&lt;P&gt;Hi - I am trying to get my VS Code (running on Windows) to work with the Databricks extension for VS Code.&amp;nbsp; It seems like I can almost get this to work.&amp;nbsp; Here is my setup:&lt;/P&gt;&lt;P&gt;1. Using Databricks Extension v2.4.0&lt;BR /&gt;2. Connecting to Databricks cluster with runtime 15.4 LTS ML (Python 3.11)&lt;BR /&gt;3. On Windows VS Code, using a virtual environment with Python 3.11.9&lt;BR /&gt;4. Using VS Code 1.93.1&lt;BR /&gt;5. As part of the Databricks Extension install in VS Code, Databricks Connect 13.3.2 was installed&lt;/P&gt;&lt;P&gt;What works:&lt;/P&gt;&lt;P&gt;1. Connect to cluster is OK&lt;BR /&gt;2. Creation of ".bundle/..." workspace folder for temp work is created.&lt;BR /&gt;3. Python environment and Databricks Connect seem to have no errors in VS Code&lt;BR /&gt;4. Using the "Databricks" icon in VS Code, I am able to "Run current file with Databricks Connect", I seem to be able to run my code!&amp;nbsp; This would be great, except...&lt;/P&gt;&lt;P&gt;What doesn't work:&lt;/P&gt;&lt;P&gt;1. I don't see an easy way to verify that the code actually ran on my Databricks cluster&lt;BR /&gt;2. Local environment variables for VS Code are used instead of the environment variables set up for the cluster.&amp;nbsp; This is a big issue.&amp;nbsp; I specifically want to use the environment variables I have set up for the cluster (that use secret scopes)...I want to get away from local environment variables with VS Code&lt;BR /&gt;3. Running "databricks-connect test" from the command line in the virtual environment on the Windows machine fails with this error message:&amp;nbsp;&amp;nbsp;\Lib\site-packages\pyspark\sql\session.py", line 488, in getOrCreate raise RuntimeError(RuntimeError: Only remote Spark sessions using Databricks Connect are supported. Could not find connection parameters to start a Spark remote session.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;3.1. I am not sure if that even matters, as with the Databricks Extension for VS Code I guess that Databricks Connect is built into the extension, and doesn't need to run from the command line, yet I wouldn't expect this error.&lt;BR /&gt;5. Finally, most seriously, when I try to hit "sync" to sync the workspace folder on Databricks ".../.bundle/...." with the local repo folder... the files sync, but I get a "Building..." message that continues forever.&lt;BR /&gt;5.1. It looks like the sync completes (by the way, the above is like the 2nd time I ran it, the first time showed all the files synching)...but the "Build..." goes on forever and never stops.&lt;/P&gt;&lt;P&gt;This would be a really great thing for our department if I can get this to work.&amp;nbsp; I want to get rid of anyone using local environment variables, and control everything through Databricks secret scopes referenced through cluster environment variables.&amp;nbsp; It seems like I am close.&lt;/P&gt;&lt;P&gt;Can anyone help?&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 15:23:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/errors-using-databricks-extension-for-vs-code-on-windows/m-p/91592#M38214</guid>
      <dc:creator>m997al</dc:creator>
      <dc:date>2024-09-24T15:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Errors using Databricks Extension for VS Code on Windows</title>
      <link>https://community.databricks.com/t5/data-engineering/errors-using-databricks-extension-for-vs-code-on-windows/m-p/92351#M38413</link>
      <description>&lt;P&gt;So I found my problem(s).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I had a local environment variable called "DATABRICKS_HOST" that was set to the wrong URL.&lt;/LI&gt;&lt;LI&gt;My Databricks runtime version and the databricks-connect version were not the same.&amp;nbsp; When I made them both 15.4.x, everything works as expected.&lt;/LI&gt;&lt;LI&gt;Using the "Upload and Run File" option of the Databricks extension was exactly what I needed - it uses the environment variables present on the connected Databricks cluster itself (connected to Databricks secret scopes).&amp;nbsp; So that issue was solved as well.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;There is still some question around the "sync" that seems to go on forever in VS Code until you cancel the "sync" task in VS Code, but this is not a show-stopper.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 18:14:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/errors-using-databricks-extension-for-vs-code-on-windows/m-p/92351#M38413</guid>
      <dc:creator>m997al</dc:creator>
      <dc:date>2024-09-30T18:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Errors using Databricks Extension for VS Code on Windows</title>
      <link>https://community.databricks.com/t5/data-engineering/errors-using-databricks-extension-for-vs-code-on-windows/m-p/139041#M51073</link>
      <description>&lt;P&gt;Were you able to use your local venv to run the script? I am trying to run a simple script on a cluster using a local env but is not working&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 09:52:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/errors-using-databricks-extension-for-vs-code-on-windows/m-p/139041#M51073</guid>
      <dc:creator>Elm8r</dc:creator>
      <dc:date>2025-11-14T09:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Errors using Databricks Extension for VS Code on Windows</title>
      <link>https://community.databricks.com/t5/data-engineering/errors-using-databricks-extension-for-vs-code-on-windows/m-p/139056#M51081</link>
      <description>&lt;P&gt;I guess it will be very likely you are already using it but if not, I would suggest to use GIT folders directly in Databricks in conjunction with VS Code as you are doing now. There will be times in which is much faster/straightforward to run notebooks directly in databricks UI that you can synchronize later in VS Code. At least, this is my personal experience, obviously&amp;nbsp;completely subjective&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 10:52:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/errors-using-databricks-extension-for-vs-code-on-windows/m-p/139056#M51081</guid>
      <dc:creator>Coffee77</dc:creator>
      <dc:date>2025-11-14T10:52:43Z</dc:date>
    </item>
  </channel>
</rss>

