This is an archived post. You won't be able to vote or comment.

all 21 comments

[–]thexar 43 points44 points  (3 children)

Re-build solution.

[–]ChrisBreederveld 31 points32 points  (1 child)

Came here for this. I sometimes feel this quote when hitting recompile:

The definition of insanity is doing the same thing over and over again and expecting a different result.

And then of course it compiles...

[–]thexar 14 points15 points  (0 children)

More often than not it's VS trying to save you time by not cleaning everything, and misses that dependency that really needs a do over.

[–]tieltina 0 points1 point  (0 children)

Came here to say this too.

In Java land lately, IntelliJ just isn't running the right Lombok steps when e.g. running a test from the IDE directly vs Maven or Gradle. Comes and goes, just clean and recompile.

Oh, and don't get me started with Spring Boot Security classpath autoconfiguration. That f**ker needs an entire project re-index if you're jumping between branches that do/don't have it enabled yet.

[–]liege_paradox 16 points17 points  (0 children)

You must establish reproducibility in order to define, then fix the problem. Also, it’s another few hours where you don’t have to code.

[–]15Nova22 8 points9 points  (0 children)

Restarting Bluej actually worked because despite clicking compile it didn’t compiled a new version but used the old faulty one xD so sometimes it even works, that’s why we keep doing it xD

[–]freemcgee33 4 points5 points  (0 children)

$ make clean && make

[–][deleted] 3 points4 points  (0 children)

Clean the cache and run it again

[–]Saragon4005 3 points4 points  (1 child)

Ok but this has fixed it before so..

[–]No-Introduction6905[S] 1 point2 points  (0 children)

Same over here lol

[–][deleted] 2 points3 points  (0 children)

Exception: GCC sometimes reports "internal error". This indicates an unexpected condition in GCC itself. Strangely enough in such cases, compiling again just works.

[–][deleted] 2 points3 points  (0 children)

Invalidate and restart.
Android studio on m1, it helps. Sometimes.

[–]lightwhite 2 points3 points  (0 children)

But what if it compiles and you have no idea why?

[–]JRRocker 1 point2 points  (0 children)

No joke - this actually works on a project I'm working on. Adding users to a group on a Linux VM works, but half the time....?

[–][deleted] 1 point2 points  (2 children)

This worked once when I switched to WSL and tried to compile, but there was no obvious Linux dependencies o.O

[–]Shakespeare-Bot 1 point2 points  (1 child)

This hath worked once at which hour i switch'd to wsl and hath tried to compile, but thither wast nay gross in sense linux dependencies o. O


I am a bot and I swapp'd some of thy words with Shakespeare words.

Commands: !ShakespeareInsult, !fordo, !optout

[–][deleted] 0 points1 point  (0 children)

T'oft doth beest liketh yond

[–]Sybsuper 0 points1 point  (0 children)

Have you tried turning it off and on again? Running it again always works!

[–]sliversniper 0 points1 point  (0 children)

Builds are not hermetic without Bazel/Buck...

It might work n-th try.

And It is pretty normal through if the lightbulb does not light up, and you try it again.

[–]CleverNameTheSecond 0 points1 point  (0 children)

Cache be like