chemacs2 icon indicating copy to clipboard operation
chemacs2 copied to clipboard

cannot load my doom on macos

Open 354651432 opened this issue 3 years ago • 4 comments

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

354651432 avatar Sep 21 '21 12:09 354651432

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 avatar Oct 21 '21 10:10 brabalan

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

zilongshanren avatar Dec 28 '21 15:12 zilongshanren

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

yssource avatar Mar 30 '22 15:03 yssource

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.

oatmealm avatar Jul 29 '22 14:07 oatmealm