From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Lirzin Subject: Re: How to use Guix.el from Git? Date: Sun, 22 Nov 2015 19:20:47 +0100 Message-ID: <87egfh3ngg.fsf@gnu.org> References: <87mvu62pue.fsf@gnu.org> <87d1v2otah.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50022) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0ZFu-0001IZ-6K for guix-devel@gnu.org; Sun, 22 Nov 2015 13:20:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0ZFr-0000zZ-2h for guix-devel@gnu.org; Sun, 22 Nov 2015 13:20:54 -0500 In-Reply-To: <87d1v2otah.fsf@gmail.com> (Alex Kost's message of "Sun, 22 Nov 2015 20:09:10 +0300") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Alex Kost Cc: guix-devel@gnu.org Hi Alex, Alex Kost writes: > Mathieu Lirzin (2015-11-22 15:14 +0300) wrote: > [...] >> ERROR: In procedure primitive-load-path: >> ERROR: In procedure primitive-load-path: Unable to find file "guix-main"= in load path > > So Guix REPL is dead after this, right? It is. > It looks like your "~/src/gnu/guix/emacs" is not appended to guile > %load-path (it is done in `guix-start-repl' by cons-ing > `guix-load-path' to `geiser-guile-load-path'). > > Could you check "C-h v guix-load-path" to be sure that its value is > really "~/src/gnu/guix/emacs".=20=20 --8<---------------cut here---------------start------------->8--- guix-load-path is a variable defined in `guix-backend.el'. Its value is "~/src/gnu/guix/emacs" --8<---------------cut here---------------end--------------->8--- > > Also just in case, show the value of `guix-helper-file' variable. --8<---------------cut here---------------start------------->8--- guix-helper-file is a variable defined in `guix-backend.el'. Its value is "/home/mthl/src/gnu/guix/emacs/guix-helper.scm" --8<---------------cut here---------------end--------------->8--- These two variables helped me figure out that the problem was the use of =E2=80=9C~=E2=80=9D in: (let ((dir "~/src/gnu/guix/emacs")) ... When changing it with =E2=80=9C/home/mthl=E2=80=9D it works! To avoid this= kind of mistake in the future, a simple fix would be to change the example in the documentation, with: (let ((dir "/absolute/path/to/your-guix-git-tree/emacs")) ... But is there a way to change the implementation to let users use relative path? Thanks, -- Mathieu Lirzin