alezost / guix.el

Emacs interface for GNU Guix package manager
https://emacs-guix.gitlab.io/website/
GNU General Public License v3.0
141 stars 16 forks source link

Only Small Subset of Pacakges Appear on GuixSD #35

Closed ecbrown closed 5 years ago

ecbrown commented 5 years ago

With an up-to-date GuixSD, I do not see all (10,000+) packages, but rather only a small subset (~790). I seem to recall it showing all packages the first time I ran it.

Using guix-installed emacs on Debian GNU/Linux buster, I see all 10,000+ pacakges.

alezost commented 5 years ago

Perhaps there is some problem with modules. Are there any errors/warnings in *Guix REPL* buffer? Could you please show the output of %load-path and %load-compiled-path.

Oh, BTW, do you use channels?

ecbrown commented 5 years ago

Weird, same problem now in Debian Buster + Guix. Not using channels on this machine.

scheme@(emacs-guix)> %load-path $4 = ("/home/ebrown/src/guix" "/gnu/store/mvm6b330h1v1564v28kdl8qzi2dvxwxs-emacs-guix-0.5.1.1/share/guile/site/2.2" "/home/ebrown/.config/guix/current/share/guile/site/2.2" "/gnu/store/hxc9gknc6gfhx96b0ak0d6r3pv4mhayv-guix-1.0.1-5.cc98b00/share/guile/site/2.2" "/gnu/store/q62w3wc35nyhjvr4bcqy563wkqx0c425-emacs-geiser-0.10/share/geiser/guile/" "~/src/guix" "/home/ebrown/.guix-profile/share/guile/site/2.2" "/gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/share/guile/2.2" "/gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/share/guile/site/2.2" "/gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/share/guile/site" "/gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/share/guile")

scheme@(emacs-guix)> %load-compiled-path $5 = ("/home/ebrown/src/guix" "/gnu/store/mvm6b330h1v1564v28kdl8qzi2dvxwxs-emacs-guix-0.5.1.1/lib/guile/2.2/site-ccache" "/home/ebrown/.config/guix/current/lib/guile/2.2/site-ccache" "/gnu/store/hxc9gknc6gfhx96b0ak0d6r3pv4mhayv-guix-1.0.1-5.cc98b00/lib/guile/2.2/site-ccache" "/home/ebrown/.guix-profile/lib/guile/2.2/site-ccache" "/gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/lib/guile/2.2/ccache" "/gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/lib/guile/2.2/site-ccache")

alezost commented 5 years ago

I see that "/home/ebrown/src/guix" has the priority over the other paths (you probably added it to guix-load-path variable). I guess it is the directory with guix source. Do you keep it up-to-date and built (with make)? If not, it should better be removed from the path.

ecbrown commented 5 years ago

I think you’ve discovered the issue! I ensured that the guix source code was built, and 11,000+ packages appeared!

Will check on my GuixSD machine ASAP and close the issue once I’ve confirmed that this is solved.

ecbrown commented 5 years ago

Works on GuixSD and Debian+Guix. Thank you!

alezost commented 5 years ago

No problem, I am glad to hear it is solved now.