After getting the below message in Rovo Dev, the file is truncated on disk (size 0):
```Error executing tool expand_code_chunks: Start line (1460) must be less than the length of the file (1).```
In this particular case it's a JS file, but I think it happened for other file types (I don't think it matters, though).
Hi @Lee Lo and welcome to the community —this is a known bug where expand_code_chunks
miscalculates file length and writes an empty file if line references are off. Avoid using it on large or unsaved files. Always back up before running. If you don't mind, report the case to Atlassian Support with file type and line count.
For more information check out the Dev Cli Beta community https://community.atlassian.com/forums/Rovo-for-Software-Teams-Beta/Introducing-Rovo-Dev-CLI-AI-Powered-Development-in-your-terminal/ba-p/3043623
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.