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

Intellisense forgets imports during editing #7017

Closed
niwax opened this issue May 25, 2022 · 2 comments
Closed

Intellisense forgets imports during editing #7017

niwax opened this issue May 25, 2022 · 2 comments
Labels

Comments

@niwax
Copy link

niwax commented May 25, 2022

Describe the bug
When a project is first opened, imports work as expected both from inside the same project as well as installed packages:
image

After an hour or two of work, they are marked as not resolved and other functionality like "Go to definition" is also broken. Only builtin packages are not impacted:
image

The behaviour extends to the entire solution, including opening and closing files. After restarting VS, everything works again.

Steps to Reproduce
Unfortunately, I haven't been able to find a consistent trigger for this behaviour. It happens regardless of whether the project has been run, whether a lot of files are edited or VS is simply sitting idle.

Configuration information (If you are providing a diagnostics file (see below), skip this section)
VS Version: 17.2.2
PTVS version: 17.0.22089.1
Python version: 3.8 and 3.9

@judej judej added the needs investigation Could be an issue - needs investigation label May 26, 2022
@StellaHuang95 StellaHuang95 added bug and removed needs investigation Could be an issue - needs investigation labels Jun 13, 2022
@niwax
Copy link
Author

niwax commented Jun 20, 2022

I just found out that this issue persist even through reloading the project, eg. after a Git pull. Only restarting Visual Studio fixes it temporarily.

Unfortunately, it has now also started happening as often as every five minutes.

@StellaHuang95
Copy link
Contributor

dupe of #7068

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants