Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Totoxa on December 20, 2015, 02:21:32 am

Title: Editing symlinked file in Code::Blocks
Post by: Totoxa on December 20, 2015, 02:21:32 am
Editing a file that is a symlink to other file removes the symlink and creates a regular file with the new content.
Is there a setting to disable this behaviour?(I searched)

I'm using Code::Blocks 13.12 on Debian testing (C::B installed from Debian repos).

Title: Re: Editing symlinked file in Code::Blocks
Post by: oBFusCATed on December 20, 2015, 02:28:08 pm
This happens because C::B tries to minimize the chance for data loss, so it uses a new-file+swap instead of writing directly over the old file.
Probably we should disable this mechanism when saving to symlinks or do something more clever.

Can you open an issue about this problem on sf.net?
Title: Re: Editing symlinked file in Code::Blocks
Post by: Totoxa on December 20, 2015, 05:34:17 pm
Ok, I will open an issue.