2
Vote

100% cpu usage in Django projects

description

Reproduced in VS 2010 Pro and VS 2012 Shell (on a machine with both installed). Create a new django project. You do not need to create any virtual env or open any file in the editor. Look at task manager, and you'll see devenv.exe is using all of your CPU.

comments

huguesv wrote Mar 7 at 5:41 PM

Note that the analyzer isn't running during any of this (I checked task mgr). Also, this doesn't appear to be a problem in non-Django projects.

Zooba wrote Mar 7 at 6:06 PM

The analyzer is running, but it runs in-proc. I have some ideas about making this faster (by degrading the analysis results automatically) but for now there is no workaround.

andrewdelong wrote Apr 9 at 10:56 PM

I've got the same issue just by opening up a blank Visual Studio instance, with no solution at all, and simply opening a .py file. devenv.exe suddenly starts using 100% CPU, and if I try to use the debug interactive python window, the REPL just hangs.

Zooba wrote Apr 10 at 6:12 PM

Which .py file did you open? We automatically create an implicit project from the surrounding files and analyze it, which could take a long time if you opened something from a standard library.

We have a fix already in for the next release that will prevent it from taking a very long time (by sacrificing result quality), but this is basically unavoidable processing.