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

Variable references are lost. #14073

Closed
1 of 2 tasks
kike1985 opened this issue Aug 7, 2023 · 10 comments
Closed
1 of 2 tasks

Variable references are lost. #14073

kike1985 opened this issue Aug 7, 2023 · 10 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster

Comments

@kike1985
Copy link

kike1985 commented Aug 7, 2023

Applies To

  • Notebooks (.ipynb files)
  • Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?

Variable references are lost when cells are deleted in an ipynb (jupyter notebook) file. When the notebook is very large, the references are also lost as the coding develops.

VS Code Version

Last

Jupyter Extension Version

Last

Jupyter logs

No response

Coding Language and Runtime Version

No response

Language Extension Version (if applicable)

No response

Anaconda Version (if applicable)

Last

Running Jupyter locally or remotely?

Local

@kike1985 kike1985 added the bug Issue identified by VS Code Team member as probable bug label Aug 7, 2023
@amunger
Copy link
Contributor

amunger commented Aug 7, 2023

I can't seem to repro this. Where are the references not showing that you would expect? Can you provide the specific repro steps to trigger this issue? Do you have something set for python.languageServer?

@amunger amunger added the info-needed Issue requires more information from poster label Aug 7, 2023
@kike1985
Copy link
Author

kike1985 commented Aug 8, 2023 via email

@kike1985
Copy link
Author

kike1985 commented Aug 8, 2023 via email

@amunger
Copy link
Contributor

amunger commented Aug 8, 2023

I'm still not seeing it. Did you have something set for the language server before changing it to 'Microsoft', or does it repro when you use the default?

@kike1985
Copy link
Author

kike1985 commented Aug 9, 2023 via email

@amunger
Copy link
Contributor

amunger commented Aug 9, 2023

if you don't set it, it will use Pylance, which is what works for me. I'm guessing that's what you had when experiencing the issue?

Valid values: "Default", "Jedi", "Pylance", "None".
if set to None, variables won't be highlighted at all.

@kike1985
Copy link
Author

kike1985 commented Aug 10, 2023 via email

@Omid157
Copy link

Omid157 commented Aug 30, 2023

hi

I am having the exact same problem here.
I use python (Jupyter notebook) in VSCode . (everything is updated to the last versions)

I don't know why or how it happens,
but many many times i have seen that variables lose reference and become white during my coding (my theme is "dark modern").

I don't know the exact time, but i guess this issue has started a couple of weeks now, maybe after the few last updates, and maybe the problem is with the intellisense (maybe Pylance ?)

Whatever the reason maybe, it is absolutely annoying, I have to close the entire vs code and reopen it in order for the VSCode to identify the variables.

Please,
if you found a fix for it let us know,
or you if are part of the developing team of the VSCode , do something about it

Thank you

@amunger
Copy link
Contributor

amunger commented Aug 30, 2023

Most likely caused by microsoft/pylance-release#4742 (comment) which sounds like it will be fixed soon

@amunger
Copy link
Contributor

amunger commented Aug 30, 2023

or rather microsoft/pylance-release#4685

@amunger amunger closed this as not planned Won't fix, can't repro, duplicate, stale Dec 6, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2024
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 info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants