Skip to content
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

[Endgame testing] Stepping into a built-in python function also leads to a random temp file being opened #6442

Closed
Tracked by #1652
lramos15 opened this issue Jun 30, 2021 · 6 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug notebook-run-by-line verified Verification succeeded

Comments

@lramos15
Copy link
Member

Testing microsoft/vscode#127362

  1. Debug a jupyter notebook
  2. Attempt to step into something like a for loop
  3. 🐛 A tmp file such as Could not load source '/tmp/ipykernel_152730/2944423233.py': source unavailable. is opened
@roblourens
Copy link
Member

Can you paste the code?

@lramos15
Copy link
Member Author

Yeah sure, here's my super advanced power function

def power(number, power):
    total = 1
    for _ in range(power):
        total = total * number
    return total

If you execute a step in on the for _ in range(power): line you will get a random temp file opened

@DavidKutu DavidKutu assigned DavidKutu and unassigned rchiodo Jun 30, 2021
@DavidKutu DavidKutu changed the title Stepping into a built-in python function also leads to a random temp file being opened [Endgame testing] Stepping into a built-in python function also leads to a random temp file being opened Jun 30, 2021
@DavidKutu
Copy link

TODO: maybe we don't allow stepping in on python code?

@roblourens
Copy link
Member

roblourens commented Jul 1, 2021

If I debug this code as a normal python file and step in on that line, it doesn't step in to range. You might want to look at the python extension to see whether they have special handling for that?

@rchiodo
Copy link
Contributor

rchiodo commented Jul 1, 2021

JustMyCode should handle this. You guys have to set this during the attach if you want it to work the same.

@greazer greazer added the bug Issue identified by VS Code Team member as probable bug label Jul 8, 2021
@DavidKutu DavidKutu added this to the September 2021 milestone Aug 31, 2021
@DavidKutu
Copy link

this is fixed

@lramos15 lramos15 added the verified Verification succeeded label Sep 29, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug notebook-run-by-line verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

5 participants