OpenBMB / RepoAgent

An LLM-powered repository agent designed to assist developers and teams in generating documentation and understanding repositories quickly.
Apache License 2.0
376 stars 64 forks source link

maximum recursion depth exceeded in comparison #70

Open Major-wagh opened 4 months ago

Major-wagh commented 4 months ago

Receiving the following error when : 2024-07-09 12:48:43.996 | SUCCESS | repo_agent.log:set_logger_level_from_config:74 - Log level set to INFO! parsing parent relationship: 0%| parsing parent relationship: 100%|█████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 8184.01it/s] Loading MetaInfo: /home/jovyan/work/Documentation/Arya/wiki/hierarchy_files MetaInfo is Refreshed and Saved 2024-07-09 12:48:44.015 | INFO | repo_agent.runner:first_generate:104 - Starting to generate documentation parsing bidirectional reference: 0%| | 0/2 [00:00<?, ?it/s]2024-07-09 12:48:44.198 | INFO | repo_agent.doc_meta_info:find_all_referencer:293 - Error occurred: column parameter (6) is not in a valid range (0-0) for line 205 ('\n'). 2024-07-09 12:48:44.198 | INFO | repo_agent.doc_meta_info:find_all_referencer:294 - Parameters: variable_name=Embed, file_path=wikiv1.py, line_number=205, column_number=6 2024-07-09 12:48:44.208 | INFO | repo_agent.doc_meta_info:find_all_referencer:293 - Error occurred: line parameter is not in a valid range. 2024-07-09 12:48:44.208 | INFO | repo_agent.doc_meta_info:find_all_referencer:294 - Parameters: variable_name=create_collection, file_path=wikiv1.py, line_number=284, column_number=4 parsing bidirectional reference: 50%|█████████████████████████████████████▌ | 1/2 [00:00<00:00, 5.17it/s]2024-07-09 12:48:44.212 | INFO | repo_agent.doc_meta_info:find_all_referencer:293 - Error occurred: column parameter (6) is not in a valid range (0-0) for line 205 ('\n'). 2024-07-09 12:48:44.213 | INFO | repo_agent.doc_meta_info:find_all_referencer:294 - Parameters: variable_name=Embed, file_path=.ipynb_checkpoints/wikiv1-checkpoint.py, line_number=205, column_number=6 2024-07-09 12:48:44.220 | INFO | repo_agent.doc_meta_info:find_all_referencer:293 - Error occurred: line parameter is not in a valid range. 2024-07-09 12:48:44.220 | INFO | repo_agent.doc_meta_info:find_all_referencer:294 - Parameters: variable_name=create_collection, file_path=.ipynb_checkpoints/wikiv1-checkpoint.py, line_number=284, column_number=4 parsing bidirectional reference: 100%|███████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 9.74it/s] parsing topology task-list: 0%| | 0/10 [00:00<?, ?it/s]Traceback (most recent call last): File "/home/jovyan/work/repoagent/RepoAgent/repo_agent/main.py", line 312, in cli() File "/opt/conda/envs/repoenv/lib/python3.11/site-packages/click/core.py", line 1157, in call return self.main(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/conda/envs/repoenv/lib/python3.11/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/opt/conda/envs/repoenv/lib/python3.11/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/conda/envs/repoenv/lib/python3.11/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/conda/envs/repoenv/lib/python3.11/site-packages/click/core.py", line 783, in invoke return __callback(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/jovyan/work/repoagent/RepoAgent/repo_agent/main.py", line 260, in run runner.run() File "/home/jovyan/work/repoagent/RepoAgent/repo_agent/runner.py", line 240, in run self.first_generate() # 如果是第一次做文档生成任务,就通过first_generate生成所有文档 ^^^^^^^^^^^^^^^^^^^^^ File "/home/jovyan/work/repoagent/RepoAgent/repo_agent/runner.py", line 106, in first_generate task_manager = self.meta_info.get_topology( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/jovyan/work/repoagent/RepoAgent/repo_agent/doc_meta_info.py", line 619, in get_topology task_manager = self.get_task_manager( ^^^^^^^^^^^^^^^^^^^^^^ File "/home/jovyan/work/repoagent/RepoAgent/repo_agent/doc_meta_info.py", line 577, in get_task_manager if task_available_func(child) and (child not in deal_items): ^^^^^^^^^^^^^^^^^^^^^^^ File "", line 4, in eq File "", line 4, in eq File "", line 4, in eq [Previous line repeated 851 more times] RecursionError: maximum recursion depth exceeded in comparison parsing topology task-list: 90%|███████████████████████████████████████████████████████████████████████ | 9/10 [00:00<00:00, 34.28it/s]