-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Analysis engine should not analyze entire project #1861
Comments
There is already some filtering for virtual environments residing in the workspace. Basically we just need some logic to determine which folders must be excluded. It is simpler in VS that has 'white list' model in most projects. |
@MikhailArkhipov When I tested yesterday most errors reported were in fact from packages installed in my virtualenv ( |
Having a path component of |
I think the extensions is already aware of where the venv is? The other candidate would be |
PR is up microsoft/PTVS#4372 |
I'm still getting too many false positives.
|
Should we disable full-workspace analysis by default to be consistent with current behavior? I haven't seen much ask for analyzing the entire project, mostly folks just want to see syntax errors are they're editing code. |
Full-workspace analysis is a great feature when it's not overzealous. Consider this comment as me asking for it to be available 😄 |
Agreed it's useful! We would have the option available, we just need to decide what the right default is -- it depends on how many people will get overwhelmed with results like Don's. |
@qubitron It should be possible to add folders to the ignore list. I'm fine with spending some time up-front and I'm fine with "analyze the entire project" being off by default as long as it's a supported option. |
Solutions:
|
Ignore list is already supported. We pass
So you can add more patterns in either of those as needed. As for new setting, or code actions and 'only report errors on active files' feature - please open separate issues so we can prioritize and track them appropriately. I am going to close this one rather than recycling issues... ;-) |
That's the solution. Thanks |
@DonJayamanne - PTVSD repo shows no errors... Apart fro Pylint. |
Opened #2030 |
I don't think the analysis engine should analyze the entire workspace folder and report syntax errors.
Currently that's the default behaviour:
Problems:
As a result we have a lot of noise and false positives being reported.
If the code base is quite large, then valid errors/messages returned by linters get buried in the noise.
I'm flagging this as a bug as it produces too many false positives, & would be too confusing for developers moving from Jedi to Analysis engine.
Solution:
@qubitron @brettcannon cc
The text was updated successfully, but these errors were encountered: