leinardi / pylint-pycharm

A plugin providing both real-time and on-demand scanning of Python files with PyLint from within PyCharm/IDEA.
Apache License 2.0
196 stars 35 forks source link

Plugin hangs indefinitely when pylint error occurs #78

Open andreas-wolf opened 3 years ago

andreas-wolf commented 3 years ago

Step 1: Are you in the right place?

Step 2: Describe your environment

Step 3: Describe the problem:

The plugin hangs indefinetly with ""pylint is scanning" when the pylint process had an error.

Steps to reproduce:

pylint can throw a recursion error: https://github.com/PyCQA/pylint/issues/3318 This is reproducible with the following code and pylint 2.6.0:

import pandas as pd

def _postprocess_recorded_data(psu_gun_imon_df):
    ab = pd.to_datetime(psu_gun_imon_df['Date UTC'])
    date_utc = ab.dt #.round('S')
    return date_utc.round('S')

Observed Results:

If pylint checks that code on console a stack trace appears. If the plugin checks that code then it hangs indefinetly, probably because the pylint process which was started hangs.

Expected Results:

Some kind of error message