Ian Branch 127 Posted March 22, 2023 Hi Team, D11.3. This may be a setting I am not aware of and/or have forgotten about, I do not recall experiencing this in D11.2. Occasionally, after I have edit a Unit and saved it, exited, and come back to it later, I find my edits have not taken. It's as if the edits didn't happen. Yes, I am confident I have saved my work. Have I missed some setting?? Anybody else experience this?? Regards & TIA, Ian Share this post Link to post
programmerdelphi2k 237 Posted March 22, 2023 You give very little information and it's not possible to reproduce anything... and, RAD doesn't have an automatic "undo", so your problem shouldn't be that. Share this post Link to post
Ian Branch 127 Posted March 22, 2023 I'm not sure what other information would be relevant. I have no idea why I am occasionally seeing this. Share this post Link to post
programmerdelphi2k 237 Posted March 22, 2023 you say: open a unit, do the changes, save it, close IDE... when open again you unit was not changed? is this? Share this post Link to post
Ian Branch 127 Posted March 22, 2023 Not quite as rapidly as that. I usually work one project, then another, then another, then for some reason come back to the original an sometimes see the issue. I may or may not exit Delhi between projects. It is an annoyance. I am quite sure I have edited the same file two or three times making the same changes. 😞 Share this post Link to post
programmerdelphi2k 237 Posted March 22, 2023 will be? ... do the test NOW (.. let's try reproduce it) i'll wait here Share this post Link to post
Brian Evans 105 Posted March 22, 2023 By default the IDE keeps a history of saves. What is showing up there? (bottom right of edit: History. should list revision contexts including file, buffer and any history files). I know sometimes the same file accessed with different paths in different editors can end up with issues. Share this post Link to post
programmerdelphi2k 237 Posted March 22, 2023 (edited) same in History... does not happens automatically... needs user do it. (Revert action ) Edited March 22, 2023 by programmerdelphi2k Share this post Link to post
Ian Branch 127 Posted March 22, 2023 (edited) Mind reader. I am doing it right now. I opened a project that has a datamodue that is shared with other Projects. I opened the datamodule and a couple of the edits have reverted. I know I have made the edits here and saved at least twice previously. Aside from the couple of reverted edits above the rest are fine. Edited March 22, 2023 by Ian Branch Share this post Link to post
programmerdelphi2k 237 Posted March 22, 2023 RAD has a "Automatic Backup" in TOOL menu... but not "Restore Automatic..." Share this post Link to post
Ian Branch 127 Posted March 22, 2023 Yes I know. I am suspecting some buffering somewhere. Share this post Link to post
programmerdelphi2k 237 Posted March 22, 2023 I think you are getting confused among so many "shared units" between projects... Share this post Link to post
Ian Branch 127 Posted March 22, 2023 There is only one shared datamodule. Share this post Link to post
Ian Branch 127 Posted March 22, 2023 My purpose in raising this was to see if it was just my environment or if anybody else has experienced it. If nobody else has then it i something I have to deal with. Share this post Link to post
programmerdelphi2k 237 Posted March 22, 2023 hi @Ian Branch look at "Tools > Options > Environment Options >" Quote When AutoRecover is enabled, RAD Studio saves the recovery files in the hidden folder called _recovery, in the folder of your project. When the IDE closes unexpectedly, RAD Studio uses these saved files to recover the information when the IDE opens again. Share this post Link to post
Ian Branch 127 Posted March 22, 2023 Yup. Understood. Mine is set at 15 minutes. Share this post Link to post
programmerdelphi2k 237 Posted March 23, 2023 (edited) ok! I never use this!!! = uncheck always! 🙂 Edited March 23, 2023 by programmerdelphi2k 1 Share this post Link to post
Lajos Juhász 293 Posted March 23, 2023 I've noticed in the past that the IDE doesn't mark a file as changed when you only change the DFM and not the pas. Share this post Link to post
Roger Cigol 103 Posted March 23, 2023 I've seen this happen if you have two copies of a c++ *.h header file open in the IDE (in two separate windows). You edit one copy and then later save the other uneditied copy and overwrite the changes. Not sure if it's possible to have two copies of the same pascal + *.dfm unit open or not. Just something to check though.... I've also had a multiple projects issue where different projects refer to the same file. If you at some point move the directory in which the file is in and then only update some of the projects you accidentally introduce two copies of what should be only one file. This has happened to me a couple of times and caused great confusion ! Just another thing to check - make sure full path of the file is the same in all the projects..... Share this post Link to post
programmerdelphi2k 237 Posted March 23, 2023 many IDE open, you can have many files (copy) opened! Code Editor allow +1 window of same unit file opened share file can cause confusion of course! the human-memory can fail :))) Share this post Link to post
Pat Foley 51 Posted March 23, 2023 14 minutes ago, programmerdelphi2k said: many IDE open, you can have many files (copy) opened! Code Editor allow +1 window of same unit file opened share file can cause confusion of course! the human-memory can fail :))) When saving said open file in one IDE, the other open IDE when focused will show fileXXX timedate changed update? A Change in the DFM is called a in memory change as well! Doing that will synchronize or import the changes to that IDE. // A change in a custom component needs a little more to see changes in the dfm. Control-b will show the pathed files Share this post Link to post
FreeDelphiPascal 19 Posted December 1, 2023 I have somethimes a somehow similar error. The compiler won't see my source code changes in the IDE until I press Save. Share this post Link to post
FreeDelphiPascal 19 Posted December 1, 2023 I did some investigation and the background compilation was the culprit. Share this post Link to post
Ian Branch 127 Posted December 1, 2023 4 hours ago, FreeDelphiPascal said: I did some investigation and the background compilation was the culprit. I think I eventually discovered the same thing. Too long ago now... 😉 Share this post Link to post