GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ensure context `__exit__` is called during shell completion by akhil-vempali · Pull Request #2767 · pallets/click

Conversation

@akhil-vempali

@akhil-vempali akhil-vempali commented Aug 21, 2024 •
edited by davidism
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

The necessary modifications will ensure that the context's __exit__ function is called during shell completion, addressing the issue of unclosed file options.

fixes #2644

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

benedikt-bartscher reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
akhil-vempali and others added 2 commits August 21, 2024 13:30
@akhil-vempali
[FIX] fixes pallets#2644 pallets#2644
e65efc3
@pre-commit-ci
[pre-commit.ci] auto fixes from pre-commit.com hooks
65232e5
for more information, see https://pre-commit.ci
@davidism davidism changed the title [FIX] fixes #2644 https://github.com/pallets/click/issues/2644 ensure context __exit__ is called during shell completion Aug 21, 2024
@AndreasBackx AndreasBackx mentioned this pull request Oct 26, 2024
v8.1.8 Release Plan #2793
Closed
10 tasks done
@AndreasBackx AndreasBackx added this to the 8.1.8 milestone Oct 26, 2024
@AndreasBackx

AndreasBackx commented Nov 2, 2024

Copy link
Copy Markdown
Collaborator

@akhil-vempali if you have some time available, we could hopefully get this into 8.2.0. If you do, could you make sure to:

  1. Fix the now broken tests.
  2. Add a test to prevent this from regressing.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@AndreasBackx AndreasBackx modified the milestones: 8.1.8, 8.2.0 Nov 2, 2024
This was referenced Nov 2, 2024
v8.2.0: Release Plan #2789
Closed
Close contexts created during shell completion #2644. #2800
Merged
@AndreasBackx

AndreasBackx commented Nov 3, 2024

Copy link
Copy Markdown
Collaborator

@akhil-vempali thank you for your work. I continued in #2800 and merged it. I added you as a co-author as you already did great work identifying where the issue was and almost fixed it as well. There was a confusion of context objects that I rectified and I added a test case so we can prevent a regression.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@AndreasBackx AndreasBackx closed this Nov 3, 2024
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 20, 2024
@kdeldycke kdeldycke added the parsing Parsing, parameters, commands, chaining, context label Aug 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

parsing Parsing, parameters, commands, chaining, context

Projects

None yet

Milestone

8.2.0

Development

Successfully merging this pull request may close these issues.

Click doesn't close file options during shell completion

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@akhil-vempali @AndreasBackx @kdeldycke
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.