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

Support shell detection in helper mode #704

Merged
merged 8 commits into from
Aug 24, 2022
Merged

Conversation

pfw
Copy link
Contributor

@pfw pfw commented Aug 24, 2022

Description

Shell detection in for command completion installation goes through a few hoops to determine the correct shell. If it can't, in this case due to double forking and detaching in the background of the helper if will fail.

Additionally shellingham.posix was not being picked up by the pyinstaller build.

Dump traceback for unhandled errors when running under helper

Related links:

https://github.com/sarugaku/shellingham#notes-for-application-developers

Checklist:

  • Have you reviewed your own change?
  • Have you included test(s)?
  • Have you updated the changelog?

- ensure shellingham.posix is included in packages
- dump traceback for unhandled errors when running under helper
kart/completion.py Outdated Show resolved Hide resolved
kart/helper.py Outdated Show resolved Hide resolved
kart/helper.py Outdated Show resolved Hide resolved
kart.spec Show resolved Hide resolved
- remove debug
- print traceback to stderr
- guard against KeyError in default shell detection
@pfw
Copy link
Contributor Author

pfw commented Aug 24, 2022

Updating for merge of tab completion install being its own command.

@rcoup rcoup merged commit 2847b00 into master Aug 24, 2022
@rcoup rcoup deleted the helper-support-shell-detection branch August 24, 2022 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants