124
u/NatsukaFawn Dec 07 '20
You can't convince me that computers are still deterministic in 2020. There's definitely some stochastic fuckery afoot sometimes.
88
37
u/Accomplished_Hat_576 Dec 07 '20
I one didn't like 15 minutes trying to figure out what an error meant.
The error just didn't make sense.
Recompiled and it worked fine.
I touched the file so it would recompile but didn't change anything...
3
u/Magnus_Tesshu Dec 30 '20
wait fuck I can just run touch myprog.c if my makefile is jank and I can't be bothered to fix it
That makes a lot of sense actually, why am I stupid
3
26
u/OtherPlayers Dec 07 '20
I’ve actually encountered hellish projects before where the makefile order wasn’t properly configured, so it required building multiple times to successfully build (first time would compile some of the smaller bits successfully, but the larger ones would fail because the smaller ones weren’t done compiling so couldn’t be included).
Super annoying that you always had to build twice to actually compile, but nobody was paying us to fix deeper issues, so meh.
6
26
u/DaRealChipex Dec 07 '20
First compile: 4 errors Second compile: 6 errors
Ah yes, compiling unfinished code from github
21
u/StormTAG Dec 07 '20
Don't give me that look. You've totally decided to work after changing nothing plenty in the past. :|
17
u/Cla1n Dec 07 '20
Me: Restart the computer 😅
8
u/KrakenSticks Dec 07 '20
Honestly helped me a few times, after hours of trying to figure out what's wrong.
17
u/KillerRoomba13 Dec 07 '20
For me:
Compile
Get weird build error
Destroy some cache
Still get error
git clean the repo
Still err
Push the code and run it on cicd pipeline to verify
Err on the pipeline
Accept that I am at fault and proceed to find that missing semi-colon
3
2
u/edo-lag Dec 07 '20
In Rust, if you summon a cargo build but you didn't change anything, it won't do anything.
2
2
2
1
Dec 07 '20
Sometimes with android studio I have to uninstall the app and install it again or it won't save the changes, so this actually works
1
1
Dec 07 '20
I do this because my stupid ass doesn't read what the compilers has to say the first time...
1
1
u/KarmaKingRedditGod Dec 07 '20
make all
./exe
Segmentation fault.
make clean all
./exe
./exe returned a success1
1
1
u/rk06 Dec 20 '20
True story:
One time I (c# dev) went to check upon my friend (java dev). He was very busy troubleshooting a bug. It went like this:
IDE: compiler error.
Friend: fixes the compiler error
IDE: same compiler error.
Friend: ctrl x the entire file. saves the blank file. paste back original content. Run build again.
IDE: no error
Me: WTF!!
1
u/georgeec1 Dec 21 '20
This is me. Then after it doesn't work the the second time, I look through the code, fail to see blindingly obvious errors, and run it again with out changing anything. Then I ask random Internet strangers for help and they point it out immediately.
1
0
85
u/Overinterpretation Dec 07 '20 edited Dec 07 '20
Maybe I forgot to compile last time? (Which obviously wasn't the case)