vscode: gitignore bug (debug.log)

  • VSCode Version:Version: 1.49.0-insider (system setup)
  • OS Version: Windows_NT x64 10.0.19041

Steps to Reproduce:

Not sure what I did/do to get this debug.log file but I keep getting it. Tried searching for the error code which is: [0821/234950.089:ERROR:registration_protocol_win.cc(103)] CreateFile: The system cannot find the file specified. (0x2) ` But couldn’t find what it meant online. Anyhow, so I included this debug.log file to my gitignore (.log [the gitignore file is in the parent folder.) and it worked the first time but when I close VSCode and reopen and work on the project I see the debug.log file in the source control tab. So, this time I edited the gitignore to a more specific targeting (Directory/.log) but nope.

I guess whenever I get more error logs and debug.log file gets updated, gitignore is somehow losing it’s target?

One other thing I noticed is that gitignore is ignoring other debug.log files in other folders except this Theme folder. The file structure is like this ~/folder/theme/themes The debug.log files from “folder”, “themes” and other debug.log file is getting ignored but not from the THEME folder which is weird since the “theme” folder is in between the main folder and the sub-folder of theme… Not sure if this is happening because other folders are not getting the debug errors and only the debug.log file from the Theme folder is? that’ I’m not sure since I don’t know what the error message means so I can’t reproduce the error to check this… Sorry… If you know what the code means please let me know and I’ll try to diagnose this further. Thank you.

Also, is there a way to disable it somewhere? So that this debug.log file doesn’t get created?

Does this issue occur when all extensions are disabled?: Yes

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 7
  • Comments: 16 (2 by maintainers)

Most upvoted comments

This has been fixed in latest stable 1.49.2, please update to it. Thanks!

Ref https://github.com/microsoft/vscode/issues/105191 for details.

Having the problem to. For me it began right after the recent windows update… If there is a connection… IDK.

i reinstalled vscode but still have this problem

Please file an issue with exact concise steps. Not a story. Thanks!

I git clone my repo and this file appears when i open the project in VS Code. VS Code is unable to Discard changes. I added it to .gitgnore then was able to delete it Very bizarre.

Hey @JBrLloyd to my memory this happened in normal and WSL mode. I’ve created a new bug report about this issue as requested and here’s the link: #105191.