The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Tool expand_code_chunks mistakenly truncates file!

Lee Lo
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

TAGS
AUG Leaders

Atlassian Community Events