-
Notifications
You must be signed in to change notification settings - Fork 133
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
Module with __file__=None is not supported #475
Comments
It seems to be a rather weird corner case - there's some module present in This is an easy fix - we should also check the type - but there may be other similar bugs in the debugger that are masked by this early failure. |
I got same problem VS Code version: 1.51.1 Run without debugging works, so the launch.json is fine, however debug is causing mentioned problem |
@int19h I suspect it may be an implementation detail or difference in python 3.8 compared to previous python versions as we have same issue and it only occurs with 3.8. From memory this particular part of debugpy is during loading pydevd extensions at start. We can run exact same debugpy / vscode / pydevd extensions and py3.7 and not have this error. |
I'll take a look into fixing this. |
Environment data
python.languageServer
setting:"python.languageServer": "Pylance",
[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (
python.languageServer: 'Microsoft'
), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]Expected behaviour
XXX
Actual behaviour
can't launch debug...
report
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)The text was updated successfully, but these errors were encountered: