Have you tried deleting and regenerating the intermediate folder? Make sure to close the project first.