question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IntelliSense is not working on a large project on VS2019

See original GitHub issue

Hi.

I’ve got several Python projects of different sizes and different dependency sets. All of them were and still are getting handled well with the latest VS2015 and VS2017 PTVS versions. I had also tested them with VS2019 preview and everything seemed to work fine there too until as long as Preview Update 2.2. Then I took a pause in my experiments with VS2019 until this week when it was finally released. And it seems that something had changed during this time, so now there are major troubles with Python IntelliSense in there. I’ve tried the Community Edition today and IntelliSense just wouldn’t do anything there. Even though there are no significant warnings or errors, the class/module name colors are not not applied and no auto-completion is working either. After that I tried Preview Update 2.2 and everything was fine until I upgraded it to Preview Update 5 when it had stopped working too. It seems the project size is of the essence in this case. I had managed to work this issue around for a couple smaller Python 2.7 and Python 3.7 projects by removing some unneeded Python modules from the project root folders (even though those modules were never a part of .pyproj), but even in this case IntelliSence works noticeable slower in VS2019 than it was working earlier and than it is in VS2017. I was less lucky with my biggest project (Python 2.7 + Django + AppEngine + numpy) – whatever I do, with no errors or warning, IntelliSense just wouldn’t do it’s magic in VS2019 anymore 😢 Is this a known issue? Maybe there is a way to work this around by increasing VS performance via tweaking it’s settings somehow? Turning off some of the most time/memory consuming features or something?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
ccarlsonpbcommented, Apr 24, 2019

I am also running into this issue; IntelliSense works perfectly fine on this rather large project with vs2017 but nothing seems to happen in vs2019. When I open the project and initially try to autocomplete, it will say “Python source analysis is not up to date”, and I can see the error list filling up with warnings about unresolved imports , so it’s presumably doing something, but after some time it stops, says it’s ready, but offers no autocomplete at all - no suggestions (not even for built-in stuff), no text coloration, just nothing. I don’t think the unresolved imports are the issue because I get them in vs2017 as well. It doesn’t seem to be a performance issue because the “Microsoft.PythonTools.Analyzer.exe” process is using 0 CPU and only about 240MB of RAM with no size fluctuations (I assume it’s sitting there doing nothing). I’m running vs community 2019 16.0.2

0reactions
huguesvcommented, May 8, 2019

I’m going to close this since the “missing files” issue is fixed in 16.1 preview releases. If there’s any additional repro that don’t involve missing files, please comment on https://github.com/microsoft/PTVS/issues/5214

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual studio 2019 go to definition and Intellisense not ...
Go to Tools -> Options -> Text Editor -> All Languages -> General. Make sure “Auto List Members” is checked. Also, make sure...
Read more >
Intellisense + Project loading issues (loaded projects aren't ...
I have a solution with 61 projects written in C#. The solution loads up fine in Visual Studio 2017. And compiles normally.
Read more >
How to resolve Visual Studio 2019 Intellisense stopped ...
For people using with Resharper · Close all instances of VS. · Navigate to %localappdata%\jetbrains\ and delete the Transient folder found there.
Read more >
Visual Studio IntelliSense Not Working? What To Do.
Workaround #2: Restart Your Machine ... Restarting your Visual Studio didn't get Intellisense back? Well, then try restarting your machine. I'm ...
Read more >
Visual Studio 2019 IntelliSense won't finish loading for ...
In my case this started AFTER I installed the VS2019 professional preview but it affected the main VS2019 Professional. Turning off Load ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found