microsoft / azuredatastudio

Azure Data Studio is a data management and development tool with connectivity to popular cloud and on-premises databases. Azure Data Studio supports Windows, macOS, and Linux, with immediate capability to connect to Azure SQL and SQL Server. Browse the extension library for more database support options including MySQL, PostgreSQL, and MongoDB.
https://learn.microsoft.com/sql/azure-data-studio
MIT License
7.58k stars 906 forks source link

PowerShell kernel defaults to v5 #25833

Open v2kiran opened 3 months ago

v2kiran commented 3 months ago

Steps to Reproduce:

  1. Install powershell kernel and point to pwsh with the following command
  2. python -m powershell_kernel.install --powershell-command pwsh
  3. create a powershell notebook and verify that the $psversiontable shows v7
  4. close and re-open azure data studio
  5. as soon as i open the powershell notebook it asks me to configure python
  6. as part of the configuration it installs the powershell kernel again
  7. check the powershell version inside the notebook and its now back to v5

image

image

Would like to know why azure data studio is prompting me to configure python on each launch of the app. same issue as this person: https://github.com/microsoft/azuredatastudio/issues/13215

but it seems the issue then was resolved by using current or existing python but hasnt resolved it for me. I have selected "current python" in the settings. image

Seems that this was fixed in a PR some time agio but has got overwritten by a more recent merge? https://github.com/microsoft/azuredatastudio/pull/7552/commits/9d76aaae5b54c3fb929a95843158c8dbd5f9ea48

PR:

image https://github.com/microsoft/azuredatastudio/pull/7552/commits/9d76aaae5b54c3fb929a95843158c8dbd5f9ea48

Current file in the repo:

image https://github.com/microsoft/azuredatastudio/blob/main/extensions/notebook/kernels/powershell/kernel.json

Does this issue occur when all extensions are disabled?: Yes

kburtram commented 2 months ago

The PR associated with this issue has been merged, so closing as "Resolved". Please let us know if there's anything else needed for this.

v2kiran commented 2 months ago

@kburtram - i still have the issue where everytime i open azure data studio it goes through the process of configuring hte python for powershell kernel and installs the libs needed. this is pretty annoying as it does it every single time.

kburtram commented 2 months ago

@v2kiran thanks for the additional context. I'll keep this open to track the issue with the kernel configuration.