-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
RecursionError in pylint #3982
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Having the same problem. And it occurs randomly, sometimes rerunning the same test fixes the problem. Downgrading Astroid to 2.2.5 solves the problem. |
@dickreuter thanks for your feedback, I think we should keep this ticket open, since downgrading packages can't be the right way. Is there any alternative in |
Ah, interesting - I just stumbled upon this problem as well. I was using pylint on this minimal test case: from tqdm import tqdm
def progress_wrap(it_list, progress):
if progress:
wrapped = tqdm(it_list)
else:
wrapped = it_list
return wrapped
|
I can't reproduce the crash with @juliangilbey code but the analysis is slow. Upgrading to current master only make it marginally faster (3.77s vs 3.81s). It was taking 2,70s in pylint 2.3.0 with astroid 2.2.5. |
As a datapoint, we're unable to reproduce the recursion error in
Perhaps something in |
I'm closing as it's an old issue that is hard to reproduce, and we have other issues with "modern examples" of genuinely large recursion that are discussed in astroid. |
Dear All,
I'm facing the following issue with
pylint
in my GitHub Actions CI chain:any ideas what goes wrong here? It worked before without any problems,
pylint
version is 2.6.0.Thanks in advance for your help!
Best,
Alexey
The text was updated successfully, but these errors were encountered: