Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gitignore bug (debug.log) #105161

Closed
hiredtocode opened this issue Aug 21, 2020 · 16 comments
Closed

gitignore bug (debug.log) #105161

hiredtocode opened this issue Aug 21, 2020 · 16 comments

Comments

@hiredtocode
Copy link

  • 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

@isidorn
Copy link
Contributor

isidorn commented Aug 21, 2020

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

@isidorn isidorn closed this as completed Aug 21, 2020
@hiredtocode
Copy link
Author

Okay. Will do.

@JBrLloyd
Copy link

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?

@hiredtocode
Copy link
Author

hiredtocode commented Aug 27, 2020

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.

@joandysson
Copy link

I solved this problem by uninstalling and installing vs code

@koenverburg
Copy link

@joandysson reinstalling vscode also resolved the issue for me!

@metinkun
Copy link

i reinstalled vscode but still have this problem

@Christian-Rau
Copy link

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

@CoskunSunali
Copy link

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

@AndyOR-Apis
Copy link

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.

@YoussefZidan
Copy link

Facing the same problem.
any solution??

@JudyLipinski
Copy link

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.

@benborra
Copy link

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

@anyclub
Copy link

anyclub commented Sep 23, 2020

same iss

@deepak1556
Copy link
Contributor

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

Ref #105191 for details.

@DeepLinkCode
Copy link

thanks

@github-actions github-actions bot locked and limited conversation to collaborators Oct 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests