Author Topic: Editing symlinked file in Code::Blocks  (Read 1176 times)

Offline Totoxa

  • Multiple posting newcomer
  • *
  • Posts: 31
Editing symlinked file in Code::Blocks
« 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).


Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12911
    • Travis build status
Re: Editing symlinked file in Code::Blocks
« Reply #1 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?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Totoxa

  • Multiple posting newcomer
  • *
  • Posts: 31
Re: Editing symlinked file in Code::Blocks
« Reply #2 on: December 20, 2015, 05:34:17 pm »
Ok, I will open an issue.