aimclub / aimclub/OSA

bug: cannot access local variable 'dg' where it is not associated with a value

未关闭
#285 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Python
星标
143
派生
23
平均合并
5 天 9 小时
30 天内合并 PR
2

描述

## Description

repository - https://github.com/sphinx-doc/sphinx

run command -

``` python
cmd = [
"poetry",
"run",
"osa-tool",
"-r",
" https://github.com/sphinx-doc/sphinx",
"--api",
"openai",
"--base-url",
"https://openrouter.ai/api/v1",
"--model",
"gpt-4.1",
"--no-fork",
"--no-pull-request",
"-m",
"basic",
"--web-mode"
]
```

`sheduler.py` was modified to include only docstring generation for basic mode:

```python
@staticmethod
def _basic_plan() -> dict:
"""Return default plan for 'basic' mode."""
plan = {
"docstring": True,
}
return plan
```

## Logs

```txt
[02:25:33] INFO [02:25:33] - Created directory: /home/ilya/OSA/popular_2__OSA_gpt4_1 run.py:64
INFO [02:25:33] - Output path changed to /home/ilya/OSA/popular_2__OSA_gpt4_1 run.py:66
INFO [02:25:33] - Config successfully updated and loaded run.py:335
[02:25:34] INFO [02:25:34] - Successfully fetched GitHub metadata for repository: 'sphinx-doc/sphinx' metadata.py:255
INFO [02:25:34] - Cloning the 'master' branch from https://github.com/sphinx-doc/sphinx into directory git_agent.py:344
/home/ilya/OSA/popular_2__OSA_gpt4_1/sphinx...
[02:25:47] INFO [02:25:47] - Cloning completed git_agent.py:353
INFO [02:25:47] - Basic mode selected for task scheduler. scheduler.py:56
INFO [02:25:47] - Web mode enabled, returning plan for web interface. scheduler.py:88

────────────────────────────────────────────────────────────────────────── Docstrings generation ───────────────────────────────────────────────────────────────────────────
[02:25:48] ERROR [02:25:48] - Error: cannot access local variable 'dg' where it is not associated with a value run.py:179
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。