microsoft / microsoft/PTVS

Changing error messages - differences in reported errors between VS and pyright cli

Open
#7,274 2 comments 0 reactions 1 assignee View on GitHub

@bschnurr is already working on this.

Since Dec 12, 2023.

needs investigation
Dominant language
C#
Stars
2.6k
Forks
680
Avg merge
39m
Merged PRs (30d)
1

Description

Describe the bug
After starting n (1<= n <= 10) debug sessions, the reported errors change. Usually at this point in time, the Output-Pylance entry in the drop-down menu disappears

Steps to Reproduce
Open project - Errors reported:
image

Start debug sessions. After a couple of runs, error reporting will change:
image
(this has nothing to do with the current problems with flask, another project not using flask exhibits the same behavior)
The change in error reporting always happens, surprisingly this time the output-pylance entry did not disappear:

image
Notable difference is the line saying "no source files found"

Editing code yields new error messages but only on the new baseline. The initially reported errors are still there but do not get reported.
image

Expected behavior
Stable and reliable reporting of errors

Additional context and screenshots
I have not been able to force output-pylance to disappear, after some debug sessions it is gone.

Configuration information (If you are providing a diagnostics file (see below), skip this section)
`
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.