question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mypy errors don't show up in problems view nor in editor

See original GitHub issue

VS Code version

1.62.2

Extension version

v2021.11.1422169775

OS type

Linux

OS version

20.04 LTS

Python distribution

python.org

Python version

3.9

Language server

Pylance

Expected behaviour

Show mypy errors in problems and in editor

Actual behaviour

They only show up in the Python/Output view:

##########Linting Output - mypy##########
downloader.py:9:1: error: Function is missing a return type annotation
downloader.py:9:1: error: Function is missing a type annotation for one or more arguments
Found 2 errors in 1 file (checked 1 source file)

Steps to reproduce

Create a python file a function that does not have a return type, hit safe.

Logs

see above

Code of Conduct

  • I agree to follow this project’s Code of Conduct

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:15

github_iconTop GitHub Comments

1reaction
dreamflashercommented, Jan 7, 2022

@diegovalenzuelaiturra does it work for you?

1reaction
dreamflashercommented, Nov 17, 2021

It’s running fine. Expected output, it doesn’t fail, but correctly shows the problems in my code.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common issues and solutions - mypy 0.991 documentation
Common issues and solutions# · Can't install mypy using pip# · No errors reported for obviously wrong code# · Spurious errors and locally...
Read more >
flake8 linting does not show up in problems tab or inside ...
Mypy linting works, pylint linting works, and flake8 actually is called and works, only nothing shows up in the editor. I have tried...
Read more >
mypy-django/Lobby - Gitter
Any of you guys/gals able to get real-time error reporting in VSCode? ... Sorry, I can't help you with that, not my editor...
Read more >
Give Python's static typing a go - Primary Unit
But why doesn't “normal” mode mypy not see the problem? I think this is to do with what is considered a “typed context”....
Read more >
Mypy Documentation - Read the Docs
Python is a dynamic language, so usually you'll only see errors in your code ... This is not a problem when using variable...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found