diff --git a/pylsp/plugins/pylint_lint.py b/pylsp/plugins/pylint_lint.py index b4a43972..f5d168de 100644 --- a/pylsp/plugins/pylint_lint.py +++ b/pylsp/plugins/pylint_lint.py @@ -101,9 +101,7 @@ def lint(cls, document, is_saved, flags=''): # pylint: disable=too-many-locals, with Popen(cmd, stdout=PIPE, stderr=PIPE, cwd=cwd, universal_newlines=True) as process: - process.wait() - json_out = process.stdout.read() - err = process.stderr.read() + json_out, err = process.communicate() if err != '': log.error("Error calling pylint: '%s'", err)