1

I use VS Code with the Python extention regularly. Randomly this week when I try to enter debug mode via the usual approach, VS Code starts Powershell instead of the Windows Console like normal. This then fails. I've check and changed my default terminal setting, uninstalled and reinstalled the python extension, nothing is working. It's deeply frustrating!

The one potential thing I've done recently that might have impacted this is I used the remote extension to remote into several Azure VMs and work in linux there. The behavior may have started around that time (unsure) but I've scoured forums and the settings to no avail. Any idea what might cause this!?

T. Shaffner
  • 359
  • 1
  • 5
  • 22

1 Answers1

1

I've just met the same problem, also when trying to run a python file via terminal. Happened since the last VS-Code update (August 2021). My default terminal is bash but somehow PowerShell was opened. I even tried removing the built-in terminal profile for PowerShell but it didn't work.

What did work: Downgrading the VS-Code version to July 2021 (version 1.59).

Detailed explanation how to downgrade: https://newbedev.com/how-to-downgrade-vscode

eyalwn
  • 26
  • 4
  • Please add further details to expand on your answer, such as working code or documentation citations. – Community Sep 04 '21 at 22:34
  • 1
    Actually, I too have had this issue only since the most recent update. I've opened an issue with VSCode using what info I have at https://github.com/microsoft/vscode/issues/132390; if anyone else with this issue comes here feel free to add to it. – T. Shaffner Sep 05 '21 at 14:33
  • 1
    In theory the 1.60.1 recovery release should fix this – Bysander Sep 13 '21 at 16:17
  • 1
    @Bysander, took too long to come out, but it did fix it for me. – T. Shaffner Oct 01 '21 at 20:54