|
|
Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » Edited file sometimes reverts changes when running build
Edited file sometimes reverts changes when running build [message #52449] |
Wed, 02 October 2019 11:07  |
jjacksonRIAB
Messages: 227 Registered: June 2011
|
Experienced Member |
|
|
Quite a few times I've edited a file, changed some constants and then when I pressed build it undid my changes right before my eyes. Another problem I've had in TheIDE is when changing to another tab my scrollbar position won't be recalled upon return so I have to place a caret to make sure I don't lose my place. It always seems to want to go to where the caret is instead of where I scrolled to.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Edited file sometimes reverts changes when running build [message #58303 is a reply to message #52455] |
Thu, 14 April 2022 05:35   |
jjacksonRIAB
Messages: 227 Registered: June 2011
|
Experienced Member |
|
|
mirek wrote on Wed, 02 October 2019 16:40I concur that this problems haunts me for years, but it is so rare (in my case) that I never got to catching the cause.
Now thinking about it, maybe the problem is that the file is locked for writing while being compiled?
Mirek
I don't know if this bit of information helps or not but when it this problem occurs it's also clearing the undo buffer so you can't go either forwards or backwards. Could it be related to when undo buffer is full and it's ejecting the oldest entries?
[Updated on: Thu, 14 April 2022 05:44] Report message to a moderator
|
|
|
Re: Edited file sometimes reverts changes when running build [message #58304 is a reply to message #58303] |
Thu, 14 April 2022 12:13   |
 |
mirek
Messages: 14255 Registered: November 2005
|
Ultimate Member |
|
|
jjacksonRIAB wrote on Thu, 14 April 2022 05:35mirek wrote on Wed, 02 October 2019 16:40I concur that this problems haunts me for years, but it is so rare (in my case) that I never got to catching the cause.
Now thinking about it, maybe the problem is that the file is locked for writing while being compiled?
Mirek
I don't know if this bit of information helps or not but when it this problem occurs it's also clearing the undo buffer so you can't go either forwards or backwards. Could it be related to when undo buffer is full and it's ejecting the oldest entries?
Well, clearing undo buffer is done when the file changes outside theide, that is actually a good thing (theide looses the track of chnages so cannot do undo). Maybe the problem is that this sometimes does not happen even if it should.
EDIT: Actually, I did not have this rare problem (I mean original one) for about a year (using theide for many hours each day) and I remember fixing some things around it, so maybe it is finally fixed.
[Updated on: Thu, 14 April 2022 12:15] Report message to a moderator
|
|
|
|
Re: Edited file sometimes reverts changes when running build [message #58307 is a reply to message #58304] |
Fri, 15 April 2022 03:10  |
jjacksonRIAB
Messages: 227 Registered: June 2011
|
Experienced Member |
|
|
Like Oblivion I still get it here too on Linux.
I just tested what you said Mirek. I called touch on a file that had been open for editing and the first few times it did not clear the undo buffer, then it started working consistently. I'll note that this is a file I had still open from last night.
I saved it, tested undo, it still worked, then I wrote some junk, touched it from outside the editor, undo still worked. Did it again, undo still worked. Then the third time I touched it and undo buffer was cleared and has worked correctly since then.
Out of curiosity I ran a touch script in a loop with a one second delay and tested it on a file in theide. theide was informing me the file had been changed and asking me if I wanted to reload. This was not occurring at all when I was using it before. It's as if at some point theide stops watching files for external modifications.
[Updated on: Fri, 15 April 2022 04:00] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat Apr 26 02:19:43 CEST 2025
Total time taken to generate the page: 0.00721 seconds
|
|
|