Vscode: gitignore bug (debug.log)

Created on 21 Aug 2020  路  16Comments  路  Source: microsoft/vscode




  • 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

Most helpful comment

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.

All 16 comments

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

Okay. Will do.

Hey, this started occurring for me on 1.49.0-insider too. Seems to be adding [0827/160710.691:ERROR:registration_protocol_win.cc(103)] CreateFile: The system cannot find the file specified. (0x2) to the debug.log file whenever any system-level functionality is being used, such as language server API usage (JSON, dockerfile, ...), even using the integrated terminal, any commands entered to the terminal write to console the above-mentioned error.

Out of curiosity @hiredtocode, does it occur when you have a vscode instance open in windows whilst having a vscode window opened with WSL?

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.

I solved this problem by uninstalling and installing vs code

@Joandysson reinstalling vscode also resolved the issue for me!

i reinstalled vscode but still have this problem

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

Unfortunately, recently started to get the same issue. I am afraid I don't have the exact steps to reproduce the issue.

Also experiencing this issue.

The log file appears in whatever folder I'm currently working in. Multiple log files appearing when working across the project. More appear as I try and delete the existing. Very annoying when trying to push changes back up to Git.

Facing the same problem.
any solution??

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.

Had the same issue, uninstalling and installing the latest version seems to have fixed the issue.

same iss

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.

thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mrkiley picture mrkiley  路  3Comments

ryan-wong picture ryan-wong  路  3Comments

lukehoban picture lukehoban  路  3Comments

philipgiuliani picture philipgiuliani  路  3Comments

VitorLuizC picture VitorLuizC  路  3Comments