Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After cargo sweep, I can't build anymore #8

Closed
Boscop opened this issue Nov 22, 2018 · 1 comment
Closed

After cargo sweep, I can't build anymore #8

Boscop opened this issue Nov 22, 2018 · 1 comment

Comments

@Boscop
Copy link

Boscop commented Nov 22, 2018

I ran cargo sweep -t 5 to clean up my target folder but now the build fails with:

 = note: LINK : fatal error LNK1201: error writing to program database 'D:\projects\myproject\target\debug\deps\myproject-fc1c31bb36e24a5b.pdb'; check for insufficient disk space, invalid path, or insufficient privilege

I'm on Windows 8.1 btw.

The pdb file exists and is 87 MB large, the other files with that hash in the name are 218 files named myproject-fc1c31bb36e24a5b.<some-hash>.rcgu.o and 1 file named myproject-fc1c31bb36e24a5b.d.

I have 165 GB free space on that disk and it worked before I did cargo sweep.

How can I get it to build again without having to rebuild everything (which would take ages)?

@Boscop
Copy link
Author

Boscop commented Nov 22, 2018

Ah nvm, when I tried to delete the file, it said the file is open in procexp64.exe (Process Explorer), apparently because I opened myproject.exe's properties in it when it was running. After closing Process Explorer, I could build again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant