Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Tool expand_code_chunks mistakenly truncates file!

Lee Lo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 9, 2025

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).

1 answer

1 accepted

0 votes
Answer accepted
Dr Valeri Colon _Connect Centric_
Community Champion
July 14, 2025

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events