生成文档的时候出现了递归溢出
前面执行都很顺畅,但是解析到21%的时候突然就溢出了
请问你是对什么仓库执行RepoAgent生成任务?有地址链接吗? 如果是在parsing过程中遇到问题,重试之后是否解决?
请问你是对什么仓库执行RepoAgent生成任务?有地址链接吗? 如果是在parsing过程中遇到问题,重试之后是否解决?
是我自己的私有项目,暂时没有开源。重试后没有解决问题,每次都是执行到21%的时候递归溢出了
请问你是对什么仓库执行RepoAgent生成任务?有地址链接吗? 如果是在parsing过程中遇到问题,重试之后是否解决?
是我自己的私有项目,暂时没有开源。重试后没有解决问题,每次都是执行到21%的时候递归溢出了
你可以尝试检查一下项目内是否存在循环引用:确保没有任何节点直接或间接地引用自身,这可能导致无限递归。 如果你的项目里确实有很深的结构,可以尝试增加Python的最大递归深度限制。
import sys
sys.setrecursionlimit(1500) # 将默认的递归深度限制从1000增加到1500
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?