Skip to content
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

Errors in open files are shown inconsistently #7671

Closed
excubo-jg opened this issue Jul 10, 2023 · 2 comments
Closed

Errors in open files are shown inconsistently #7671

excubo-jg opened this issue Jul 10, 2023 · 2 comments
Assignees
Labels
waiting for upstream Waiting for upstream to release a fix

Comments

@excubo-jg
Copy link

Steps to Reproduce

  1. Open attached project
  2. 3 files are opened with a.py displayed
  3. No errors are reported in the "Error List"
  4. Set Options - Python - Analysis - Diagnostic Mode to "Workspace"
  5. The error in c.py is reported in "Error List"
  6. Set Options - Python - Analysis - Diagnostic Mode to "Open files only"
  7. The error message in the "Error List" is removed although c.py is open
  8. Select c.py
  9. The error in c.py is reported in "Error List"
  10. Select a.py
  11. The error in c.py is still reported in "Error List"

Expected behavior
Errors in all open files in the workspace should be reported all the time. [Or to preserve consistency the setting should be renamed to "active file only" and all messages from other files suppressed although that is not preferred]

Sample Code

[PythonApplication1.zip](https://github.com/microsoft/PTVS/files/12000474/PythonApplication1.zip)

image

@StellaHuang95 StellaHuang95 added needs investigation Could be an issue - needs investigation and removed needs triage labels Jul 10, 2023
@StellaHuang95 StellaHuang95 self-assigned this Dec 12, 2023
@StellaHuang95
Copy link
Contributor

I was able to repro this in vscode as well. I've filed an issue with Pylance, and we'll wait to hear what the team has to say about it. microsoft/pylance-release#5249

@StellaHuang95 StellaHuang95 added waiting for upstream Waiting for upstream to release a fix and removed needs investigation Could be an issue - needs investigation labels Dec 13, 2023
@StellaHuang95
Copy link
Contributor

Looks like it's by design. Closing this issue for now as it appears to be beyond the scope of PTVS to address.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for upstream Waiting for upstream to release a fix
Projects
None yet
Development

No branches or pull requests

2 participants