The extension fails to load properly if reg.exe is blocked in windows. #11838
Labels
area-environments
Features relating to handling interpreter environments
bug
Issue identified by VS Code Team member as probable bug
Environment data
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version #3977): falsepython.languageServer
setting: MicrosoftExpected behaviour
I think registry access is just required for listing the installed python environments.
If access to reg.exe is denied, the extension should fall back to maybe just getting the python.exe from the PATH variable instead of failing to load completely.
Actual behaviour
The extension fails to load. If I try to use any feature like the data science UI, I get the error "spawn EPERM".
Steps to reproduce:
Logs
This is happening in my work environment and I can't login to Github there. I can see in the console output that there is "spawn EPERM" error in getInterpretersFromRegistry.
Also, this wouldn't have been an issue if the winreg module in nodejs worked like winreg in python. Python uses the win32 api instead of spawning reg.exe subprocess, and that works even if reg.exe is blocked. So maybe switching from winreg to something else can also be considered?
The text was updated successfully, but these errors were encountered: