GLBasic forum

Main forum => Bug Reports => Topic started by: Moru on 2008-Feb-24

Title: Not always recompiling after changes
Post by: Moru on 2008-Feb-24
GL Basic is not always recompiling after you have made small changes to the file, why is that? I remember we discussed it earlier but I can't seem to find the link, is this problem something that can be fixed?

The solution right now is to click the debug button twice to force it to recompile but when I'm tired I just keep trying to get my code working and I see no changes in the result :-)
Title: Not always recompiling after changes
Post by: AndyH on 2008-Feb-24
Yes, I notice that from time to time.  Had not happened to me for a while, but last night I made a small change and pressed F5, but it ran the previous version.  I edited the file again (add/delete random character) and it then compiled and ran my updated version.
Title: Not always recompiling after changes
Post by: Ian Price on 2008-Feb-24
This happens if you have multiple instances running (without knowing) sometimes. I mentioned this recently too.
Title: Not always recompiling after changes
Post by: Moru on 2008-Feb-24
No, it also happens if you don't have several instances running.
Title: Not always recompiling after changes
Post by: bigsofty on 2008-Feb-24
I must be lucky, not had this problem?
Title: Not always recompiling after changes
Post by: Ian Price on 2008-Feb-24
Quote from: MoruNo, it also happens if you don't have several instances running.
I did say "sometimes".
Title: Not always recompiling after changes
Post by: Kitty Hello on 2008-Feb-25
VEry strange. The compiler is trying to see if the pre-compiled input file has changed with a CRC32 code. If it did, you have to recompile.
Maybe the crc code was the same after changing the file? Hmm.. I'd better implement MD5 then.
Title: Not always recompiling after changes
Post by: Moru on 2008-Feb-25
Or just check the file date and length like in the old days? :-) Usually it takes more than one second to compile so the date should have changed even if you didn't change the length of the file :-)