Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #325 - micbou:appveyor-empty-folder, r=Valloric
[READY] Fix error when removing temporary folder on AppVeyor So there is this new error that occurs occasionally on AppVeyor: ```sh WindowsError: [Error 145] The directory is not empty: 'c:\\users\\appveyor\\appdata\\local\\temp\\1\\ycm_build.***\\ycm\\tests' ``` It probably happens because the `ycm_core_tests` executable is still used by some process while the build folder is removed. I see three ways to fix this: - ignore the error; - ignore it but print a warning; - retry several times (`3` should be enough). I implemented the first approach because it is the simplest but I don't really like the idea of leaving (in rare cases) some files in the temporary folder (Windows does not automatically clean this folder). This is why the PR is marked as RFC. Ideally, we should implement the third approach. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/valloric/ycmd/325) <!-- Reviewable:end -->
- Loading branch information