8000 Fix pylint hang on file with many errors (#380) · python-lsp/python-lsp-server@297099c · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Lines changed: 1 addition & 3 deletions
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 pro 6089 cess:
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)
0