Open sumit-sampang-rai opened 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.
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.
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.
Ping @fladi, I think you are the one who can help here.
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
@srekcahrai In fact, the package comes from Debian repo and that's why I ping @fladi who maintains the package.
@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.
@srekcahrai Ubuntu repo => Debian repo => @fladi
Issue reported on the debian bugtracker too: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906757
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.
Same issue here. Hope it can be fixed soon.
the Ubuntu package is still broken by the looks of it
Ubuntu doesn't just copy Debian packages. They update changelog and rebuild it so hashes are different. Still it's Ubuntu bug though.
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!
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"
Still broken (Ubuntu 20 LTS)
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
I have now pushed 2.2.3-4 to the Debian archive. This should fix the builds on Ubuntu.
ubuntu-20.04 still has the issue
It's still not fixed
@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.
@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.
@fladi That would explain it. I'm using Ubuntu 20.04 through Windows Subsystem for Linux. Thank you
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
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