Caveat: I know nothing of shaders.
Occasionally if I load up a map (always a custom tileset) I get messages about not being able to compile shaders. I can usually fix this by doing a build or exiting the toolset and reentering.
How do I go about fixing this for good?
Errors should be in the log file. Fix them if you’ve added your own. The base game ones should always compile.