Unsolved Qt creator file errors
-
Since a few days ago, I get "file error" message boxes from Qt creator several times a day. In all those cases, I can save the file without any trouble immediately afterwards, so it seems as if the file system just is temporarily busy, but Creator has not patience to wait for it. I do have compile jobs running on the same folders using other tools, so a file may temporarily be locked.
Is there any way to make Creator a bit more relaxed about this, or to further diagnose the problem? Popping up a message box is truly annoying, and would only be warranted if there really was a problem saving files.
-
Hi @Asperamanca,
can you check if this could be https://bugreports.qt.io/browse/QTCREATORBUG-15449 ?
-
@aha_1980
Probably not, as I have been using the clang code model for some months by now, and the error started popping up last week. But I'll look into that. -
- please provide more information about your platform, version etc.
- are your projects on a network drive?
-
- The files are on a local SSD drive
- Platform: Windows 7 x64
- Creator version: 4.7.0 (through Maintenance tool), but I think I noticed the problem for a brief time with my previous 4.6.1 version before updating
- The error happens both on manual saving and on autosave.
I will provide the full text of the error message - too bad I didn't provide it immediately. But it's bound to come up within the next few hours, based on previous experience.
-
@Asperamanca
but the errors are for your .cpp/.h files and not
some creator files ? -
So far, I got them for .h, .cpp, .autosave, .pro, .pro.user
-
Which Anti-Virus are you using? Some file errors are related to AV, e.g. https://bugreports.qt.io/browse/QTCREATORBUG-7668
-
@aha_1980 said in Qt creator file errors:
Which Anti-Virus are you using? Some file errors are related to AV, e.g. https://bugreports.qt.io/browse/QTCREATORBUG-7668
I'm using Microsoft Security Essentials. However, the folders Creator is writing to are excluded from real-time protection.
-
Ok, here's is the full error message, as posted in a message box:
"Error while saving file: Cannot write file <Absolute file path>:
Unable to remove the file to be replaced"In this particular case a .cpp file when I manually tried to save it.
File is still marked as unsaved.
On second try, saving works.