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

Notebook debugger could not load source #7555

Closed
Tracked by #1652
jingw222 opened this issue Sep 16, 2021 · 10 comments
Closed
Tracked by #1652

Notebook debugger could not load source #7555

jingw222 opened this issue Sep 16, 2021 · 10 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug notebook-debugging verified Verification succeeded

Comments

@jingw222
Copy link

Environment data

  • Language Server version: 2021.9.1
  • OS and version: both Windows 10 and MacOS 14
  • Python version (& distribution if applicable, e.g. Anaconda): 3.9.5

Expected behaviour

Debugger step into inner function/method body

Actual behaviour

When I click step into it throws me a tmp py file which says

Could not load source XXX: source unavailable.

image

Logs

Not relevant 

Code Snippet / Additional information

# Screenshot above
@jakebailey
Copy link
Member

Pylance doesn't play a role in notebook debugging. Transferring.

@jakebailey jakebailey transferred this issue from microsoft/pylance-release Sep 16, 2021
@jingw222
Copy link
Author

Anybody looking into the cause of the issue? I've been wanting to migrate all my notebook workflow into VSCode since last couple of weeks. But my latest experiences of it hold me back, as you might tell from the various issues I submitted lately, and I have a few other frustrations that I encountered with VSCode but not JupyterLab. Maybe it's still in experimenting phase and not prime for daily usage at the moment

@DonJayamanne
Copy link
Contributor

Assigning to @DavidKutu
@roblourens Not sure if we've addressed this scneario

@DonJayamanne DonJayamanne added bug Issue identified by VS Code Team member as probable bug notebook-run-by-line and removed notebook-run-by-line notebook-debugging needs-triage labels Sep 16, 2021
@DavidKutu
Copy link

Thanks for the issue @jingw222. The code snippet is very helpful.

@roblourens
Copy link
Member

Note that the debugging feature specifically is considered experimental. You either set the experimental setting or are using Insiders (where we just enabled this without the experimental setting to get more coverage).

@DavidKutu
Copy link

@jingw222, this will be fixed on tomorrow's insiders and on our next release.

@jingw222
Copy link
Author

Hey @DavidKutu, thanks for your awesome work, but it's interesting I'm still getting the same result as before though

Version: 1.61.0-insider (user setup)
Commit: 1b9403cd461c9c975bcb9e48d84ba9e4ea86559e
Date: 2021-09-21T09:01:24.526Z
Electron: 13.4.0
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.17134

@roblourens
Copy link
Member

This works for me. Could you try this?

  • Set "jupyter.logging.level": "verbose"
  • Try your case again
  • Share the log from the Jupyter output channel

@jingw222
Copy link
Author

Upgraded the Python extension to the latest in dev channel, it's working as expected now. I'll let you know if anything pops up while testing more cases.

@roblourens
Copy link
Member

Please do, thanks for trying it

@DonJayamanne DonJayamanne 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-debugging verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

6 participants