joshpxyne / gpt-migrate

Easily migrate your codebase from one framework or language to another.
https://gpt-migrate.com
MIT License
6.87k stars 485 forks source link

Issue with GPT-3.5 for Python to PHP #30

Open curtisdelicata opened 1 year ago

curtisdelicata commented 1 year ago

Created Docker environment for php project in directory '/home/genealogia/projects/php-dna'. ✅ Identifying external dependencies for init.py... ✅ Identifying internal dependencies for init.py... ✅ Identifying external dependencies for io/reader.py... ✅ Identifying internal dependencies for io/reader.py... ✅ Identifying external dependencies for io/init.py... ✅ Identifying internal dependencies for io/init.py... ✅ Creating migration file for io/init.py... Created file_name.ext at /home/genealogia/projects/php-dna Traceback (most recent call last):

File "/home/genealogia/projects/gpt-migrate/gpt_migrate/main.py", line 126, in app()

File "/home/genealogia/projects/gpt-migrate/gpt_migrate/main.py", line 99, in main migrate(sourceentry, globals)

File "/home/genealogia/projects/gpt-migrate/gpt_migrate/main.py", line 96, in migrate migrate(dependency, globals)

File "/home/genealogia/projects/gpt-migrate/gpt_migrate/main.py", line 97, in migrate write_migration(sourcefile, external_deps_list, globals)

File "/home/genealogia/projects/gpt-migrate/gpt_migrate/steps/migrate.py", line 69, in write_migration llm_write_file(prompt,

File "/home/genealogia/projects/gpt-migrate/gpt_migrate/utils.py", line 51, in llm_write_file file_name,language,file_content = globals.ai.write_code(prompt)[0]

IndexError: list index out of range