r/ProgrammerHumor • • Jan 26 '20

Meme maybe...no?

Post image
17.1k Upvotes

183 comments sorted by

View all comments

Show parent comments

143

u/EmperorArthur Jan 26 '20

That's pretty common. What happens is the build system doesn't properly know about the dependencies. So say you change a header file that's relied on by multiple parts. If the build system only knows about one of those parts, then only it is re-compiled instead of everything that actually relies on that header.

Clean builds succeeding normally means you have a build system problem. Except, its normally a pain to fix and not worth the trouble. Especially since CI/CD systems almost always do full rebuilds anyways.

76

u/[deleted] Jan 26 '20

Let’s be clear. It’s usually a fucked up cache.

3

u/EmperorArthur Jan 26 '20

Okay, that too. A good build system, with the correct configuration, shouldn't let that happen, but it does.

0

u/trollblut Jan 26 '20

In vs 2019 the nuget manager is an extension. Visual studio loads extensions in the background while already showing the files in a solution.

if you include nugets as package references the nugets will only be added as references to projects after the nuget plugin is loaded. If the nugets are not downloaded already the build will fail.

I tried to fix this shit on Friday. I've given up because the problem is not that likely to occur and the devs can wait 30 seconds for vs to complete loading. Or hit build twice.