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

Only the first opened file gets linted when run as daemon #222

Closed
Mutantpenguin opened this issue Nov 14, 2023 · 1 comment
Closed

Only the first opened file gets linted when run as daemon #222

Mutantpenguin opened this issue Nov 14, 2023 · 1 comment

Comments

@Mutantpenguin
Copy link
Contributor

Mutantpenguin commented Nov 14, 2023

When activating the daemon, only the first opened file gets linted. When switching to another file nothing happens.

2023-11-14_12h26_40

There are no errors from the extension itself in the output tab of this extension. I can see that the linter gets called for the file I just switched to, but no linting errors are shown in the output either.

Making changes to a file and saving it doesn't make a difference.

Apart from all of that, linting with the daemon (if it works at all) seems slower than directly invoking mypy.

Example Workspace

vscode-mypy.zip

My System

Version: 1.84.2 (user setup)
Commit: 1a5daa3a0231a0fbba4f14db7ec463cf99d7768e
Date: 2023-11-09T10:51:52.184Z
Electron: 25.9.2
ElectronBuildId: 24603566
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.22621

Mypy Type Checker: v2023.6.0

Python 3.10.11

@karthiknadig
Copy link
Member

That is an issue with dmypy, python/mypy#15677 . We added the mypy-type-checker.preferDaemon setting to allow users to turn of daemon mode as it seems to have too many issues currently.

@karthiknadig karthiknadig closed this as not planned Won't fix, can't repro, duplicate, stale Nov 14, 2023
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