reddit / emacs

Emacs 28.1 Error while initializing

sreekumar_r · 2022-05-07 05:15
I am trying to run Emacs 28.1 in my Windows 10 Workstation. When loading the .emacs file, it is throwing a warning. ​ Warning (initialization): An error occurred while loading ‘c:/Users/sreekumar /AppData/Roaming/.emacs’: error: :pre-build command error in "org" recipe (error "Failed to parse ORGVERSION") When searched in web , I found in the GNU error page that this can be avoided by putting an hyphen in front of recipe. I am not sure about this. Below is the part of my init file. (straight-use-package 'use-package) ;; trying to install org-roam using straight (straight-use-package 'org-roam) ;; error throws here. (straight-use-package 'org-ref) (straight-use-package 'deft) ... ... The messages buffer shows like this. Building straight...done Building use-package... Building use-package → Building bind-key...done Building use-package...done Building org-roam...done Building org-ref... Building org-ref → Building org... For information about GNU Emacs and the GNU system, type C-h C-a. \*\*\* Emacs loaded in 26.24 seconds with 4 garbage collections. I appreciate any help. Thanks in advance.
akirakom · 2022-05-07 05:20
It seems that you have failed to build `org`. Maybe you should use the built-in version instead? https://github.com/raxod502/straight.el#how-can-i-use-the-built-in-version-of-a-package
sreekumar_r · 2022-05-07 06:06
Yes, I did that and now it is building all necessary packages. But I feel this solution is a kind of round about solution. The actual problem is that the `straight.el` cannot find `org-version.el.`
akirakom · 2022-05-07 06:50
There is no org-version.el in the repository.
sreekumar_r · 2022-05-07 09:48
Yes, there lies the problem.
nv-elisp · 2022-05-07 16:24
org-version.el is dynamically generated during the pre-build step. I would try deleting straight/repos/org-mode and straight/build/org and restarting Emacs. The provided recipe should still properly generate org-version.
sreekumar_r · 2022-05-08 09:25
I shall try this solution. Thanks.