-
Notifications
You must be signed in to change notification settings - Fork 765
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
Pylance hints not working in Jupyter Notebook in Remote Tunnel #5071
Comments
What crash are you seeing on 2023.10.53? The issue you're describing above seems to be a dupe of #5037 which is fixed in 2023.10.53, so I think we need to investigate the issue you're seeing on that version instead. |
Hi, thanks for pointing on the similar issue. Here is my Note that there's still |
@rchiodo, this looks like a repro of #5037 on 2023.10.53.
|
I think we're going to need more logging information then. Not sure how this would happen in 2023.10.53. |
Sure, what kind of logs do you need? |
This would probably help: "python.trace.server": "verbose" That makes VS code log all of the messages it sends to us and what our response is. I can then see why we wouldn't know about the notebook URI. Our latest may fix this though (which should come out sometime today). We stopped interpreting notebook cell URIs and just keep them around. |
Can confirm, error is still not (fully) fixed in v2023.11.11. Last working version for me is v2023.10.40. Info about environmentPylance v2023.11.11 We run an Azure Databricks "Remote Edit" Tool called "Databricks Power Tools", and I still get no "syntax-highlighting or Intelli-Sense" for Python Notebooks with v2023.11.11. Logs
Side noteThe Path Maybe this is the reason? WorkaroundDowngrade to v2023.10.40. Works fine with Databricks! Bug IntroductionI did a small "git bisect" and found the error to be introduced in v2023.10.41. Hope this helps :) |
@chrizonix can you turn this setting on, reproduce the problem, and upload the output of the 'Python Language Server' tab again? "python.trace.server": "verbose" That should output of the contents of the 'notebookDocument/didOpen' message. It's what we use to find the 'path' to the notebook from a cell. |
Hi @rchiodo, Thanks for looking into this issue! This was a wild ride, but I was able to reproduce the issue. Good news first, error does not occur on v2023.11.10. Steps to reproduce (for v2023.11.11)
Full logs here github.com/chrizonix/pylance-test/pylance-log-v2023.11.11.txt.zip |
Thanks that helps. It looks like a document close event is happening after the notebook change event that indicates the cell was removed. We were removing the cell from the map during the notebook change event, but we need to keep it around. |
Repro steps for me:
|
This issue has been fixed in prerelease version 2023.11.12, which we've just released. You can find the changelog here: CHANGELOG.md |
I found this bug again. just wait for a moment, don't do nothing . The cell will be crashed,and can't interrupt |
can you open a new issue instead of using old one? by the way, make sure you use latest versino of python extension with pylance 2024.7.104. |
I am using VSCode with Remote Tunnel extension to run my code on a cluster node. Current version of Pylance seem to be not working in Jupyter Notebook in this settings. Specifically, I get the following errors when trying to get Pylance hint hovering on a code item in Jupyter Notebook cell:
Switching to pre-release version of Pylance doesn't solve this issue as in this case the Pylance server crashes.
Environment data
The text was updated successfully, but these errors were encountered: