Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

magithub warning: Error (use-package): magithub/:config: feature pull-request-merge failed to install: nil #11990

Closed
robbyoconnor opened this issue Feb 16, 2019 · 8 comments
Labels
- Bug tracker - GitHub Should report upstream stale marked as a stale issue/pr (usually by a bot)

Comments

@robbyoconnor
Copy link
Contributor

Description :octocat:

magithub config is slightly broken, but not in an unusable way

Reproduction guide 🪲

  • Start Emacs
  • Have the github layer enabled
  • See warning

Observed behaviour: 👀 💔

Error (use-package): magithub/:config: feature pull-request-merge failed to install: nil

Expected behaviour: ❤️ 😄
No warning

System Info 💻

  • OS: gnu/linux
  • Emacs: 27.0.50
  • Spacemacs: 0.300.0
  • Spacemacs branch: develop (rev. 95422ae)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: ivy
  • Layers:
(windows-scripts prettier sphinx web-beautify transmission xclipboard node selectric
                 (templates :variables templates-private-directory "~/.spacemacs.d/templates")
                 coffeescript json jsonnet julia epub bibtex nginx twitter graphviz
                 (ivy :variables ivy-enable-advanced-buffer-information t)
                 asciidoc elfeed speed-reading swift plantuml
                 (auto-completion :variables auto-completion-return-key-behavior 'complete auto-completion-tab-key-behavior 'cycle auto-completion-complete-with-key-sequence nil auto-completion-enable-help-tooltip t auto-completion-enable-sort-by-usage t auto-completion-show-snippets-in-popup t auto-completion-private-snippets-directory "~/.spacemacs.d/snippets")
                 better-defaults emacs-lisp
                 (git :variables git-magit-status-fullscreen t)
                 github gnus version-control
                 (markdown :variables markdown-live-preview-engine 'vmd)
                 syntax-checking
                 (latex :variables latex-enable-auto-fill t)
                 (colors :variables colors-colorize-identifiers 'all colors-enable-nyan-cat-progress-bar t)
                 docker
                 (ansible :variables ansible-auto-encrypt-decrypt t)
                 puppet evil-commentary
                 (evil-snipe :variables evil-snipe-enable-alternate-f-and-t-behaviors t)
                 fasd finance floobits xkcd autohotkey csv major-modes
                 (go :variables go-backend 'lsp gofmt-command "goimports" go-format-before-save t go-use-gometalinter t go-use-gocheck-for-testing t go-use-test-args "-race -timeout 10s" godoc-at-point-function 'godoc-gogetdoc go-tab-width 2)
                 (haskell :variables haskell-enable-ghci-ng-support t haskell-enable-shm-support t haskell-enable-hindent-style "andrew-gibiansky")
                 html java
                 (javascript :variables javascript-disable-tern-port-files t javascript-backend 'lsp)
                 (python :variables python-backend 'lsp python-enable-yapf-format-on-save t python-fill-column 80 python-auto-set-local-pyenv-version 'on-visit python-auto-set-local-pyvenv-virtualenv 'on-visit python-sort-imports-on-save t python-test-runner
                         '(nose pytest))
                 lsp racket
                 (ruby :variables ruby-version-manager `rvm)
                 ruby-on-rails
                 (rust :variables rust-enable-rustfmt-on-save t)
                 (scala :variables scala-indent:use-javadoc-style t scala-enable-eldoc t scala-auto-insert-asterisk-in-comments t scala-use-unicode-arrows t scala-auto-start-ensime t)
                 shell-scripts
                 (restclient :variables restclient-use-org t)
                 themes-megapack tmux vim-empty-lines spotify pandoc vagrant
                 (ibuffer :variables ibuffer-group-buffers-by 'projects)
                 semantic deft
                 (shell :variables shell-default-shell 'ansi-term shell-default-position 'bottom shell-default-height 30 shell-default-term-shell "/bin/zsh")
                 typescript erc chrome d emoji gtags prodigy evernote
                 (org :variables org-enable-github-support t org-enable-reveal-js-support t org-enable-org-journal-support t org-enable-hugo-support t org-projectile-file "TODOs.org" org-want-todo-bindings t org-enable-bootstrap-support t)
                 search-engine yaml sql nim lua scheme purescript sml common-lisp ranger wakatime dash spell-checking jabber cscope vinegar games react php vimscript geolocation idris
                 (elm :variables elm-reactor-port "3000" elm-reactor-address "0.0.0.0")
                 elixir
                 (typography :variables typography-enable-typographic-editing nil)
                 emberjs pdf imenu-list slack systemd command-log
                 (terraform :variables terraform-auto-format-on-save t)
                 pass parinfer groovy kotlin unicode-fonts epub multiple-cursors
                 (treemacs :variables treemacs-use-follow-mode t treemacs-use-filewatch-mode t treemacs-use-collapsed-directories 3))
  • System configuration features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBSYSTEMD PDUMPER LCMS2 GMP
@bmag
Copy link
Contributor

bmag commented Feb 17, 2019

Most certainly an upstream issue at https://github.com/vermiculus/magithub/ due to magit/magit#3728, and probably not the only one, so please report upstream.

Specifically this issue stems from magithub-core.el:

  `((pull-request-merge . ,(lambda ()
                             (require 'magit-popup nil t)
                             (when (boundp 'magit-am-popup)
                               (magit-define-popup-action 'magit-am-popup
                                 ?P "Apply patches from pull request"
                                 #'magithub-pull-request-merge)
                               t)))

magit-am-popup was renamed to magit-am and magit-am-popup is not bounded, hence the lambda return nil, causing (in another part of the flow) the error message you encountered. There are more problems with that function, actually: magit-popup is no longer a dependency of magit and might not be installed. Specifically magit-define-popup-action is maybe undefined and in any case won't work on magit-am.

@syl20bnr we might need to disable magithub until it's fixed

@syl20bnr
Copy link
Owner

I'm for removing magithub and use only forge in spacemacs.

@syl20bnr
Copy link
Owner

I commented magithub in last develop, please move it to your private layer.
Keeping this open as the core issue has not been fixed.

@robbyoconnor
Copy link
Contributor Author

robbyoconnor commented Feb 18, 2019

@syl20bnr -- I dont actually care -- if forge does everything -- no need for it!

Will report upstream when I have cycles to so.

@Miciah
Copy link
Contributor

Miciah commented Feb 19, 2019

Upstream report: vermiculus/magithub#402

@robbyoconnor
Copy link
Contributor Author

robbyoconnor commented Feb 21, 2019 via email

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 28, 2020
@robbyoconnor
Copy link
Contributor Author

Fixed upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- Bug tracker - GitHub Should report upstream stale marked as a stale issue/pr (usually by a bot)
Projects
None yet
Development

No branches or pull requests

4 participants