Skip to content

[BUG] Rust panic and edit_file #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
SpeedySH opened this issue May 23, 2025 · 2 comments · Fixed by #14
Closed

[BUG] Rust panic and edit_file #12

SpeedySH opened this issue May 23, 2025 · 2 comments · Fixed by #14

Comments

@SpeedySH
Copy link

2025-05-23T15:28:46.984Z [filesystem] [info] Message from server: {"jsonrpc":"2.0","id":19,"error":{"code":-32603,"message":"Server does not support resources (required for resources/list)"}}
2025-05-23T15:28:46.997Z [filesystem] [info] Message from client: {"method":"prompts/list","params":{},"jsonrpc":"2.0","id":20}
2025-05-23T15:28:46.998Z [filesystem] [info] Message from server: {"jsonrpc":"2.0","id":20,"error":{"code":-32603,"message":"Server does not support prompts (required for prompts/list)"}}
2025-05-23T15:29:28.518Z [filesystem] [info] Message from client: {"method":"tools/call","params":{"name":"edit_file","arguments":{"path":"F:\Projects\rainypixel\decomposer\src\routes\(app)\tasks\[id]\decompose\+page.svelte","edits":[{"oldText":"\t\t\tconst categories = [\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Подготовка и исследование',\n\t\t\t\t\tkeywords: ['изуч', 'исследов', 'анализ', 'подготов', 'планиров'],\n\t\t\t\t\ttasks: [] as any[]\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Разработка',\n\t\t\t\t\tkeywords: ['разработ', 'создан', 'реализ', 'написан', 'implement'],\n\t\t\t\t\ttasks: [] as any[]\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Тестирование и доработка',\n\t\t\t\t\tkeywords: ['тест', 'провер', 'отлад', 'исправ', 'рефактор'],\n\t\t\t\t\ttasks: [] as any[]\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Документация и развертывание',\n\t\t\t\t\tkeywords: ['документ', 'деплой', 'разверт', 'настройк'],\n\t\t\t\t\ttasks: [] as any[]\n\t\t\t\t}\n\t\t\t];","newText":"\t\t\tconst categories = [\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Подготовка и исследование',\n\t\t\t\t\tdescription: 'Анализ требований и подготовка к разработке',\n\t\t\t\t\tkeywords: ['изуч', 'исследов', 'анализ', 'подготов', 'планиров'],\n\t\t\t\t\ttasks: [] as any[]\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Разработка',\n\t\t\t\t\tdescription: 'Основная разработка функциональности',\n\t\t\t\t\tkeywords: ['разработ', 'создан', 'реализ', 'написан', 'implement'],\n\t\t\t\t\ttasks: [] as any[]\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Тестирование и доработка',\n\t\t\t\t\tdescription: 'Проверка качества и исправление ошибок',\n\t\t\t\t\tkeywords: ['тест', 'провер', 'отлад', 'исправ', 'рефактор'],\n\t\t\t\t\ttasks: [] as any[]\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Документация и развертывание',\n\t\t\t\t\tdescription: 'Документирование и подготовка к релизу',\n\t\t\t\t\tkeywords: ['документ', 'деплой', 'разверт', 'настройк'],\n\t\t\t\t\ttasks: [] as any[]\n\t\t\t\t}\n\t\t\t];"}]}},"jsonrpc":"2.0","id":21}

thread 'main' panicked at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb\library\alloc\src\slice.rs:569:23:
capacity overflow
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

@hashemix
Copy link
Member

hashemix commented May 23, 2025

Hey @SpeedySH , thanks for reporting this. I am trying to replicate the error , and thanks for sharing the logs.

Would you mind sharing more details helping me to reproduce the issue?
Any of the followings will be helpful if you could provide:

1- what client did you use? Claude? Cursor?
2- could you share the decomposer\src\routes\(app)\tasks\[id]\decompose\+page.svelte file if it does not have proprietary work in it?

@SpeedySH
Copy link
Author

SpeedySH commented May 23, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants