Clear cache between version updates
I'm not entirely sure what the underlying issue is, but every time I upgrade Metalama versions and try to look at a Metalama diff, I see the popup indicating it's applying the aspects with the indefinite progress bar... and it never finishes. The only approach that's solved this is to open up the %Temp%\Metalama\ directory and delete the folder in CompileTime matching the name of the project (presumably some sort of cache).
Is it possible that when an upgrade is performed, Metalama could delete the old caches itself so I needn't upgrade, close all my VS instances, delete it and then finally get back to work?
4 Replies
Well, now I'm finding that while it shows a preview, the preview contents never actually change to reflect the latest changes, so it's in effect not working at all.
Normally all caches are version-specific so it should not happen.
What is not working exactly?
Initially it wouldn't show the preview at all (just perpetually indicating it was applying the aspect or whatever the infinite progress bar popup reads) - I just rebooted the machine and deleted the entire %Temp%\Metalama directory and it's finally working like it should again
Next time you can enable logging for the
RoslynCodeAnalysisService
and DevEnv
processes as explained in https://doc.metalama.net/conceptual/configuration/creating-logs, and send logs.