Comment on When something that was working, suddenly doesn't work when demoing to othersparentComments−marcosdumay2yThere's the alternative:* The program works flawlessly* Somebody finds a bug on the code that is executed in a test* The relevant test now fails consistentlyBoth are probably because you changed something on the environment when you looked at the code.−omoikane2yAnother common cause is that the code you were looking at wasn't actually the code you were running. Between "I added this line and then I removed this same line, and now it works", the executable might have been recompiled.−bobthepanda2yhot reloading can cause weird behaviors like this in particular
Comments
There's the alternative:
* The program works flawlessly
* Somebody finds a bug on the code that is executed in a test
* The relevant test now fails consistently
Both are probably because you changed something on the environment when you looked at the code.
Another common cause is that the code you were looking at wasn't actually the code you were running. Between "I added this line and then I removed this same line, and now it works", the executable might have been recompiled.
hot reloading can cause weird behaviors like this in particular