doomemacs / doomemacs/core

tangling config.org fails under chemacs

Open
#6,593 7 comments 0 reactions 0 assignees View on GitHub
:config literate re:chemacs
Dominant language
Emacs Lisp
Stars
22.7k
Forks
3.1k
Avg merge
10h 46m
Merged PRs (30d)
4

Description

### What did you expect to happen?

When saving my config.org with `C-x C-s`, it should tangle without error to several .el files when using a "literate" feature in init.el.
Note if I manually tangle with `C-c C-v t`, it's fine: the tangle works, and the source file config.org is saved along the way.

### What actually happened?

When I try to save my config.org with `C-x C-s`, I see this:

```
Debugger entered--Lisp error: (file-missing "Cannot open load file" "No such file or directory" "core-lib")
require(core-lib)
eval-buffer(# nil "/home/jeff/.config/emacs-doom/core/core.el" nil t) ; Reading at buffer position 10779
load-with-code-conversion("/home/jeff/.config/emacs-doom/core/core.el" "/home/jeff/.config/emacs-doom/core/core.el" nil t)
load("/home/jeff/.config/emacs-doom/core/core" nil t)
command-line-1(("--load" "/home/jeff/.config/emacs-doom/core/core" "--load" "/home/jeff/.config/emacs-doom/core/autoload/print" "--eval" "(funcall #'(closure (t) (target dest &optional dir..."))
command-line()
normal-top-level()
```

### Describe your attempts to resolve the issue

I cannot find what code or script is generating the error I see above.
I suspect it's an attempt to automatically tangle on save, and perhaps there is either an inline or external script being used.
In that script, I further suspect it's not aware of the chemacs installation and the proper paths that must be included into the load-path.

### Steps to reproduce

1. Install chemacs2
2. Install doom emacs, with a chemacs profile pointing to the new doom emacs
3. Ensure using a "literate" feature/configuration of doom emacs via init.el
4. Edit config.org, and save using `C-x C-s`
5. Witness error described above

### System Information

https://pastebin.com/1zkeVbQ0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.