-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 is incorrectly imported in debugger #9593
Comments
@chenly23 Can you share the debugger command line that it puts in the terminal? |
Sorry, the steps to reproduce may be error, since the
@karthiknadig then the debugger command line and outputs:
and the
|
@chenly23 This may be an artifact of how we launch the debugger. There is a work around that you can try for now. workaround:
This will force the extension to use a newer version of the debugger, that starts is a slightly different way. This method does not add the |
Proposed solution:We should rename our python files to have some sort of prefix that keeps it distinct from something that user might have. Another solution could be to smartly remove the |
@karthiknadig Thanks for the workaround, I will try the insiders version later. |
Closing in favour of #4609. |
Environment data
Expected behaviour
Import the modules from my own files
Actual behaviour
Import the modules from files in vscode-python pythonFiles.
Steps to reproduce:
test.py
) with the code:completion.py
test.py
withPython: Current File (Integrated Terminal)
Get the output:
test.py
in terminalGet the output:
As @brettcannon pointed out that the directory of
pythonFiles
gets put on thesys.path
to load the debugger, so the modules clash with the user's files.The text was updated successfully, but these errors were encountered: