cline icon indicating copy to clipboard operation
cline copied to clipboard

Updates to files deleting unchanged code.

Open Landstein opened this issue 1 year ago • 1 comments

Which API Provider are you using?

Anthropic

Which Model are you using?

Claude 3.5 Sonnet

What happened?

Often when I am updating a file. Instead of it just updating the methods in a class that needs to be changed. It deletes all the other code and returns only the methods that have been updated.

Steps to reproduce

1.Share a file 2. Explain changes that need to be made 3. When it suggests changes it shows all other code in the file being deleted. Keeping only the methods that are updated.

Relevant API REQUEST output

No response

Additional context

This is an amazing project. I have been using it the last few weeks daily. This is a relatively new issue.

Landstein avatar Oct 09 '24 17:10 Landstein

Please also see #470

jmartsch avatar Oct 09 '24 20:10 jmartsch

Please see this guide https://github.com/clinebot/cline/wiki/Troubleshooting-%E2%80%90-Cline-Deleting-Code-with-%22Rest-of-Code-Here%22-Comments

Anthropic will be releasing an update to Claude that should fix this issue soon.

saoudrizwan avatar Oct 11 '24 00:10 saoudrizwan