gpt-pilot icon indicating copy to clipboard operation
gpt-pilot copied to clipboard

[Bug]: Crashes when trying to set up a Docker environment

Open vinicius-tersi opened this issue 1 year ago • 1 comments

Version

VisualStudio Code extension

Operating System

Windows 10

What happened?

When gpt-pilot instructs for the creation of a Docker environment, the plan and code creation go fine, but when implementing the code changes, gpt-pilot crashes. I tried running two different projects, and the problem is the same. Please find below the error message:

Dev step 206

---------- GPT PILOT EXITING WITH ERROR ----------

Traceback (most recent call last):

File "c:\Users\Acer\Desktop\gpt-pilot\pilot\main.py", line 86, in project.start()

File "c:\Users\Acer\Desktop\gpt-pilot\pilot\helpers\Project.py", line 143, in start self.developer.start_coding()

File "c:\Users\Acer\Desktop\gpt-pilot\pilot\helpers\agents\Developer.py", line 70, in start_coding self.implement_task(i, dev_task)

File "c:\Users\Acer\Desktop\gpt-pilot\pilot\helpers\agents\Developer.py", line 117, in implement_task result = self.execute_task(convo_dev_task, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "c:\Users\Acer\Desktop\gpt-pilot\pilot\helpers\agents\Developer.py", line 409, in execute_task result = self.step_code_change(convo, task_description, step, i, test_after_code_changes) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "c:\Users\Acer\Desktop\gpt-pilot\pilot\helpers\agents\Developer.py", line 182, in step_code_change self.project.save_file(data)

File "c:\Users\Acer\Desktop\gpt-pilot\pilot\helpers\Project.py", line 268, in save_file update_file(full_path, data['content'], project=self)

File "c:\Users\Acer\Desktop\gpt-pilot\pilot\helpers\files.py", line 30, in update_file with open(path, file_mode, encoding=encoding) as file: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

FileNotFoundError: [Errno 2] No such file or directory: 'c:\Users\Acer\Desktop\gpt-pilot\workspace\teste-api-para-form-5\Dockerfile'

The problem seems to happen right after gpt-pilot creates the folder 'Dockerfile', and before creating the 'Dockerfile' file.

I hope the quote above helps solve this issue.

vinicius-tersi avatar Jan 31 '24 13:01 vinicius-tersi

does this issue still persist ?

techjeylabs avatar Apr 22 '24 14:04 techjeylabs