-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
crashes on start #3052
Comments
I found the issue. It's related the to TERM variable.
for the ssh connection k9s works again. But it should not panic like this with a "wrong" TERM setting. |
I'm experiencing the same with
|
@jasperjanuar @tcurdt Please update k9s to the latest version and try again, it's working for me with Ghostty 1.0.1 and k9s 0.32.7 on MacOS. If it works for you, please close this issue. Thanks! :) |
I am still seeing these crashes with
on nixOS. Only setting |
@tcurdt interesting, thank you! You're also on the latest Ghostty? I'll see if I can spin up a NixOS VM for debugging further. |
Experiencing the same as @tcurdt. Updated ghostty to 1.0.1 and k9s to 0.32.7. Only after setting |
That's odd. I'm using Ghostty 1.0.1 with zsh and this is my env printenv |grep TERM
TERM_PROGRAM=ghostty
TERM=xterm-ghostty
TERM_PROGRAM_VERSION=1.0.1
TERMINFO=/Applications/Ghostty.app/Contents/Resources/terminfo
COLORTERM=truecolor |
I think the crux is that the VM I'm trying to use ghostty on doesn't support it as a terminal - yet. There is a section on ghostty's documentation here: https://ghostty.org/docs/help/terminfo#configure-ssh-to-fall-back-to-a-known-terminfo-entry Most likely not an issue with If I run it locally on MacOS
it works just fine. |
I am also on ghosty 1.0.1.
If k9s crashes, it is an issue with k9s.
I am a little puzzled what you mean. I am connecting from macOS to a nixOS host. |
Before you do that work - do other linux distros work with |
This is the breaking env on nixOS:
|
According to the README you should set |
As I said, setting Even just an exit(1) with "Your TERM env var is FOO but k9s requires xterm-256color" would be OKish. |
Sorry, I forgot/didn't see.
I agree. I do wonder from where the problem comes as I've seen other CLIs "struggle" with the |
Set TERM variable if it is anything but xterm-256color, this prevents panics and crashes, and logs a warning as well. Updates derailed#3052
Describe the bug
I am starting k9s and get a crash with exit 1
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should not crash. (Used to work fine before)
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: