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

guix-popup has failed after installing magit from melpa.org #40

Closed TxGVNN closed 3 years ago

TxGVNN commented 3 years ago

Hi @alezost,

I'm using guix-1.1.0 with emacs-guix is installed from guix package

And after I install magit from melpa.org, the guix-popup doesn't work anymore. I believe it relative with magit-popup, because all functions guix still works well.

with toggle-debug-on-error I have:

Debugger entered--Lisp error: (wrong-type-argument sequencep all)
  cl-intersection((all magit) all)
  byte-code("\301\302!\210\301\303!\210\301\304!\210\301\305!\210\301\306\307\310#\203/\0\311\312\313\300!\205!\0\010\"\203/\0\314\315!\203/\0\315\316!\210\317\320\307\321\322\323\324\325&\007\210\317\326\307\327\324\320%\210\330\331\332\333\334DD\335\336\337\324\320\340\341&\011\210\330\342\332\333\343DD\344\324\320\340\345&\007\210\330\346\332\333\347DD\350\324\320\340\351&\007\210\330\352\332\333\353DD\354\336\355\324\320\340\351&\011\210\330\356\332\333\357DD\360\324\320\340\361&\007\210\362\363\364\365\324\326%\210\362\366\367\370\324\326%\210\362\371\372\373\324\326%\210\362\374\375\376\324\326%\210\362\377\201@\0\201A\0\324\326%\207" [async-bytecomp-allowed-packages require button cl-lib dash format-spec async-bytecomp nil t cl-intersection (all magit) boundp fboundp async-bytecomp-package-mode 1 custom-declare-group magit-popup "Infix arguments with a popup as feedback." :link (info-link "(magit-popup)") :group bindings magit-popup-faces "Faces used by Magit-Popup." custom-declare-variable magit-popup-display-buffer-action funcall function #f(compiled-function () #<bytecode 0xfe8139>) "The action used to display a popup buffer.\n\nPopup buffers are displayed using `display-buffer' with the value\nof this option as ACTION argument.  You can also set this to nil\nand instead add an entry to `display-buffer-alist'." :package-version (magit-popup . "2.4.0") :type sexp magit-popup-manpage-package #f(compiled-function () #<bytecode 0xfe8151>) "The package used to display manpages.\nOne of `man' or `woman'." (choice (const man) (const woman)) magit-popup-show-help-echo #f(compiled-function () #<bytecode 0xfe8161>) "Show usage information in the echo area." boolean magit-popup-show-common-commands #f(compiled-function () #<bytecode 0xfe8171>) "Whether to initially show section with commands common to all popups.\nThis section can also be toggled temporarily using \\<magit-popup-mode-map>\\[magit-popup-toggle-show-common-commands]." (magit-popup . "2.9.0") magit-popup-use-prefix-argument #f(compiled-function () #<bytecode 0xfe8181>) "Control how prefix arguments affect infix argument popups.\n\nThis option controls the effect that the use of a prefix argument\nbefore entering a popup has.\n\n`default'  With a prefix argument directly invoke the popup's\n           default action (an Emacs command), instead of bringing\n           up the popup.\n\n`popup'    With a prefix argument bring up the popup, otherwise\n           directly invoke the popup's default action.\n\n`nil'      Ignore prefix arguments." (choice (const :tag "Call default action instead of showing popup" default) (const :tag "Show popup instead of calling default action" popup) (const :tag "Ignore prefix argument" nil)) ...] 10)
  require(magit-popup)
  byte-code("\300\301!\210\300\302!\210\303\304\305\306\307\310%\207" [require magit-popup guix-profiles custom-declare-group guix-popup nil "Popup interface for Emacs-Guix commands." :group guix] 6)
  autoload-do-load((autoload "guix-popup" nil t nil) guix)
  command-execute(guix record)
  counsel-M-x-action("guix")
  ivy-call()
  ivy-read("M-x " ("toggle-debug-on-error" "package-delete" "guix-system-generations" "guix-all-services" "guix-all-packages" "cd" "magit" "5x5" "arp" "dbx" "dig" "erc" "ert" "eww" "ftp" "gdb" "irc" "jdb" "man" "mpc" "pdb" "pwd" "rsh" "sdb" "xdb" "calc" "diff" "ffap" "gnus" "grep" "help" "ielm" "info" "life" "mail" "mpuz" "ping" "pong" "smex" "talk" "term" "undo" "yank" "zone" "align" "chmod" "debug" "diary" "dired" "ediff" ...) :predicate #f(compiled-function (x) #<bytecode 0xe315ed>) :require-match t :history counsel-M-x-history :action counsel-M-x-action :keymap (keymap (67108908 . counsel--info-lookup-symbol) (67108910 . counsel-find-symbol)) :initial-input nil :caller counsel-M-x)
  counsel-M-x()
  funcall-interactively(counsel-M-x)
  call-interactively(counsel-M-x nil nil)
  command-execute(counsel-M-x)

I discovered if I remove rm .emacs.d/elpa/async-20200809.501/ -rf (a dependency of magit), guix-popup works well again.

Some infomations:

emacs-guix 0.5.2                                                                                                                                                                                                                                                                                                                  

Outputs:                                                                                                                                                                                       
  out                                                                                                                                                                                          
    Store directory:                                                                                                                                                                           
      /gnu/store/j8x9rgxyhiaixk0w4h5d5kx719l31392-emacs-guix-0.5.2  Store item                                                                                                                 
    Dependencies:                                                                                                                                                                              
      /gnu/store/sil5d94sxsqm2bay2l1qflgg8zlsk3q6-emacs-geiser-0.11.2  Store item                                                                                                              
      /gnu/store/c64fi1b6qy4apvc8nza3palfii13fb5i-guile-gcrypt-0.2.1  Store item                                                                                                               
      /gnu/store/zcf2b4fvv0lak1lxmvncy1bliq8s8mby-emacs-dash-2.17.0  Store item                                                                                                                
      /gnu/store/vjajf14zn5cn2q0rpjpnfi9sfylz9pvk-emacs-bui-1.2.1  Store item                                                                                                                  
      /gnu/store/wnhfg5jh9kg718ax6dh4y0yh2h18r0xv-emacs-edit-indirect-0.1.5  Store item                                                                                                        
      /gnu/store/4p7n6xij0ql5asqdyym5icnkp8r6k5sg-emacs-magit-popup-2.12.5  Store item 
magit is an installed package.                                                                                                                                                                 

     Status: Installed in ‘magit-20201119.1947/’ (unsigned). [Delete]                                                                                                                          
    Version: 20201119.1947                                                                                                                                                                     
     Commit: 04e641ac8579b0c2feda738e77e8a7c9bb6945da                                                                                                                                          
    Summary: A Git porcelain inside Emacs.                                                                                                                                                     
   Requires: emacs-25.1, async-20200113, dash-20200524, git-commit-20200516,                                                                                                                   
               transient-20200601, with-editor-20200522                     

Thanks

TxGVNN commented 3 years ago

This patch resolves very well this issue. FYI https://gitlab.com/emacs-guix/emacs-guix/-/merge_requests/8