prezto: ssh hosts suggestions doesn't work for Manjaro latest update

Description

ssh hosts suggestions doesn’t work for Manjaro latest update. Reverting zsh package to zsh-5.4.2-2-x86_64.pkg.tar.xz fixes this problem. I also have Antergos(also Arch derivative) system and this system also have the same issue with 5.5 version of zsh.

ssh _alternative:69: command not found: _ssh_hosts
_alternative:69: command not found: _ssh_hosts
_alternative:69: command not found: _ssh_hosts

screenshot_20180416_123647

Expected behavior

No errors and suggested hosts appear.

Actual behavior

Some errors printed and no suggested hosts.

Steps to Reproduce

  1. Type ssh and press Tab Tab for host suggestion

Versions

  • Prezto commit: 300102897a4710e1559e4435c686f794d126d3c3
  • ZSH version: 5.5
  • OS information: System: Host: DzirT-LT Kernel: 4.9.94-1-MANJARO x86_64 bits: 64 Desktop: KDE Plasma 5.12.4 Distro: Manjaro Linux 17.1.8 Hakoila

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 17 (2 by maintainers)

Most upvoted comments

I haven’t been able to reproduce this on a fresh arch install in a VM. Maybe it’s related to the completion cache? You can test this by removing ~/.zcompdump and opening a new shell.

@IevgenSobko It looks like we use 2 cache files (I only mentioned one of those before) .zcompdump and .zcompcache. If you remove both of those and start a new shell, do you still see the error?

Removing .zcompdump worked for me

Removing ~/.zcompcache solved the problem for me on archlinux with zsh 5.5.1. 👍

I’m having the same problem with my zsh setup on archlinux using zsh v5.5 with prezto. A friend of mine got the same problem with his arch and zsh v5.5 setup, but he’s using another zsh config framework (https://github.com/zimfw/zimfw I think is his base).

This commit in zsh removes a function with the same name as this error message spits out, and moves it to a separate file. (I’m not very familiar with the code base and/or the programming languages in use, so I’m not sure if this is a problem.)

(Sorry if this just adds noise, just adding something I found while trying to find out what’s wrong.)