New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run and debug not running after update Python and Pylance extensions #19427
Comments
I am experiencing the same problem. In my case, things seem to fail quickly as I don't see much in the python output:
|
The debug adapter was updated in the latest release to debupy=1.6.2. Adding @int19h for investigation. |
Python 3.6 is not supported for debugging. This has been true since debugpy 1.6.0, but depending on the code path taken, it might not hit any code that actually used Python 3.7+ features. Since 1.6.1, however, there's an explicit check on import to make it clearer what's going on: I was assuming that any such stderr output from the debug adapter would be displayed by the client. But if not, I guess there needs to be yet another check on VSCode side. |
Just got this same issue today, got terribly confused because I was switching between two different Python interpreters (3.10 and 3.6) and the 3.6 one just wouldn't start. The big issue here seems to be the lack of feedback -- the integrated terminal would open and then there would just be no response, no error message or even a printout of a command-line. |
me, too -- I'm also using python 3.6.8 -- I need to upgrade one app at a time FWIW, the Python extension prerelease v2022.11.11891004 seems to work |
me too +10086 |
#18453 |
Same issue. Solved with this ☝️ |
Solved the issue on both Centos 7 and Windows 10 |
Python 3.6 is not supported for debugging, since Python 3.6 has been out of service for about 6 months. Please pin the extension to version 2022.8.* is you need to work with python 3.6 |
Thanks for the info, @karthiknadig. Is there an action item to improve the diagnostic information should something like this happen again in the future? Looks like this is something that has happened before and folks have commented in the various threads that they have spent multiple hours trying to figure out what might be happening when things seem to silently fail. I know that some sort of message would have saved me an hour or so this time around. Thanks much! |
Behaviour
Expected vs. Actual
Today the Pylance and Python extensions have been updated to versions 2022.7.20 and 2022.10.0 respectively, and my setup for running and debugging my code has stopped working.
If I go back to the previous versions 2022.06.30 and 2022.8.1 everything works correctly again.
I have tried different combinations and using Jedi instead of Pylance, and it seems that the error is in version 2022.10.0 of the Python extension.
Steps to reproduce:
Diagnostic data
python.languageServer
setting: PylanceOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)User Settings
The text was updated successfully, but these errors were encountered: