Pythagora-io / gpt-pilot

The first real AI developer
Other
31.96k stars 3.22k forks source link

[Bug]: Stopping Pythagora due to error: #1124

Open Cosmicjedi opened 3 weeks ago

Cosmicjedi commented 3 weeks ago

Version

Command-line (Python) version

Operating System

Windows 11

What happened?

Stopping Pythagora due to error:

File core/cli/main.py, line 38, in run_project success = await orca.run() File core/agents/orchestrator.py, line 78, in run response = await agent.run() File core/agents/developer.py, line 88, in run return await self.breakdown_current_task() File core/agents/developer.py, line 199, in breakdown_current_task return await self.get_relevant_files() File core/agents/mixins.py, line 113, in get_relevant_files read_files = [file for file in self.current_state.files if file.path in getattr(action, "read_files", [])] File core/agents/mixins.py, line 113, in read_files = [file for file in self.current_state.files if file.path in getattr(action, "read_files", [])] TypeError: argument of type 'NoneType' is not iterable

Himasnhu-AT commented 3 weeks ago

the fix seems to be to ensure that we handle edge cases where current_state.file is empty?

I'm building an AI agent, that automatically writes test cases and tries to cover all possible edge cases. Is it okay if i try to run it on this repo?