It appears that Incredibuild seems to skip files that have been (very) recently modified, when it shouldn't be.
It seems to affect all Source files but not the Main Program file.
Please provide a way to reproduce it. I can not confirm this.
What I may have to do is zip up my project for you to muck around with.
The problem is back :(
It seems to be one file in the 18 source files that causes the problem (its called Game Routine.gbas and is in the middle of the files list). Even though the file may be modified, Incredibuild still skips it.
When I create a project with 18 files named 1 - 18 I get this after recompiling twice:
_______________________________________
*** Configuration: WIN32 ***
precompiling:
GPC - GLBasic Precompiler V.2009.085 - 3D, NET
Wordcount:4 commands
compiling:
IncrediBuild skips: TestIncredibuild.gbas, 1.gbas, 2.gbas, 3.gbas, 4.gbas, 5.gbas, 6.gbas, 7.gbas, 8.gbas, 9.gbas, 10.gbas, 11.gbas, 12.gbas,
linking:
success
Here I'm missing the files 13-18.gbas. Is this just the output cut down or is it failing something on the 13'th file? They are all empty except for the startingcomments at the moment.
I know this is an old thread, but I seem to be seeing similar issues.. it's giving me headaches when I don't realize that the bugfix I just implemented wasn't actually implemented.. (I keep thinking there's something else I missed or whatever)
I just did some more re-factoring of putting stuff in separate files and notice now that Incredibuild is more than happy to ignore the latest files I've been changing. I haven't noticed it in any specific file, just as I'm working it keeps cropping up and I just keep closing and re-opening the IDE to get it to actually build everything..
Yes, it has been happening a bit more recently for some reason...
Yeah I've been splitting certain related pieces of code into separate files as it's being finished, actually to try to take advantage of Incredibuild and just to keep things more organized. Now that I'm up to around 20ish source files in my project, it seems to happen like the majority of the time I build.
I thought I was losing my mind on this one, glad it is not just me.
if you can somehow make me reproduce this, I would really be glad.
So, when it's not working, try undo to to the last position where you compiled. Will it skip again? Send me both versions. It seems like the changed file has 2 different md5 hash codes, which should not be.
I might add a hidden option to output more details on this to track this bug once.
Are you working on a harddrive or a network drive?
Does it help to toggle the debug button off/on? That usually helps for me but I don't get this problem so often. Mabe because I toggle the debug button very often?
Toggling the debug button forces a complete compile. When it next happens, I'll send along my project
To twist things even more (as if that was needed) here it seems like the output window lists the file I've modified as skipped, but when executed it is clear that the code changes are there. So maybe it's just an output window problem (here at least)?
oh, that is a totally new idea to find the bug now.
Quote from: Ruidesco on 2011-Oct-27
To twist things even more (as if that was needed) here it seems like the output window lists the file I've modified as skipped, but when executed it is clear that the code changes are there. So maybe it's just an output window problem (here at least)?
Did you check the resulting C files in %temp%/glbasic ?
Ok I seem to have found a place in my project where making one change is being ignored over and over by Incredibuild, even after I re-start the IDE. (Granted re-starting it forces it to re-build properly once, but then if I go and un-do the change, incredibuild ignores it again)
Also, I am just working with code on my local drive.. not a shared/network drive. I'm almost always running in debug mode.
How should I send this to you Gernot?
I've had this problem for a long time.
It's gotten to the point where I almost always do a Full Complile (26 files!).
You could always create libraries for files that don't change (often), but I've been too lazy to look into this.
But, if this helps, for me, certain files are ALWAYS skipped, and others are ALWAYS picked up fine by Incredibuild.
This may or may not change if I add or reorganize files, but never noticed a pattern of why it likes certain files and not others.
Could it be files in sub-folders are ignored? (double checked my project and my sub-folder files seem to be the most affected).
I could send you my project too Gernot if you want (my game isn't fully functional right now, but compiles!).
Yeah actually I keep working across many files but now that you mention it it probably does always affect this one file.. I do have some files in a sub-directory but not this particular file..
Quote from: MrTAToad on 2011-Oct-27Did you check the resulting C files in %temp%/glbasic ?
No need to, it just happened again. Changed a key check, and while it stated the file to be skipped the new key check is the one that worked, so it didn't really skip it.
Well, this problem has been getting pretty annoying ever since my project crossed whatever file threshold it is that triggers this bug.. so I took a few minutes to create a sample project which consistently shows the behaviour. It's attached to this post. Basically it's 20 source files that have a sub that prints the file # to the screen. Notice after you build the project once, Incredibuild will always skip file "3.gbas" after, even if you make changes. I didn't bother testing each file but at least this is 1 case which should be enough to start with.
[attachment deleted by admin]
Ha, it'd be funny if the problem is because Incredibuild only sees the first 10 or so files! And all files after that are not checked!
I'm glad you narrowed down a project to replicate this bug! :good:
hehe yeah dunno what it is but it was definitely driving me nuts before I realized what it was.. lol.
Now I'm getting used to hitting "ALT->C->D" really quick before I hit "F5" :)
That's a very funny project. I change the text of sub3 but the printout does not change. If I change sub4 to sub7 the text changes. If I change the name of sub3 to sub3b, I get a compiler error. If I change it back to sub3, it compiles again but the text is still the old from the first compile. Very interesting, I hope Gernot can finally track this down with this great project!
OK. You might not find this funny, but I was almost PMP.
The compiled cpp files are numberd in hex -> 0123456789abcdef and then 10, 11 ...
The md5-hash tried to load the files in decimal numbering:
0123456789 then 10, 11..
So, all files above #11 are broken.
I've fixed it. But I did so many changes, that it might be hard to do an update. I will try though.
If the update goes wrong, please make a backup of your current compiler-directory. The Editor.exe should be fine.
Yay :) I'm glad I could help.. and I knew it had something to do with the number of files..! I only really noticed it recently ever since splitting my code into a whole bunch of files.
This is good news, I've wasted a bit too much time staring at my bugfixes wondering why they've had no effect, lol!
Quote from: Slydog on 2011-Oct-28
Ha, it'd be funny if the problem is because Incredibuild only sees the first 10 or so files! And all files after that are not checked!
I'm glad you narrowed down a project to replicate this bug! :good:
hahah looks like we owe Slydog a beer, he called it ;) :booze: