Closed nixmaniack closed 4 years ago
I am having same issue.
@madhat2r can you share your system info (SPC h d s
)? I'm particularly interested to know if you're using the same Emacs version as @nixmaniack (26.0.50) and if you have ansible
layer enabled (I suppose you do).
Does the error occur also on older Emacsen (say Emacs 25.1)? Does it occur also if you disable ansible
layer?
I couldn't check for older emacs version but if I disable ansible
layer I don't get this error.
I've managed to repro the bug with Emacs 25.1 by adding ansible
layer. The cause is the call to:
(spacemacs/set-leader-keys-for-minor-mode 'ansible-doc-mode
"ha" 'ansible-doc)
In ansible/init-ansible-doc
. A work-around for now is to load the package during startup. In user-config
, add:
(require 'ansible-doc)
The bug here is not in ansible
layer. It's actually in spacemacs/set-leader-keys-for-minor-mode
, spacemacs//init-leader-mode-map
, bind-map
and the interaction between them.
Somehow, the call to spacemacs/set-leader-keys-for-minor-mode
adds an ansible-doc-mode
entry to minor-modes-map-alist
. The built-in help-key-description
(called as part of SPC h d k
) expects all minor-modes in minor-modes-map-alist
to exist, but because of lazy loading ansible-doc-mode
is not defined yet, hence the error.
Calling @syl20bnr and @justbur for help. My full debug efforts and conclusions are written in the attached file. (it's an Org file, uploaded as txt because that's what GitHub allows) bug-ansible-doc.txt
Edit: if you're having trouble viewing the attached file, that's probably because of the backtrace. Here's a version without the backtrace: bug-ansible-doc-no-backtrace.txt
@bmag sorry for the late response. Here is my info
((clojure :variables clojure-enable-fancify-symbols t)
madhat2r-theme theming edbi evernote systemd pdf-tools ansible dash spacemacs-editing csv ivy themes-megapack osx speed-reading
(auto-completion :variables auto-completion-private-snippets-directory "~/.spacemacs.d/snippets" auto-completion-enable-sort-by-usage t)
emacs-lisp git github version-control markdown
(org :variables org-projectile-file "TODOs.org" org-enable-github-support t org-enable-bootstrap-support t org-enable-reveal-js-support t)
(syntax-checking :variables syntax-checking-enable-tooltips nil)
spell-checking ranger
(evil-snipe :variables evil-snipe-enable-alternate-f-and-t-behaviors t)
ipython-notebook javascript html python gtags ruby yaml sql
(colors :variables colors-enable-nyan-cat-progress-bar nil colors-enable-rainbow-identifiers nil)
smex notmuch mad-config eblast drag-stuff perspectives erc semantic linum-off mad-eblast-processing visual-basic-mode finance beancount sx emoji)
Just had this issue. Strangely it appears with Emacs installed via the Homebrew tap d12frosted/emacs-plus
but not via formula emacs-mac
. Adding (require 'ansible-doc)
in user-config
did not seem to help…
Edit: nevermind, the difference was due to mac-option-modifier
which is not the same between emacs-plus and emacs-mac.
</ obligatory me too>
Can you please try the fix from #9087 and let me know if it works for you?
@sdwolf The fix seems to work. I don't see the error with that patch applied. 👍
I pushed another fix on develop: a3debe157032fc0999044eeb060d1e83107c87ee.
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!
Description :octocat:
Trying to get function binding for a key results in error
Symbol’s value as variable is void: ansible-doc-mode
. I have updated packages and updated spacemacs to latest develop.Reproduction guide :beetle:
SPC f e i
SPC h d k
thenSPC /
Observed behaviour: :eyes: :broken_heart: Got error
Symbol’s value as variable is void: ansible-doc-mode
Expected behaviour: :heart: :smile: Show function under binding
SPC /
System Info :computer:
Backtrace :paw_prints: