Repository navigation
Closed
Labels
A:external-commandsIssues related to external commands
Milestone
Description
Describe the bug
i have some nushell functions, see the context down below, using fzf which are not working anymore...
ghq list | fzfshows me the list of my local repositories but freezes and does not let me choose a repocfg lf | fzf(cfgandlfare aliases for mygitconfig. Here,cfg lfshows the lists of all my tracked config files) does not show anything and freezes before thefzfmenu itself- same with
cat ~/.bashrc | fzf, no output at all
when this occurs, i have to kill the terminal...
however, a standalone fzf, i.e. listing all the files in my HOME, works fine
all the commands above where working in 0.67.0 but stopped when i updated today to 0.68.1
cheers 😉 😋
How to reproduce
- install
nushell,ghqandfzf - run the commands
ghq list | fzfcat .bashrc | fzffzf
- note that the first two do not work but the third does
Expected behavior
i would like ghq list | fzf to allow me to seach through the list of local repositories
i would like cat ~/.bashrc | fzf not to freeze and show something
Screenshots
No response
Configuration
Does not work in
| key | value |
|---|---|
| version | 0.68.1 |
| branch | |
| commit_hash | e76b3d6 |
| build_os | linux-x86_64 |
| build_target | x86_64-unknown-linux-gnu |
| rust_version | rustc 1.63.0 (Arch Linux rust 1:1.63.0-1) |
| cargo_version | cargo 1.63.0 |
| pkg_version | 0.68.1 |
| build_time | 2022-09-10 09:52:14 +00:00 |
| build_rust_channel | release |
| features | database, dataframe, default, trash, which, zip |
| installed_plugins |
Did work in
| key | value |
|---|---|
| version | 0.67.0 |
| branch | |
| commit_hash | 2ef9cc1 |
| build_os | linux-x86_64 |
| build_target | x86_64-unknown-linux-gnu |
| rust_version | rustc 1.63.0 (Arch Linux rust 1:1.63.0-1) |
| cargo_version | cargo 1.63.0 |
| pkg_version | 0.67.0 |
| build_time | 2022-09-04 11:30:04 +02:00 |
| build_rust_channel | debug |
| features | database, dataframe, default, trash, which, zip |
| installed_plugins |
Additional context
the context for the commands above can be found in my nushell scripts:
ghq list | fzf
the repo function
cfg lf | fzf
the vcfg function
NOTES
i've changed empty? to is-empty but that did not solve the issue
Metadata
Metadata
Assignees
Labels
A:external-commandsIssues related to external commands
Activity
fdncred commentedon Sep 10, 2022
Most of this is too complicated to debug because I have no idea what
ghqis nor whatcfgis. However, I can getopen some file | fzfto work. So, this may have something to do with how externals are handled.amtoine commentedon Sep 10, 2022
ghqis agitrepositories manager ->ghq listgives a list of repository paths, one per line, e.g. i have two forks of somenushellrepos, and thuscfgis an alias for my dotfiles, namelyalias cfg = ^git --git-dir ($env.HOME | path join ".dotfiles") --work-tree $env.HOMEandgit lflists all the tracked files inside a repositoryin the end,
cfg lflists all my dotfiles!e.g. my
nushellconfigcfg lf | grep nushell .config/nushell/config.nu .config/nushell/env.nu .config/nushell/login.nu .config/nushell/scripts/aliases.nu .config/nushell/scripts/colors.nu .config/nushell/scripts/completions.nu .config/nushell/scripts/final.nu .config/nushell/scripts/functions.nu .config/nushell/scripts/hooks.nu .config/nushell/scripts/keybindings.nu .config/nushell/scripts/menus.nu .config/nushell/scripts/themes.nuthese are custom commands of course, hope my explainations make sense 😌
in the end,
ghq listandcfg lfonly produce lines of raw texts with one path per line 👍agree,
ghq,cfg, a.k.a.git, andcatdo not work, butopen ~/.bashrc | fzfdoes 😮dandavison commentedon Sep 10, 2022
Hi @amtoine, thanks for this, I suspect what you're encountering is this issue: #6496.
What OS are you using?
amtoine commentedon Sep 10, 2022
hey 😋
that's quite similar indeed 😮
i'am on vanilla ArchLinux!
fdncred commentedon Sep 10, 2022
Good catch @dandavison. I reproduced the behavior on my Mac m1 too. I'd love to solve this issue once and for all. I've seen it creep up too many times recently.
amtoine commentedon Sep 10, 2022
second time i have of an M1 chip / MacOs issue but on my asus / ArchLinux machine 😭
i might be cursed 🤷 😋
dandavison commentedon Sep 10, 2022
Yes, I can also reproduce a hang with
fzfon MacOS (also reported here: #6516).That is interesting that you're not on MacOS @amtoine!
Looks like #6496 is the place to discuss further.
amtoine commentedon Sep 10, 2022
@dandavison
it is indeed 😮
mm the original issue from #6496 with
yes | head -n 999 | with-env [LESS ""] { less }does not occur on my machinebut still the same with
ghq,catandfzf😕dandavison commentedon Sep 10, 2022
I wonder if we can simplify the report here: I suspect that it doesn't matter what you are piping into
fzf. Can you confirm that this shows the bug on your machine:amtoine commentedon Sep 10, 2022
it does work 🤔
but
cat README.md | lessand docat README.md | fzfnot 😕this is the
README.mdfrom this very repo 👍and, still from this repo source
yes | head -n 999 | git -c core.pager=less logworksyes | head -n 999 | with-env [LESS ""] { less }worksamtoine commentedon Sep 12, 2022
thanks a lot guys 🤩
i built
nushellwithcargo build --workspace --features=extra; cargo run --features=extraon latest revision, i.e.4490e97a1and all the issues above are gone 👍
👇 below is the new working version of
nushell👇