Skip to content

mypy output truncated in "pretty" mode #13381

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

Closed
tlambert03 opened this issue Aug 11, 2020 · 3 comments
Closed

mypy output truncated in "pretty" mode #13381

tlambert03 opened this issue Aug 11, 2020 · 3 comments
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@tlambert03
Copy link

tlambert03 commented Aug 11, 2020

when using pretty = True in my [mypy] config... the output in the information window is truncated. Easy enough to just not use pretty mode... but is there a way to still have pretty mode for terminal usage?

Environment data

  • VS Code version:1.47.3
  • Extension version (available under the Extensions sidebar): v2020.7.96456
  • OS and version: Darwin x64 17.7.0. (10.13.6)
  • Python version (& distribution if applicable, e.g. Anaconda): 3.8.5 conda
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
  • Relevant/affected Python packages and their versions: mypy==0.782
  • Value of the python.languageServer setting: jedi

Expected behaviour

with pretty = False:
Screen Shot 2020-08-11 at 8 19 37 AM

Actual behaviour

with pretty = True
Screen Shot 2020-08-11 at 8 19 54 AM

Steps to reproduce:

Logs

Output with pretty = True
##########Linting Output - mypy##########
package/module.py:39:1: error: Overloaded function implementation cannot
produce return type of signature 2  [misc]
    def function(
    ^
Output with pretty = False
##########Linting Output - mypy##########
package/module.py:39:1: error: Overloaded function implementation cannot produce return type of signature 2  [misc]

@tlambert03 tlambert03 added triage-needed Needs assignment to the proper sub-team bug Issue identified by VS Code Team member as probable bug labels Aug 11, 2020
@brettcannon
Copy link
Member

@tlambert03 unfortunately we don't have a specific feature to handle this for mypy. Maybe there's a way to override it on the command-line using python.linting.mypyArgs?

Otherwise this will hopefully be solved when we get to #1577 .

@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Aug 11, 2020
@tlambert03
Copy link
Author

ok, thanks, no worries. wasn't sure where the appropriate place to put that observation was...

@danfrankj
Copy link

I ran into this problem as well. Seems like more of a VSCode problem

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

3 participants