Skip to content

PowerShell kernel defaults to v5 #25833

Open

Description

  • Azure Data Studio Version: 1.49.0 (user setup)
    Commit: 6e6d22d
    Date: 2024-08-01T05:19:02.202Z
    VS Code: 1.82.0
    Electron: 25.9.8
    Chromium: 114.0.5735.289
    Node.js: 18.15.0
    V8: 11.4.183.29-electron.0
    OS: Windows_NT x64 10.0.22631

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:
#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?
9d76aaa

PR:

image
9d76aaa

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions