Skip to content
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

生成文档的时候出现了递归溢出 #59

Open
tjyst123 opened this issue Mar 4, 2024 · 4 comments
Open

生成文档的时候出现了递归溢出 #59

tjyst123 opened this issue Mar 4, 2024 · 4 comments
Labels
good first issue Good for newcomers

Comments

@tjyst123
Copy link

tjyst123 commented Mar 4, 2024

image
前面执行都很顺畅,但是解析到21%的时候突然就溢出了

@LOGIC-10
Copy link
Collaborator

LOGIC-10 commented Mar 5, 2024

请问你是对什么仓库执行RepoAgent生成任务?有地址链接吗?
如果是在parsing过程中遇到问题,重试之后是否解决?

@tjyst123
Copy link
Author

tjyst123 commented Mar 5, 2024

请问你是对什么仓库执行RepoAgent生成任务?有地址链接吗? 如果是在parsing过程中遇到问题,重试之后是否解决?

是我自己的私有项目,暂时没有开源。重试后没有解决问题,每次都是执行到21%的时候递归溢出了

@LOGIC-10
Copy link
Collaborator

LOGIC-10 commented Mar 6, 2024

请问你是对什么仓库执行RepoAgent生成任务?有地址链接吗? 如果是在parsing过程中遇到问题,重试之后是否解决?

是我自己的私有项目,暂时没有开源。重试后没有解决问题,每次都是执行到21%的时候递归溢出了

你可以尝试检查一下项目内是否存在循环引用:确保没有任何节点直接或间接地引用自身,这可能导致无限递归。
如果你的项目里确实有很深的结构,可以尝试增加Python的最大递归深度限制。

import sys
sys.setrecursionlimit(1500)  # 将默认的递归深度限制从1000增加到1500

@magaton
Copy link

magaton commented Mar 6, 2024

I hit the same problem at around 30%. My repo is also private so I cannot share.
The project has a lot of ast parsing + tree-sitter, so I guess this is where RepoAgents chokes.
Wouldn't it make sense that circular references are handled with some max-depth and if not resolved, the execution continues without generating a result for that snippet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants