-
Notifications
You must be signed in to change notification settings - Fork 133
Language Server Analysis Time in Conda Environment #821
Comments
For me it didn't take long, but this is what I got on the output window:
Worth mentioning numpy is installed in the environment |
That message is likely the same as #817, the scraper has exceptions that are printed. |
I could reproduce it with a large requirements.txt file. |
We don't actually read requirements and only open packages that are actually imported. Could you please set "python.analysis.logLevel": "Trace", Then copy contents of the output when analysis is done. Also, @luabud - what is your code. |
I'm running the same code as @Anapo14, but weirdly it didn't take long this time ( |
@luabud - is it same environment or standalone Python |
Using the same Conda environment as before: Analysis version I noticed that the time given in the trace is about 4 minutes less than the time I get when I set the timer on my phone, though (7.57 minutes). Is this by design? The analysis would freeze on a certain number of items being analyzed in the background before continuing on. Does the log take that"frozen" time into account? |
Yes, the time isn't completely accurate as we do 2+ passes with varying degrees of analysis. We're looking into improving that to be more accurate, but we needed a way to see at least some number during testing with logging enabled. |
There is fairly high overhead involved in actual output of messages. Time reported if for actual calculations, it does not take into account time spent in sending log messages to the client (VSC). |
The analysis time should be much improved in the latest release. Most of the time was spent working on PyQt5, which should be fixed as of #875. Closing this for now, and we'd appreciate it if you could retest (and potentially open more issues if we find more specific issues). |
VSCode Version: 1.32.3
Extension Version: 2019.2.5558
OS: Windows 10
Python 3.7.2
LS Version: 0.2.30.0
Using Conda virtual environment
I have a conda environment that includes the list of packages in this attachment. However, it take the LS 17 minutes to complete analysis on this environment.
(Note the time that analysis starts and the time on my computer's clock...the screenshot was taken before analysis was fully completed).
I am working with this simple script:
The text was updated successfully, but these errors were encountered: