Skip to content

Commit

Permalink
Fix pylint hang on file with many errors (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
hetmankp committed May 17, 2023
1 parent e93c8b3 commit 297099c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pylsp/plugins/pylint_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 297099c

Please sign in to comment.