unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Suhail Singh <suhailsingh247@gmail.com>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: Adam Faiz <adam.faiz@disroot.org>,
	 dannym@scratchpost.org, guix-devel@gnu.org
Subject: Re: GUI for Guix
Date: Mon, 02 Oct 2023 16:25:34 -0400	[thread overview]
Message-ID: <87edicvkjl.fsf@gmail.com> (raw)
In-Reply-To: <87y1gmqd1q.fsf@elephly.net> (Ricardo Wurmus's message of "Sun, 01 Oct 2023 22:52:49 +0200")

Ricardo Wurmus <rekado@elephly.net> writes:

> Is it *actually* broken?  If it is and you can provide information on
> how to trigger the broken behavior we might be a step closer to fixing
> it.

I believe it's unclear how to ensure that it is configured
correctly. I.e., I believe the package mostly works when configured
correctly, but what the correct configuration is is unclear. It also
doesn't help that the discussions are fragmented across Gitlab,
issues.guix.gnu.org , IRC, and, now, this mailing list.

FWIW, I'll note below some things I tried and my observations below.

guix shell -C --no-cwd --expose=/gnu --expose=/var --share=/tmp  -E DISPLAY -E TERM emacs emacs-guix bash unzip -- emacs

With the above invocation, I was able to invoke M-x guix-popup, but
every subsequent command I tried after that resulted in failure (an
exception was raised).

Locally, in my host system, I was able to get most of the commands
working by simply ensuring that GUILE_LOAD_PATH had the specific
guix-module-union entry that was present in %load-path within
"guix repl". Doing so, every command from M-x guix-popup worked except
for M-x guix-command which would result in an exception.

The instructions on the Gitlab issue (cross-posted on
issues.guix.gnu.org) either have a typo or have
bit-rotted. Specifically, it's guix-config-guile-program and not
guix-guile-program that helps when overridden.

(with-eval-after-load 'guix-repl
  (setq guix-config-guile-program  '("guix" "repl")
        guix-repl-use-server  nil))

With the above configuration (or its equivalent use-package translation)
I was able to ensure that M-x guix-command no longer raised the
exception. It still doesn't quite work correctly (the specific guix
command to run isn't prompted for), but it's better than before.

IMO it would help to document the minimal configuration that's needed to
make emacs-guix work as intended. And for this to be testable via some
"guix shell -C" invocation which is also documented.

-- 
Suhail


  reply	other threads:[~2023-10-04 11:39 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-30 16:07 GUI for Guix Adam Faiz
2023-09-30 17:08 ` jbranso
2023-10-02 18:52   ` Thompson, David
2023-10-01 20:52 ` Ricardo Wurmus
2023-10-02 20:25   ` Suhail Singh [this message]
2023-10-04 15:49   ` Ludovic Courtès
2023-10-06  2:58     ` Suhail Singh
2023-10-04 15:52 ` Ludovic Courtès
2023-10-14 15:59   ` Maxim Cournoyer
  -- strict thread matches above, loose matches on Subject: below --
2023-10-02  8:53 Adam Faiz
2023-10-02 15:08 ` Ricardo Wurmus
2023-10-03  9:00   ` Daniel Meißner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87edicvkjl.fsf@gmail.com \
    --to=suhailsingh247@gmail.com \
    --cc=adam.faiz@disroot.org \
    --cc=dannym@scratchpost.org \
    --cc=guix-devel@gnu.org \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).