You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
PLS reanalyzes everything when test files changes #1329
After I save any changes to a test file, the python extension will run Discovering tests and at the same time PLS will reanalyzes everything. PLS doesn't do that after I save non-test files though.
I'm on daily channel of PLS, current version 0.3.30.0.
Just got new version of PLS. Now at 0.3.35.0. This one seems to not trigger reanalyzation on test file change though. Will use it for a few days first before confirming that this bug can be closed.
[Info - 8:59:36 AM] Interpreter search paths:
[Info - 8:59:36 AM] /home/username/Projects/myproject/api/.venv/lib/python3.7
[Info - 8:59:36 AM] /home/username/Projects/myproject/api/.venv/lib/python3.7/lib-dynload
[Info - 8:59:36 AM] /usr/lib/python3.7
[Info - 8:59:36 AM] /home/username/Projects/myproject/api/.venv/lib/python3.7/site-packages
[Info - 8:59:36 AM] User search paths:
[Info - 8:59:36 AM] /home/username/Projects/myproject/api
[Info - 8:59:47 AM] Microsoft Python Language Server version 0.3.35.0
Yes, before #1306 we were (incorrectly) watching the wrong thing, likely that api folder. Past that PR, we should only be watching what we display as "interpreter paths" for changes (e.g. pip installing new packages).
I'm going to close this; as far as I can tell the PR did fix this in all of the cases I've seen, since the watching is no longer on PYTHONPATH/extraPaths.
Activity
MikhailArkhipov commentedon Jul 13, 2019
I guess your test files folder is somehow recognized as library code. Please provide your search paths and extra paths setting.
lephuongbg commentedon Jul 16, 2019
Just got new version of PLS. Now at 0.3.35.0. This one seems to not trigger reanalyzation on test file change though. Will use it for a few days first before confirming that this bug can be closed.
jakebailey commentedon Jul 16, 2019
Yes, before #1306 we were (incorrectly) watching the wrong thing, likely that
apifolder. Past that PR, we should only be watching what we display as "interpreter paths" for changes (e.g. pip installing new packages).jakebailey commentedon Aug 7, 2019
I'm going to close this; as far as I can tell the PR did fix this in all of the cases I've seen, since the watching is no longer on PYTHONPATH/extraPaths.