Closed StabbarN closed 1 year ago
Not sure I fully understand. pylsp-mypy
runs either in deamon or non-daemon mode. If we include --cache-fine-grained
in non-daemon mode then how will it help user, if that user is not using the daemon mode?
In what specific cases it would be useful to have the --cache-fine-grained
flag added? I would imagine that would have to be some case where user sometimes runs in non-daemon and sometimes in daemon mode but how would that work in practice?
Aaah, I misunderstood.
I would imagine that would have to be some case where user sometimes runs in non-daemon and sometimes in daemon mode but how would that work in practice?
Yeah, if one starts mypy in terminal by mypy --cache-fine-grained
and then starts pylsp-mypy
it would help. However, that wasn't my intention.
It probably doesn't make sense to use cache-fine-grained.
What are your thoughts on adding support for incremental mode, more specifically flag cache-fine-grained?
IMO
--cache-fine-grained
would be great in LSP, even it's not perfect according tohttps://mypy.readthedocs.io/en/stable/additional_features.html#refinements
See also Caching with mypy daemon.
I noticed that
--incremental
is passed here https://github.com/python-lsp/pylsp-mypy/blob/0.6.4/pylsp_mypy/plugin.py#L213 but isn't incremental the default state?--no-incremental
can be passed but I didn't find anything about--incremental
. I also looked forincremental
in the release notes at https://mypy-lang.blogspot.com/.