Leo doesn't write dirty @clean nodes

107 views
Skip to first unread message

p.os...@datec.at

unread,
Mar 17, 2026, 2:54:27 AMMar 17
to leo-editor
I'd like to use Leo to maintain 2 projects, that share some code. My idea was to have C-files with a node for code concerning the one file (e.g. file_1.c XOR file_2.c) and a clone node for common  code. Now, when I change code in file_2.c in an IDE being the common part, Leo reads file_2.c and writes them to disk on "Save" as expected. I'd expected, too, that file_1.c is written as well, but isn't. 

How do you overcome that? Or should I follow a different strategy?

BTW: I use @clean-nodes because they work w/o sentinels.

Cheers
Paul

Félix

unread,
Mar 18, 2026, 11:32:01 AMMar 18
to leo-editor
Thanks for your report. I'll look into this. 

Edward K. Ream

unread,
Mar 22, 2026, 5:29:38 PMMar 22
to leo-e...@googlegroups.com
On Wed, Mar 18, 2026 at 10:32 AM Félix <felix...@gmail.com> wrote:

Many thanks for this report. I do see the (subtle) behavior you report. 

I have just created #4565 for this.

Edward

p.os...@datec.at

unread,
Apr 24, 2026, 10:54:01 AMApr 24
to leo-editor
Installed 6.8.8 minutes ago and it works. Many thanks. A detail though: The log window reads when saving:

wrote: file_1.txt
unchanged: file_2.txt
finished: 1 unchanged file

As both files were written, I think it should read:

wrote: file_1.txt
wrote: file_2.txt
finished: 1 unchanged file

Paul

Edward K. Ream

unread,
May 5, 2026, 1:41:21 PMMay 5
to leo-e...@googlegroups.com
On Fri, Apr 24, 2026 at 9:54 AM p.os...@datec.at <p.os...@datec.at> wrote:
Installed 6.8.8 minutes ago and it works. Many thanks. A detail though: The log window reads when saving:

wrote: file_1.txt
unchanged: file_2.txt
finished: 1 unchanged file

As both files were written, I think it should read:

wrote: file_1.txt
wrote: file_2.txt
finished: 1 unchanged file

Paul

Thanks, Paul. I've opened #4665 for this issue.

Edward

Edward K. Ream

unread,
May 8, 2026, 8:23:22 AM (13 days ago) May 8
to leo-editor


On Tuesday, May 5, 2026 at 12:41:21 PM UTC-5 Edward K. Ream wrote:
On Fri, Apr 24, 2026 at 9:54 AM Paul wrote:
Installed 6.8.8 minutes ago and it works. Many thanks. A detail though: The log window reads when saving:

wrote: file_1.txt
unchanged: file_2.txt
finished: 1 unchanged file

As both files were written, I think it should read:

wrote: file_1.txt
wrote: file_2.txt
finished: 1 unchanged file

Hmm. I've just closed   #4665. Everything works as expected for me.

I created two files, file1.txt and file2.txt.

@clean c:/test/file1.txt
@clean c:/test/file2.txt

The body text of each root node was just `@others`.

Each file contains a single cloned child node.

Reports were as expected in all test scenarios.

Edward
Reply all
Reply to author
Forward
0 new messages