Skip to content
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

[Bug] Does one analysis at start, and never re analyses the file unless VSCode is closed and reopened #132

Closed
JacquesSyn opened this issue Aug 29, 2023 · 4 comments
Assignees

Comments

@JacquesSyn
Copy link

JacquesSyn commented Aug 29, 2023

Installed the mypy release version v2023.2.0

Reloaded VSCode after install

It correctly linted my file at the start (16 problems)

I modified my file, try adding an additional problem

Then the problem window is empty

Tried to save the file, close & open the file, nothing works

BUT closing VSCode & Re-opening it works, the file is linted again

If I make a new modification, again, "No problem" is shown and no new analysis results are displayed

It is on Windows but using a remote Linux through SSH

Settings are :

"mypy-type-checker.interpreter": [
    ".venv/bin/python"
],
"mypy-type-checker.args": [
    "--explicit-package-bases"
],
@karthiknadig
Copy link
Member

@JDurSyn This is likely due to an issue with dmypy itself. See here #88

You can force the extension to use mypy as suggested in the comment here: #88 (comment)

I plan on adding a setting to make it easier to switch between mypy or dmypy. So closing this in favor of : #115

@karthiknadig karthiknadig closed this as not planned Won't fix, can't repro, duplicate, stale Aug 29, 2023
@karthiknadig
Copy link
Member

karthiknadig commented Aug 29, 2023

@JDurSyn You should be able to see the Output > Mypy Type Checker logs to see what is being reported by the tool itself.

@JacquesSyn
Copy link
Author

JacquesSyn commented Aug 30, 2023

@karthiknadig Thank you for the suggestion, I will try this now

@JacquesSyn
Copy link
Author

Ok thanks @karthiknadig it works fine now. Left a 5 star reviews on your extension page, great extension !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants