laurent.orseau
2022-3-12 12:52:23

Background check syntax in DrRacket sometimes stalls and doesn’t recover. One solution is to restart DrRacket, which I’d rather avoid. Has anyone found another workaround?


laurent.orseau
2022-3-12 12:53:10

Background expansion stays purple and never goes green, even though the program compiles. Running check-syntax manually works, but takes too long as it’s not in the background


sorawee
2022-3-12 12:54:10

Can you provide the program, or some minimal example?


laurent.orseau
2022-3-12 12:54:29

Not really, this happens randomly, after a long time


sorawee
2022-3-12 12:54:35

But one quick workaround is to just disable the background expansion :confused:


laurent.orseau
2022-3-12 12:54:42

Also, disabling and restarting background expansion doesn’t work :slightly_smiling_face:


laurent.orseau
2022-3-12 12:56:49

Aha! Found it. You made me realize it’s actually not random. So I tried raco setup --avoid-main , disable + enable, and it works!


laurent.orseau
2022-3-12 12:58:05

So there must have been a dependency lib that wasn’t re-setup’ed and background expansion didn’t like it (although manual check-syntax is okay with it)


sorawee
2022-3-12 12:58:09

I don’t even know how my messages could have helped, but glad that it works now!


laurent.orseau
2022-3-12 12:58:46

I’m sure there’s a rearrangement of the letters you typed that gives away the solution :wink:


laurent.orseau
2022-3-12 13:00:06

I was dearly missing these green arrows :relieved: