chenyanming / spacemacs_module_for_doom

Aim to port spacemacs features (defaults keybinding, transient state, layers and more) to doom, and provides a spacemacs module for doom.
146 stars 15 forks source link

Error in private config: modules/private/spacemacs/config.el, (void-function modulep!) #13

Closed alexg9010 closed 1 year ago

alexg9010 commented 1 year ago

Hi @chenyanming ,

thanks for providing this helpful module!

I got this error message after adding :private spacemacs to doom's init.el and restarting emacs:

Warning (initialization): An error occurred while loading ‘/Users/agosdsc/doom/core/core-start.el’:

Error in private config: modules/private/spacemacs/config.el, (void-function modulep!)

[...]

Then I saw your most recent commit 24fd68d9502ba3d0c20d1b433519b0eda8c042f7 and found that reverting it allowed me to successfully load emacs without error. Unfortunately I a noob in terms of elisp and debugging emacs, but I would assume that the function modulep! is not fully exported before usage.

Best, Alex

P.S.: here are some details about my doom config and system:

  doom info
generated  Mar 07, 2023 11:06:03
system     MacOS 10.14.6 Darwin 18.7.0 x86_64
emacs      28.1 ~/doom/ -> ~/doom/
doom       3.0.0-dev HEAD -> master, origin/master, origin/HEAD 1e6d5c3f
       2022-06-23 13:47:22 +0200 ~/.doom.d/ -> ~/.doom.d/
shell      /bin/bash
features   ACL GMP GNUTLS JSON LIBXML2 MODULES NOTIFY KQUEUE PDUMPER THREADS
       TOOLKIT_SCROLL_BARS XIM XWIDGETS ZLIB
traits     batch server-running envvar-file custom-file
modules    :completion company vertico :ui doom doom-dashboard hl-todo hydra
       indent-guides modeline nav-flash neotree ophints (popup +defaults)
       vc-gutter vi-tilde-fringe workspaces zen :editor (evil +everywhere)
       format snippets :emacs dired electric undo vc :term vterm :checkers
       syntax :tools direnv (eval +overlay) lookup (lsp +peek) (magit
       +forge) tree-sitter :os macos :lang emacs-lisp (ess +lsp) json
       (markdown +grip) (org +pretty +journal -dragndrop +hugo +pandoc
       +present) (python +lsp) sh web yaml :email (&nopath q) :config
       (default +bindings +smartparens) :private (&user spacemacs)
packages   (org-mac-link) (snakemake-mode)
chenyanming commented 1 year ago

You should update doom, modulep! is a new macro provoided by doom.

alexg9010 commented 1 year ago

Thanks, will do so.

Edit: The error vanished after the doom upgrade.