plexus / chemacs2

Emacs version switcher, improved

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cannot load my doom on macos

354651432 opened this issue · comments

commented

msg:

No such file or directory, core-modules

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace.

debug backtrack

  Debugger entered--Lisp error: (file-missing "Cannot open load file" "No such file or directory" "/Users/$
  (doom-debug-mode 1)
  (if doom-debug-p (doom-debug-mode 1))
  (progn (setq doom-init-p t) (if doom-debug-p (progn (let ((inhibit-message (active-minibuffer-window))$
  (if (or force-p (not doom-init-p)) (progn (setq doom-init-p t) (if doom-debug-p (progn (let ((inhibit-$
  doom-initialize()
  eval-buffer(#<buffer  *load*-568364> nil "/Users/six/.emacs.d.doom/init.el" nil t)  ; Reading at buffe$
  load-with-code-conversion("/Users/six/.emacs.d.doom/init.el" "/Users/six/.emacs.d.doom/init.el" t t)
  load("/Users/six/.emacs.d.doom/init.el" t t)
  (let ((init-file (expand-file-name "init.el" user-emacs-directory))) (setq package-user-dir (expand-fi$
  chemacs-load-user-init()
eval-buffer(#<buffer  *load*> nil "/Users/six/.emacs.d/init.el" nil t)  ; Reading at buffer position 2$
  load-with-code-conversion("/Users/six/.emacs.d/init.el" "/Users/six/.emacs.d/init.el" t t)
  load("/Users/six/.emacs.d/init" noerror nomessage)
  startup--load-user-init-file(#f(compiled-function () #<bytecode 0x1fe98f66a329>) #f(compiled-function $
  command-line()
  normal-top-level() 

and my .emacs-profiles.el:

(("default" . ((user-emacs-directory . "~/.emacs.d.doom")
	       (env . (("DOOMDIR" . "~/.doom.d"))))))

emacs version is 27.1

Did you install a fresh doom or did you move it? When I moved it I had to do a doom sync and a doom build for things to work.

I also don’t think the DOOOMDIR environment is necessary as it’s the default (I don’t have it in my config).

@brabalan Thanks, I got it work after doing doom sync and doom build

Two ways here.

  1. 'M-x doom/reload' for changes to take effect
  2. export DOOMDIR=~/.doom.d && ~/.emacs.d.doom/bin/doom sync -e

I found my self in the same situation. Moved and existing doom install to make room for chemacs, and was getting the same error. First tryed sync followed by build, which solved the problem. I first tried doom/reoload but got the same error message about files missing so I couldn't really simply re-load from inside doom.