SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]
More helpful message if --repo_path doesn't exist (#764)
Kilian Lieretb097d7a455b8
diff --git a/sweagent/environment/utils.py b/sweagent/environment/utils.pyindex bea2656c..5a64d482 100644--- a/sweagent/environment/utils.py+++ b/sweagent/environment/utils.py@@ -677,6 +677,9 @@ def get_instances(raise ValueError(msg)if repo_path:+ if not Path(repo_path).exists():+ msg = f"Specified repository path {repo_path} does not exist"+ raise FileNotFoundError(msg)msg = "repo_path must be empty if running over multiple problem statements"raise ValueError(msg)