Skip to content

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]

Fix missing CURRENT_FILE env read in search_file

carlosejimenez956347de43e1
diff --git a/tools/search/bin/search_file b/tools/search/bin/search_file
index 4a942b1e..d6e191c8 100644
--- a/tools/search/bin/search_file
+++ b/tools/search/bin/search_file
@@ -18,6 +18,7 @@ main() {
return # Exit if the file is not valid
fi
else
+ local CURRENT_FILE=$(_read_env CURRENT_FILE)
# Check if a file is open
if [ -z "${CURRENT_FILE:-}" ]; then
echo "No file open. Use the open command first."