agent attempts to open files that do not exist, edit loops with indentation error #89

Closed
opened 2025-10-14 15:44:29 -06:00 by navan · 0 comments
Owner

Originally created by @rjwalters on 5/13/2024

Installed and tried my first prompt:

"I'd like to improve the test coverage in this project for the python files in src/shared"

Agent decided to try to open a file that does not exist and then hangs:

+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|   Devon is thinking:                                                                                                                                                                                        |
|   The user requested improving test coverage for the Python files in the src/shared directory. From the directory listing, I can see there are Python files in src/shared, but no test files specifically   |
|    for that directory.                                                                                                                                                                                      |
|                                                                                                                                                                                                             |
|   To improve test coverage, I should:                                                                                                                                                                       |
|                                                                                                                                                                                                             |
|   1. Open and review the Python files in src/shared to understand what functionality needs testing                                                                                                          |
|   2. Create a new test file in the tests/shared directory for the src/shared code                                                                                                                           |
|   3. Write test cases that exercise the key functionality and edge cases of the src/shared code                                                                                                             |
|   4. Run the new tests to make sure they pass                                                                                                                                                               |
|   5. Check the test coverage report to confirm coverage has improved                                                                                                                                        |
|   6. Submit the changes                                                                                                                                                                                     |
|                                                                                                                                                                                                             |
|   I'll start by opening the Python files in src/shared to see what needs testing.                                                                                                                           |
|                                                                                                                                                                                                             |
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+-------------------------------------------------------------------------------------------------------------------------------------------------------+
|   Devon ran: Running command:                                                                                                                         |
|   open_file "src/shared/utils.py"                                                                                                                     |
|                                                                                                                                                       |
|   > Failed to open file: /Users/rwalters/Documents/GitHub.nosync/python-robb/src/shared/utils.py. Error: Could not open file, file does not exist:    |
|   /Users/rwalters/Documents/GitHub.nosync/python-robb/src/shared/utils.py                                                                             |
+-------------------------------------------------------------------------------------------------------------------------------------------------------+
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|                                                                                                                                                                                                               |
|   Waiting for Devon...                                                                                                                                                                                        |
|                                                                                                                                                                                                               |
|                                                                                                                                                                                                               |
|                                                                                                                                                                                                               |
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
*Originally created by @rjwalters on 5/13/2024* Installed and tried my first prompt: "I'd like to improve the test coverage in this project for the python files in src/shared" Agent decided to try to open a file that does not exist and then hangs: ``` bash +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Devon is thinking: | | The user requested improving test coverage for the Python files in the src/shared directory. From the directory listing, I can see there are Python files in src/shared, but no test files specifically | | for that directory. | | | | To improve test coverage, I should: | | | | 1. Open and review the Python files in src/shared to understand what functionality needs testing | | 2. Create a new test file in the tests/shared directory for the src/shared code | | 3. Write test cases that exercise the key functionality and edge cases of the src/shared code | | 4. Run the new tests to make sure they pass | | 5. Check the test coverage report to confirm coverage has improved | | 6. Submit the changes | | | | I'll start by opening the Python files in src/shared to see what needs testing. | | | +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +-------------------------------------------------------------------------------------------------------------------------------------------------------+ | Devon ran: Running command: | | open_file "src/shared/utils.py" | | | | > Failed to open file: /Users/rwalters/Documents/GitHub.nosync/python-robb/src/shared/utils.py. Error: Could not open file, file does not exist: | | /Users/rwalters/Documents/GitHub.nosync/python-robb/src/shared/utils.py | +-------------------------------------------------------------------------------------------------------------------------------------------------------+ +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | | | Waiting for Devon... | | | | | | | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/Devon#89
No description provided.