entropy-research / Devon

Devon: An open-source pair programmer
GNU Affero General Public License v3.0
2.36k stars 172 forks source link

Trouble identifying path #49

Closed businistry closed 4 days ago

businistry commented 1 month ago
it appears devon has a hard time identifying the path of the items I have asked it to do. Devon ran: Running command: open_file "/Users/username/devopsgpt/backend/app/pkgs/tools/llm_basic.py"
> Failed to open file: /Users/username/DevOpsGPT/username/devopsgpt/
backend/app/pkgs/tools/llm_basic.py. Error: Could not open file, file
does not exist: /Users/username/DevOpsGPT/username/devopsgpt/backend
/app/pkgs/tools/llm_basic.py
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+ Devon is thinking: The error message indicates that the file llm_basic.py could not be opened because it does not exist at the specified path. It seems there was a mismatch between the path returned by the find_file command and the actual file path.
To resolve this, I should:
1. Double-check the file path returned by find_file
2. Verify that the file exists at the correct location
3. If the file path is incorrect, update it to the correct path
4. Open the file using the correct path
5. Check if the LLMBase class is defined in the file
6. Make any necessary changes to fix the ImportError
7. Run tests to ensure the fix resolves the issue
I'll start by verifying the file path and updating it if needed.
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------+ Devon ran: Running command: find_file "llm_basic.py"
> /Users/username/devopsgpt/backend/app/pkgs/tools/llm_basic.py

+----------------------------------------------------------------------+ +----------------------------------------------------------------------------+ | Devon is thinking: | | The find_file command returned the correct path for the llm_basic.py | | file:

Mihir1003 commented 1 month ago

thanks for bringing this to our attention. The issue comes from the way paths are being managed by the OpenFile tool. I'll make sure the next version contains the fix to it. What was the directory from which you ran Devon from?

businistry commented 1 month ago

It’s the Devopsgpt directory.

Get Outlook for iOShttps://aka.ms/o0ukef


From: Mihir1003 @.> Sent: Wednesday, May 22, 2024 3:58 PM To: entropy-research/Devon @.> Cc: Todd S Curry Jr @.>; Author @.> Subject: Re: [entropy-research/Devon] Trouble identifying path (Issue #49)

thanks for bringing this to our attentions. The issue comes from the way paths are being managed by the OpenFile tool. I'll make sure the next version contains the fix to it. What was the directory from which you ran Devon from?

— Reply to this email directly, view it on GitHubhttps://github.com/entropy-research/Devon/issues/49#issuecomment-2125732036, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BA4GQRW6LTROPCWELO4U6BDZDUBGRAVCNFSM6AAAAABIDBFYMWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRVG4ZTEMBTGY. You are receiving this because you authored the thread.Message ID: @.***>

businistry commented 1 month ago

Is there a work around in the meantime

Get Outlook for iOShttps://aka.ms/o0ukef


From: Mihir1003 @.> Sent: Wednesday, May 22, 2024 3:58:16 PM To: entropy-research/Devon @.> Cc: Todd S Curry Jr @.>; Author @.> Subject: Re: [entropy-research/Devon] Trouble identifying path (Issue #49)

thanks for bringing this to our attentions. The issue comes from the way paths are being managed by the OpenFile tool. I'll make sure the next version contains the fix to it. What was the directory from which you ran Devon from?

— Reply to this email directly, view it on GitHubhttps://github.com/entropy-research/Devon/issues/49#issuecomment-2125732036, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BA4GQRW6LTROPCWELO4U6BDZDUBGRAVCNFSM6AAAAABIDBFYMWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRVG4ZTEMBTGY. You are receiving this because you authored the thread.Message ID: @.***>

Mihir1003 commented 1 month ago

So the issue is happening because of the case in DevOpsGPT. If it is changed to devopsgpt then it should work but that might break your username. If you run it with a username which is all lowercase it should work!

akiradev0x commented 1 month ago

@businistry sorry, could you provide the actual path of the file? From the root of the directory? That would help me solve this.

akiradev0x commented 1 month ago

@businistry have you tried upgrading to the latest version?

I have been unable to replicate this. I have tried a case sensitive file path and it seems to work.

akiradev0x commented 2 weeks ago

@businistry just want to follow up and see if its working for you

ObjectJosh commented 4 days ago

Closing: Stale