Skip to content

Commit 297099c

Browse files
authored
Fix pylint hang on file with many errors (#380)
1 parent e93c8b3 commit 297099c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pylsp/plugins/pylint_lint.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ def lint(cls, document, is_saved, flags=''): # pylint: disable=too-many-locals,
101101

102102
with Popen(cmd, stdout=PIPE, stderr=PIPE,
103103
cwd=cwd, universal_newlines=True) as process:
104-
process.wait()
105-
json_out = process.stdout.read()
106-
err = process.stderr.read()
104+
json_out, err = process.communicate()
107105

108106
if err != '':
109107
log.error("Error calling pylint: '%s'", err)

0 commit comments

Comments
 (0)