-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Verbose diagnostics can be improved #6544
Comments
There are a lot of good ideas here. Would you like to submit a PR implementing some of them? |
Hardly, for now. |
Working on this issue |
The first section has a PR now, the other parts are harder to implement. |
Implementation of parts of python#6544 , namely of printing the path of the source files given to be processed by mypy. Tested using the command line as well as a configuration file.
Is this issue still open? Some of the later suggestions may not have been implemented due to complexity. I myself am really new to the mypy repository, but I'd like to help with the later implementations. It'd really be kind of you guys to maybe nudge me in the right direction @ilevkivskyi @akerami @jxcl @jolaf |
TBH I kind of lost track of what is the situation here. But other people can probably help. |
There are 11 bullet points in the OP. |
I want to work on this. |
Many of the things here have been addressed. Feel free to open PRs or issues for any other improvements you'd like. |
Even in verbose mode,
mypy
diagnostic output misses a lot of very useful things:MYPYPATH
variable and config file.Also for each file being checked, it would be useful to know:
mypy
decided to check this particular file? Was it specified in the command line? By filename? By package name? By module name? Was it found inMYPYPATH
? Was itimport
ed by some other file? Maybe there are other ways?import
ed, was it found in the current directory? InMYPYPATH
? Indist-packages
of the python interpreter?If file gets
import
ed, but import fails, it would be extremely useful to know, why particularly.I'm having serious trouble debugging my
mypy
configuration in CI/CD system, for example at some pointsmypy
stops seeing my stubs I've created for a 3rd-party library I use, and than at some points starts seeing them again. The cause is eluding me for many hours, and tracking it is really difficult without detailed logging.I understand most of my questions are silly, but I'm really having trouble finding answers to them, and by the way, verbose/debug mode IS really a way to get answers to a lot of silly questions that nobody thought somebody would ever need, but at some points someone does, isn't it?
The text was updated successfully, but these errors were encountered: