-
Notifications
You must be signed in to change notification settings - Fork 91
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
Using pyfakefs breaks vscode's debugger #1083
Comments
This may only be an issue if |
Yeah, |
@Aran-Fey - can you confirm that this only happens with |
Actually, nope. A duplicate tab is opened regardless of the |
Ok, thanks. I'm not using VSCode (I use PyCharm), so it may take a while to understand this. Do you have a way to reproduce this with some minimal example? |
This seems to do it: import typing
def test_demo(fs):
typing.get_type_hints(int)
|
Thanks, I will give it a try! |
You are working with the current pyfakefs version (5.7.1), right? |
Ah, and which Python version are you using? |
Correction: Only the duplicate tab issue goes away. Having some trouble reproducing the breakpoint issue. If I replace I'm using pyfakefs 5.7.1 and cpython 3.10.13. |
So far, I have not been able to get sensible behavior even in tests without pyfakefs - I guess I have to better understand the workflow in VSCode first... Will have another go over the weekend. |
Ok, I persuaded VSCode to work for me, and I can reproduce the duplicate tab behavior now (not the ignored breakpoint so far). At the moment, I have no idea where to even look, so no promises... |
Using pyfakefs leads to a variety of issues with vscode's debugger, like breakpoints not working and duplicate file tabs being opened. I made a bug report here, but the folks at debugpy have decided it's not their responsibility to fix it. Can you guys take care of it?
The text was updated successfully, but these errors were encountered: