Lazarus file change tool very very bad lazarus / 13-General ---------------------------------------------------------------------- anna · 2015-07-29 09:00 http://bugs.freepascal.org/view.php?id=28444 How to turn OFF ??? ---------------------------------------------------------------------- lazjump · 2015-07-29 12:21 (This is not a direct answer for your question) I once had similar problem when running Win XP SP3 in VirtualBox VM, and working with files in a shared folder (shared by the host system). In my case, I think it was not Lazarus' fault because it happened with Delphi 7 too. ---------------------------------------------------------------------- eny · 2015-07-29 12:36 Quote from: anna on July 29, 2015, 11:00:59 amHow to turn OFF ???On Windows 8 (and possibly earlier versions) execute the command: Code: [Select]shutdown /s /t 0 ---------------------------------------------------------------------- anna · 2015-07-29 16:15 Quote from: eny on July 29, 2015, 02:36:57 pmQuote from: anna on July 29, 2015, 11:00:59 amHow to turn OFF ???On Windows 8 (and possibly earlier versions) execute the command: Code: [Select]shutdown /s /t 0 Are you joking? The question is "How to turn off stupid Lazarus' file changing detection?" Now this stupid detection is based on modification time of files. This MUST BE BASED on CRC32!!! Remember! ---------------------------------------------------------------------- Bart · 2015-07-29 16:18 Why do you insist on using offending words towards the developers, each and every time you report something here? It does not encourage anyone of us to help you. Bart ---------------------------------------------------------------------- skalogryz · 2015-07-29 16:25 being rude and mean is the shortest part to a human's heart What anna is looking for is: Tools -> Options -> Environment -> Desktop -> "Check and Auto save files" Check for disk file changes via content rather than timestamp ---------------------------------------------------------------------- bylaardt · 2015-07-29 17:46 Do not care about this now! one day... after marriage, after several daughters, you can understand it. be happy and ignore this comments. ---------------------------------------------------------------------- skalogryz · 2015-07-29 17:49 bylaardt, thank you for not using more offense. ---------------------------------------------------------------------- anna · 2015-07-29 19:03 Quote from: Bart on July 29, 2015, 06:18:46 pmWhy do you insist on using offending words towards the developers, each and every time you report something here? It does not encourage anyone of us to help you. Bart And is joking  a normal manner of speaking? You jokes are offensive. Just do not joke and all my messages will be polite. "Stupid" is literary expression , so no rudeness presents at all. If Lazarus has useless features , I will  call things by their proper names . ---------------------------------------------------------------------- anna · 2015-07-29 19:04 Quote from: skalogryz on July 29, 2015, 06:25:27 pmbeing rude and mean is the shortest part to a human's heart What anna is looking for is: Tools -> Options -> Environment -> Desktop -> "Check and Auto save files" Check for disk file changes via content rather than timestamp Enabling this checkbox does nothing. I still get window when time is changed (see issue for steps to reproduce). How to disable this WONDERFUL* feature completely, not switch from one WONDERFUL to another WONDERFUL feature. ____ *I will use WONDERFUL instead stupid in this topic. ---------------------------------------------------------------------- skalogryz · 2015-07-29 19:20 Cannot confirm. Works as expected here (modify time stamp is ignored and the content is verified). BUT you can try to check "content changes" checkbox when the dialog shows up. Another problem that might be there, is that file gets updated, but with "non-printable" updates. For example, a line breaks #13#10 are being replaced with #10. The text doesn't "obviously" change, but file content does. ---------------------------------------------------------------------- skalogryz · 2015-07-29 19:21 what's causing your file modify time to be updated? never mind. I've read through the bug report. ---------------------------------------------------------------------- anna · 2015-07-29 19:58 Quote from: skalogryz on July 29, 2015, 09:20:49 pmCannot confirm. Video proof: https://ia601508.us.archive.org/33/items/150729225200/Scr een_Stream.avi With AV: https://ia601508.us.archive.org/33/items/150729225200/AV.avi ( https://archive.org/details/150729225200 ) ---------------------------------------------------------------------- skalogryz · 2015-07-29 20:26 Just keep the checkbox checked and add this code to Lazarus packager Code: [Select]Index: packager/packagesystem.pas =================================================================== --- packager/packagesystem.pas  (revision 48971) +++ packager/packagesystem.pas  (working copy) @@ -5007,6 +5007,10 @@        continue;      NewFilename:=APackage.Filename;      if FileExistsCached(APackage.Filename) then begin + +      if EnvironmentOptions.CheckDiskChangesWithLoading and (APackage.LPKSource<>nil) then +        APackage.LPKSource.MakeFileDateValid; +        if (APackage.LPKSource<>nil)        and (not APackage.LPKSource.FileNeedsUpdate) then          continue; C:\FPC_Laz\lazarus> Currently the checkbox is working for regular files (project files or files opened in the source editor). However, packages is not using the flag. The patch above would resolve the issue for you, but i'm not confident if that's the best way to resolve it long term. ---------------------------------------------------------------------- anna · 2015-07-30 03:36 Quote from: skalogryz on July 29, 2015, 10:26:24 pmJust keep the checkbox checked and add this code to Lazarus packager Code: [Select]Index: packager/packagesystem.pas =================================================================== --- packager/packagesystem.pas  (revision 48971) +++ packager/packagesystem.pas  (working copy) @@ -5007,6 +5007,10 @@        continue;      NewFilename:=APackage.Filename;      if FileExistsCached(APackage.Filename) then begin + +      if EnvironmentOptions.CheckDiskChangesWithLoading and (APackage.LPKSource<>nil) then +        APackage.LPKSource.MakeFileDateValid; +        if (APackage.LPKSource<>nil)        and (not APackage.LPKSource.FileNeedsUpdate) then          continue; C:\FPC_Laz\lazarus> Currently the checkbox is working for regular files (project files or files opened in the source editor). However, packages is not using the flag. The patch above would resolve the issue for you, but i'm not confident if that's the best way to resolve it long term. What is "Lazarus packager""? I don't know how to do that. And take notice of that I do not use thunk and svn. I use ready made installers. After breaking autoupdates of snapshots, release is only way to get Lazarus for me. ---------------------------------------------------------------------- skalogryz · 2015-07-30 12:16 Quote from: anna on July 30, 2015, 05:36:42 amWhat is "Lazarus packager""? I don't know how to do that. And take notice of that I do not use thunk and svn. I use ready made installers. After breaking autoupdates of snapshots, release is only way to get Lazarus for me. Packager a special is built-in lazarus component. Sources for it could be found lazarus directory itself. You can still use the patch with installers and/or do the change manually, since the component rarely changes. This is what you need to do. 1. open the file "packagesystem.pas", which is located at "C:\lazarus\packager\packagesystem.pas" (replace "C:\lazarus" with your lazarus installation path). 2. in the file find the method TLazPackageGraph.GetPackagesChangedOnDisk 3. in this method find the line    if FileExistsCached(APackage.Filename) then begin 4. add the additional lines as shown in the patch (marked with "+", but get rid of these plus characters in the beggining of the file) 5. save the file 6. rebuild lazarus.