Trouble getting import debugging info from pyright CLI #10896
djacobowitz-aur
started this conversation in
General
Replies: 1 comment
-
|
Converting to discussion since this isn't a bug report. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I tried debugging an import path problem with my project and had some difficulty getting debug info about what was happening.
(A)
pyright --verbosedoes not print the verbose trace of import behavior which is recommended for debugging import issues. This happens because the import logging usesconsole.loglevel.--verbosesets the max log level toInfoinstead ofLog. VS Code gets the import logging anyway, maybe becauseStderrConsoledoesn't pay attention to the level.(B) Fewer of the import details are logged on
mastersince #10819. E.g._resolveImportStrictstill contains log statements but is never passed theimportLogger.VS Code extension or command-line
Are you running pyright as a VS Code extension, a language server in another editor, integrated into Pylance, or the command-line tool? Which version?
Command line built from master today.
Beta Was this translation helpful? Give feedback.
All reactions