Closed na-an closed 2 years ago
Could it be a disk issue? Maybe check the lost+found
directory.
The issue was a temp file string pointer that in some cases ended up pointing to memory that was deleted/invalid, so if that location in memory happened to be filled with a string for an existing file (that was writable), then that file could have been emptied. In most cases, the memory was filled with "garbage" data.
The issue was a temp file string pointer that in some cases ended up pointing to memory that was deleted/invalid, so if that location in memory happened to be filled with a string for an existing file (that was writable), then that file could have been emptied. In most cases, the memory was filled with "garbage" data.
Wow, that sounds problematic!
FINALLY! I thought my hard drive was failing. This issue is exactly what I exprenced last week! I've lost half a day of uncommited code being worked on because of this bug. Many headers from my cross compiler got wiped out to 0 byte. I never consented to get pre-release of my exentions, but my settings.json
had a C_Cpp.updateChannel
set to Insider
and I am certain that I didn't do that. Not sure how it happened.
Issue confirmed! It still keeps generating me a number of alien (invalid encoding) files.
@rangsimanketkaew We shipped an update with a fix 12 days ago. What version (of the C/C++ extension) are you using? You should probably be using 1.9.7 (or 1.9.6, which is identical, but 1.9.5 a fix too). We haven't received any reports yet of invalid or erased files with those versions. If you repro the issue without the C/C++ enabled, then it's a different issue.
I opened issue #145676 mentioned above. I am using C/C++ extension version 1.9.7 and I can't report any new rogue files being created but has anyone found a way of deleting the ones created earlier? I posted the below in #145676.
If you look at the screenshot in my opening post you'll see there's an option to 'Create File' which I only just noticed myself. Today I tried this option for one of the offending files, added content to it, saved it and then tried deleting it. The deletion seemed to go smoothly (i.e.. no error message) but the filename just immediately pops back into place in vs code explorer and, when clicking on it, I'm back to 'File does not exist' square one. Even tried renaming it 'rubbish' after saving it and, although 'rubbish' disappears after deletion the original gobbleydook name returns in explorer.
I opened issue #145676 mentioned above. I am using C/C++ extension version 1.9.7 and I can't report any new rogue files being created but has anyone found a way of deleting the ones created earlier? I posted the below in #145676.
If you look at the screenshot in my opening post you'll see there's an option to 'Create File' which I only just noticed myself. Today I tried this option for one of the offending files, added content to it, saved it and then tried deleting it. The deletion seemed to go smoothly (i.e.. no error message) but the filename just immediately pops back into place in vs code explorer and, when clicking on it, I'm back to 'File does not exist' square one. Even tried renaming it 'rubbish' after saving it and, although 'rubbish' disappears after deletion the original gobbleydook name returns in explorer.
What if you delete them by inode number?
What if you delete them by inode number?
WOW. I had to look that up and then delete each one individually but it worked. I feel cleansed now. Thanks hello-smile6.
Does this issue occur when all extensions are disabled?: Yes/No