Content-Length: 283571 | pFad | https://github.com/microsoft/vscode-python/issues/24151

E5 Bug: "Create Environment" does not create `.gitignore` · Issue #24151 · microsoft/vscode-python · GitHub
Skip to content

Bug: "Create Environment" does not create .gitignore #24151

Closed
@bersbersbers

Description

@bersbersbers

Behaviour

"Create Environment" does not create .gitignore file

Steps to reproduce:

  1. "Create Environment"
  2. Check .gitignore file

Diagnostic data

The problem was introduced in 462b9bf - someone dropped a not in one of the two add_gitignore implementations (the conda one is fine, the venv one is not):

image

Still in v2024.14.1:

def add_gitignore(name: str) -> None:
git_ignore = CWD / name / ".gitignore"
if git_ignore.is_file():
print("Creating:", os.fspath(git_ignore))
git_ignore.write_text("*")

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugtriage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/microsoft/vscode-python/issues/24151

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy