tomv564 / pyls-mypy

Mypy plugin for the Python Language Server
MIT License
110 stars 62 forks source link

How to disable live_mode? #17

Closed nasyxx closed 5 years ago

nasyxx commented 5 years ago

For this reason: https://github.com/python/mypy/issues/6070

I need to turn off live_mode when I use it in the emacs lsp-mode.

Normally, when I need to turn off pycodestyle, according to the settings here https://github.com/palantir/python-language-server/blob/develop/vscode-client/package.json . I just need to set pyls.plugins.pycodestyle.enabled to false.

I have tried setting both pyls.plugins.pyls_mypy.live_mode and pyls.pyls_mypy.live_mode to false, but it still in live_mode.

Did I miss something that led to the failure of the config? Or is the problem on the lsp-mode?

tomv564 commented 5 years ago

Setting pyls.plugins.pyls_mypy.live_mode to false should work, unfortunately there is no logging in pyls-mypy to confirm the setting is received. You could enable more logging in python-language-server to confirm it is reading the setting and passing it to pyls-mypy?

nasyxx commented 5 years ago

Thank you for your answer. I think the problem may be in the emacs lsp-mode. But the problem is not significant. Now I use a fork version with direct default live_mode as False.