Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » Possible bug with symlinks on linux ?
Re: Possible bug with symlinks on linux ? [message #35175 is a reply to message #35101] Thu, 19 January 2012 08:46 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14257
Registered: November 2005
Ultimate Member
mdelfede wrote on Wed, 11 January 2012 08:07

TheIde opens correctly symlinks on Linux; when saving them it overwrites the symlink with the saved file instead of working on the linked one.

So, if I have this scenario :

somedir/aFile.cxx

and in another folder
anotherdir/aFile.cxx    where aFile.cxx is a symlink to former one


upon saving, the 'anoherdir/aFile.cxx' link is replaced with a standard file 'aFile.cxx'. I guess it should instead update the original (linked) file.....

The correct solution would be to truncate the file to 0 length bytes and then overwrite it, instead of (what I think happens...) deleting it and then recreating.

Max



The problem is that if there is a crash (e.g. power shutdown), file gets lost.

theide now saves files in this way: First, it saves the file, adding ".$tmp" to the filename. Then, only if save is successful, deleted the file and renames saved file.

I guess that what we really need is to create symlink for ".$tmp"....

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Bug: Searching finds the end of the line instead of in text
Next Topic: Bug when viewing log file
Goto Forum:
  


Current Time: Sat May 10 14:01:43 CEST 2025

Total time taken to generate the page: 0.01025 seconds