cquery icon indicating copy to clipboard operation
cquery copied to clipboard

cquery keeps file locks on Windows

Open Boddlnagg opened this issue 6 years ago • 2 comments

Recently I run into the situation quite often that I cannot save a changed file in VS Code, because the file is in use by another process. When I kill the cquery.exe process, I can save the file, so the offending process is obviously cquery. It even happens after the analysis is finished, so it seems to me that you are leaking file handles which are never closed.

By the way, Microsoft's C/C++ extension had similar issues: https://github.com/Microsoft/vscode-cpptools/issues/1040

Boddlnagg avatar Jul 05 '18 11:07 Boddlnagg

Ack, looks like procmon will be useful for figuring out why.

jacobdufault avatar Jul 06 '18 15:07 jacobdufault

I'm running into this often, but only with certain files. Any clues as to why this happens at all and why it seemingly happens to just the same few files? Thanks!

phogy avatar Jan 16 '20 09:01 phogy