tecosaur / emacs-config

My configuration for Doom Emacs. Mirror of https://git.tecosaur.net/tec/emacs-config.
MIT License
1.04k stars 118 forks source link

Error Installation #44

Open n2ng-dev opened 1 year ago

n2ng-dev commented 1 year ago

Error Installation, its look likes file .config/doom/setup.sh not found

Screenshot 2023-02-27 at 03 20 06 Screenshot 2023-02-27 at 03 22 19

thanks

donneyluck commented 1 year ago

.config/doom/setup.sh not found

you can run command

emacs --batch --eval "(progn (require 'org) (setq org-confirm-babel-evaluate nil) (org-babel-tangle-file \"~/.config/doom/config.org\"))"

tecosaur commented 1 year ago

I'll also note that this config is not made to be installed by others. There's a disclaimer for a reason.

s-a-c commented 1 year ago

I understand and accept the disclaimer, so there's no obligation :) However, FYI

  1. The quotes around the file name need escaping.
  2. even so, I receive an error about not finding "org-id-location" I include a link to a gist of the error output --> https://gist.github.com/s-a-c/e3060341f849f4683aa435ae5755f5b4

Below is an excerpt:

emacs --batch --eval "(progn (require 'org) (setq org-confirm-babel-evaluate nil) (org-babel-tangle-file \"~/.config/doom/config.org\"))"

` Could not read ‘org-id-values’ from ~/.emacs.d/.org-id-locations, setting it to nil executing Emacs-Lisp code block (org-pkg-statement)... (package! org :recipe (:host nil :repo "https://git.tecosaur.net/mirrors/org-mode.git" :remote "mirror" :fork (:host nil :repo "https://git.tecosaur.net/tec/org-mode.git" :branch "dev" :remote "tecosaur") :files (:defaults "etc") :build t :pre-build (with-temp-file "org-version.el" (require 'lisp-mnt) (let ((version (with-temp-buffer (insert-file-contents "lisp/org.el") (lm-header "version"))) (git-version (string-trim (with-temp-buffer (call-process "git" nil t nil "rev-parse" "--short" "HEAD") (buffer-string))))) (insert (format "(defun org-release () \"The release version of Org.\" %S)\n" version) (format "(defun org-git-version () \"The truncate git commit hash of Org mode.\" %S)\n" git-version) "(provide 'org-version)\n")))) :pin nil) ... ... executing Emacs-Lisp code block (confpkg-prepare)... Intitialising confpkg Debugger entered--Lisp error: (void-function org-fold-core-ignore-fragility-checks) (org-fold-core-ignore-fragility-checks (org-babel-map-executables nil (when (eq (org-element-type (org-element-context)) 'babel-call) (org-babel-lob-execute-maybe)))) ... org-babel-execute-src-block(nil nil ((:results . "silent"))) org-babel-ref-resolve("confpkg-prepare()")

f(compiled-function (m) #<bytecode 0xb61953ac8b72b29>)("<<confpkg-prepare()>>")

replace-regexp-in-string("\(.?\)\(<<\([^ \11\n]\(?:.?[^ \11\n]\)?\)>>\)" #f(compiled-function (m) #<bytecode 0xb61953ac8b72b29>) "<<confpkg-prepare()>>" t t 2) org-babel-expand-noweb-references(("emacs-lisp" "<<confpkg-prepare()>>" ((:colname-names) (:rowname-names) (:result-params "silent") (:result-type . value) (:results . "silent") (:exports . "code") (:tangle . "/tmp/emacs-org-babel-excuses/confpkg-prepare-EQuk4...") (:export-embed . "no") (:mkdirp . "yes") (:noweb . "no-export") (:eval . "no-export") (:lexical . "no") (:hlines . "no") (:cache . "no") (:session . "none")) "" nil 20255 "(ref:%s)")) org-babel-tangle-single-block(2) org-babel-tangle-collect-blocks(nil nil) org-babel-tangle(nil nil nil) org-babel-tangle-file("~/.config/doom/config.org") (progn (require 'org) (setq org-confirm-babel-evaluate nil) (org-babel-tangle-file "~/.config/doom/config.org")) command-line-1(("--eval" "(progn (require 'org) (setq org-confirm-babel-eval...")) command-line() normal-top-level() `

ingtshan commented 1 year ago

@n2ng-dev Seems you skip echo "(doom! :config literate)" > ~/.config/doom/init.el step or didn't trigger tangling literate config well. Solution is redo this step and execute ~/.emacs.d/bin/doom sync after. Then you will get your setup.sh file.

@s-a-c You should tangle literate config within doom envrionment, solution is same above.

Hope it can help you guys.