I want to disable memory hunger processes on the background, I believe it comes from flycheck. I have a 1GiB virtual machine where when pylint
works on the background it consumes a lot of CPU, which freezes the machine.
At the end of my init.el file I have following function:
(use-package flycheck
:config
(setq-default flycheck-disabled-checkers '(python-pylint)))
Which seems like did not help at all. I have remove all flake8
lines in my init file but it still shows up.
How can I force to disable python-pylint
or memory hunger flycheck
processes?
Related: When using flycheck, how to permanently disable pylint?
lsp
? if yes, what is the server in this case? Also I found out one question posted by you asking how to enable python-pylint (in 2020), maybe the reverse process? – Ian May 03 '22 at 08:04lsp
; which allows me to jump into function definition and come back in Python. I can add my lsp setup into the question. I should find a way to use lsp as minimal as possible – alper May 03 '22 at 10:41pylint
in your lsp configuration - is that correct? if yes, do not configure/modify flycheck, just disable pylint from lsp. – Ian May 03 '22 at 11:45python-pylint
in thelsp-managed-mode-hook
when I disable itsflake8
also shows up which consumes high memory as well – alper May 03 '22 at 16:28lsp
configuration - you failed to tell what lsp server do you use - ifpylsp
then(setq lsp-pylsp-plugins-pylint-enabled nil)
- or if you usepyright
see there - take care this one scrap all your.py
files and add watches to all those files, including ones for python package, may be some tens of thousands files. Another obvious solution ispip uninstall pylint
. – Ian May 04 '22 at 11:46(require 'lsp-pylsp) (setq lsp-pylsp-plugins-pylint-enabled t)
I believe pylsp is used. Please note that I am not usingpyright
. – alper May 04 '22 at 12:32