-
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
Jedi features fail across notebook cells #24347
Comments
Also note that as in #23897, this issue is not present in older extension versions: jupyter v2023.9.100, python v2024.2.1 |
This has not changed for a while in the python extension. Moving this to Jupyter for further investigation. |
@DonJayamanne curious for your thoughts on how this relates to the recent "middleware addon component" change - perhaps unrelated, but that issue was covering up this one? As before though, this actually affects all non-Pylance LS features in the notebook context, and would be great to have fixed. |
@karthiknadig this is LSP related, not Jupyter, given jupyter doesn't own LSP for Jedi, moving back to Python extension. We already had some other issues in the past in this same space, #23898 @tmchartrand
What changes are those? |
@DonJayamanne This might be a limitation of Created a feature request on |
Weird, I thought this did work in the past with Jedi LSP. |
I can confirm, this is a regression, I can verify that it worked with the older versions
See here #23897 |
Is it possible some code was removed that was actually crucial for Jedi LSP, e.g. some of the middle ware or the like. |
Sounds like you made the connection, but "middleware addon component" was referring to the PR resolving the previous issue, #23898 |
@DonJayamanne I tried versions all the way back to This is what I was trying to mention, previously we used to concatenate cells into a virtual document. I think this got removed because LSP now fully supports notebooks. Was the concatenator in Jupyter or in Python extension. I can't seem to find it. |
@karthiknadig Yes, I believe this was in Jupyter extension. Will try to whip up an extension for this and see where we can go from there. |
Type: Bug
Behaviour
When using the Jedi language server, all LS features work properly in a single cell, but don't recognize variables defined in one cell and used in another. Go to def gives a "no definition found" and hover previews are not available (autocomplete does still work).
It seems to me that the fix for #23897 worked partially but not completely - I think I missed this when I first tested that fix due to only testing features in a single cell initially.
Steps to reproduce:
import os
in the first cell and typeos
in the second cell.os
in the first cell and not the second.import os
additionally to the second cell - features work there again.Diagnostic data
Nothing seen in the logs, but I'm not sure how to change the Python extension logging level
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)2024-10-25 13:17:37.279 [info] Starting Jedi language server for aind-data-schema.
2024-10-25 13:27:56.724 [info] > . ./.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2024.16.1-linux-x64/python_files/printEnvVariables.py
2024-10-25 13:27:56.724 [info] shell: bash
Extension version: 2024.16.1
VS Code version: Code 1.94.2 (384ff7382de624fb94dbaf6da11977bba1ecd427, 2024-10-09T16:08:44.566Z)
OS version: Linux x64 5.14.0-427.31.1.el9_4.x86_64
Modes:
python.languageServer
setting: JediUser Settings
Installed Extensions
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: