zsh-users / antigen

The plugin manager for zsh.
http://antigen.sharats.me
MIT License
8k stars 279 forks source link

antigen.zsh:748: command not found: -antigen-env-setup in Ubuntu 18.04 LTS Bionic Beaver #659

Open sumit-sampang-rai opened 6 years ago

sumit-sampang-rai commented 6 years ago

Description

/usr/share/zsh-antigen/antigen.zsh:748: command not found: -antigen-env-setup Antigen: Unknown command: use Antigen: Unknown command: bundle Antigen: Unknown command: bundle Antigen: Unknown command: bundle Antigen: Unknown command: bundle Antigen: Unknown command: bundle Antigen: Unknown command: bundle Antigen: Unknown command: bundle Antigen: Unknown command: bundle Antigen: Unknown command: bundle Antigen: Unknown command: theme Antigen: Unknown command: apply

Software version

shvchk commented 6 years ago

I've created a bug report on Launchpad, too.

Strange enough, I don't have this bug on my Ubuntu 18.04 laptop, which was upgraded from 17.10 (bug was there for some time after upgrade IIRC, but not anymore), although sudo grep -r antigen-env-setup /bin /etc /home /lib /lib64 /sbin /usr does not bring anything. I have no idea why it works, maybe this function got cached somewhere. I only encounter this bug on freshly installed 18.04 systems.

Bo7a commented 6 years ago

Just confirming this is also not an issue on the machine where I have upgraded from 17 to 18. But on my newly installed 18.04 it has the same error.

ASalazarMX commented 6 years ago

The previous Ubuntu version is 1300+ lines longer and includes the missing -antigen-env-setup function. Could this be used as a temporal workaround?

Edit: using it, no negative consequences so far.

juherr commented 6 years ago

Ping @fladi, I think you are the one who can help here.

sumit-sampang-rai commented 6 years ago

zsh-antigen from Ubuntu repo seems to be missing most of the code. I use this command to install zsh-antigen.

sudo curl -o /usr/share/zsh-antigen/antigen.zsh -sL git.io/antigen

juherr commented 6 years ago

@srekcahrai In fact, the package comes from Debian repo and that's why I ping @fladi who maintains the package.

sumit-sampang-rai commented 6 years ago

@juherr The script in the package obtained from the Ubuntu repo is incomplete. If Debian repo is different than Ubuntu repo then I haven't explored it.

juherr commented 6 years ago

@srekcahrai Ubuntu repo => Debian repo => @fladi

juherr commented 6 years ago

Issue reported on the debian bugtracker too: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906757

fladi commented 6 years ago

I checked my package in the Debian repository and it looks fine. The package in the Ubuntu repository is indeed malformed, which is strange as Ubuntu usually only copies the packages from Debian SID.

Debian: 6103b2ec4c5b6665582c8790e4debdac38ab0a10 zsh-antigen_2.2.3-1_all.deb Ubuntu: a903249e77c5a09a0a3a68c3235b1dfa1713b4a1 zsh-antigen_2.2.3-1_all.deb

Those two files should be identical. I would guess that something went wrong in their build environment.

As I'm no Ubuntu developer I can only redirect this towards the Ubuntu bugtracker itself.

seagle0128 commented 6 years ago

Same issue here. Hope it can be fixed soon.

hozza commented 5 years ago

the Ubuntu package is still broken by the looks of it

mati865 commented 5 years ago

Ubuntu doesn't just copy Debian packages. They update changelog and rebuild it so hashes are different. Still it's Ubuntu bug though.

jorgeas80 commented 4 years ago

zsh-antigen from Ubuntu repo seems to be missing most of the code. I use this command to install zsh-antigen.

sudo curl -o /usr/share/zsh-antigen/antigen.zsh -sL git.io/antigen

This just worked for me. So, many thanks!

beruic commented 4 years ago

For those who doesn't want to install curl:

    sudo wget -q -O /usr/share/zsh-antigen/antigen.zsh git.io/antigen

allthough I prefer to run

    wget -q -O ~/.antigen.zsh git.io/antigen

and put this in the top of my .zshrc

    source "$HOME/.antigen.zsh"
dreamflasher commented 3 years ago

Still broken (Ubuntu 20 LTS)

mshamasa commented 3 years ago

I had this issue with Ubuntu 20 LTS and fixed by Installing oh-my-zsh using wget, from their github.

sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh).

then sourced antigen at the top of my .zshrc

fladi commented 3 years ago

I have now pushed 2.2.3-4 to the Debian archive. This should fix the builds on Ubuntu.

prateeka commented 2 years ago

ubuntu-20.04 still has the issue

pleszczy commented 2 years ago

It's still not fixed

fladi commented 2 years ago

@prateeka Ubuntu 20.04 was released in 2020, almost a year before I uploaded 2.2.3-4 to the Debian archive. You will have to take it to the Ubuntu bugtracker to have them backport a fix.

fladi commented 2 years ago

@pleszczy Could you provide a bit more context? What package are you using and what version? Ubuntu 21.10 is the first release of Ubuntu to ship a working package.

pleszczy commented 2 years ago

@fladi That would explain it. I'm using Ubuntu 20.04 through Windows Subsystem for Linux. Thank you

hmoffatt commented 1 year ago

You can grab the deb from Debian bullseye and install it on Ubuntu 20.04: http://ftp.au.debian.org/debian/pool/main/z/zsh-antigen/zsh-antigen_2.2.3-4_all.deb