Error deploying: File is being used by another process

Since a couple of weeks everybody in the project gets an error while deploying locally. The process cannot access the file ...deployment/.../widgets.css because it is being used by another process. You could delete the file and rerun, but the problem recreates itzelf. Anybody an idea how to solve this permanently?
1 answers

I've encountered the same issue a couple of times. Cleaning the deployment directory worked, as this will delete the file as well. The problem did not occur afterwards.

Don't know if this a case of luck or not, but it's worth a try.