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

Installer not working under wezterm #868

Closed
amlanjlahkar opened this issue Feb 27, 2024 · 3 comments · Fixed by #869
Closed

Installer not working under wezterm #868

amlanjlahkar opened this issue Feb 27, 2024 · 3 comments · Fixed by #869
Labels
bug Something isn't working

Comments

@amlanjlahkar
Copy link

Error

Error: 
   0: Couldn't get terminal

Metadata

key value
version 0.17.0
os macos
arch aarch64

I've no prior experience with nix.
I wanted to give it a go for the first time but instead got this right after giving root privilege. The issue however doesn't occur when executed from within the default macOS terminal.

@cole-h cole-h added the bug Something isn't working label Feb 27, 2024
@cole-h
Copy link
Member

cole-h commented Feb 27, 2024

It sounds like you don't have wezterm's terminfo loaded. That message is coming from here:

let mut term =
term::terminfo::TerminfoTerminal::new(stdout).ok_or(eyre!("Couldn't get terminal"))?;

Could you try out #869 and see if that works for you? You should be able to try it out with:

curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix/pr/869 | sh -s -- install

@cole-h cole-h mentioned this issue Feb 27, 2024
6 tasks
@amlanjlahkar
Copy link
Author

amlanjlahkar commented Feb 28, 2024

I do have wezterm terminfo loaded but don't know why it's not being detected. I was using tmux previously but it didn't work even outside of tmux.
Using the fallback patch fixes the problem

@axelsimon
Copy link

axelsimon commented Apr 3, 2024

Ah ha, this happened to me using Alacritty.
Sadly, copying over the terminfo for Alacritty and importing that didn't solve it, but setting export TERM=xterm-color did.

Also tried using @cole-h's #869 and that appeared to work (at this point, Nix was already installed, so it told me to use sudo -i nix upgrade-nix instead, but it didn't crash complaining about not being able to get a terminal!).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants