I am trying to learn Emacs. I successfully installed it and went through the built-in tutorial. I thought that installing Spacemacs would be nice so I gave it a try.
I followed a tutorial and now I am stuck. First time I launched Spacemacs I got this
When I run emacs --debug-init
, I get this
Debugger entered--Lisp error: (wrong-type-argument stringp async)
intern(async)
package-desc-from-define(async "20200809.501" "Asynchronous processing in Emacs" '((emacs "24.3")) :commit "14f48de586b0977e3470f053b810d77b07ea427a" :authors (("John Wiegley" . "jwiegley@gmail.com")) :maintainer ("John Wiegley" . "jwiegley@gmail.com") :keywords ("convenience" "async") :url "https://github.com/jwiegley/emacs-async")
apply(package-desc-from-define (async "20200809.501" "Asynchronous processing in Emacs" '((emacs "24.3")) :commit "14f48de586b0977e3470f053b810d77b07ea427a" :authors (("John Wiegley" . "jwiegley@gmail.com")) :maintainer ("John Wiegley" . "jwiegley@gmail.com") :keywords ("convenience" "async") :url "https://github.com/jwiegley/emacs-async"))
package-process-define-package((define-package async "20200809.501" "Asynchronous processing in Emacs" '((emacs "24.3")) :commit "14f48de586b0977e3470f053b810d77b07ea427a" :authors (("John Wiegley" . "jwiegley@gmail.com")) :maintainer ("John Wiegley" . "jwiegley@gmail.com") :keywords ("convenience" "async") :url "https://github.com/jwiegley/emacs-async"))
package-load-descriptor("/Users/dpalma/.emacs.d/elpa/27.1/develop/async-202...")
package-load-all-descriptors()
package-initialize(noactivate)
(if package--initialized nil (setq configuration-layer-rollback-directory (configuration-layer/elpa-directory configuration-layer--rollback-root-directory)) (setq package-user-dir (configuration-layer/elpa-directory configuration-layer--elpa-root-directory)) (setq package-archives (configuration-layer//resolve-package-archives configuration-layer-elpa-archives)) (setq package-enable-at-startup nil) (package-initialize 'noactivate) (if (package-installed-p 'org-plus-contrib) (progn (spacemacs-buffer/message "Initializing Org early...") (configuration-layer//activate-package 'org-plus-contrib))))
configuration-layer/initialize()
spacemacs/init()
(let ((file-name-handler-alist nil)) (require 'core-spacemacs) (spacemacs/dump-restore-load-path) (configuration-layer/load-lock-file) (spacemacs/init) (configuration-layer/stable-elpa-init) (configuration-layer/load) (spacemacs-buffer/display-startup-note) (spacemacs/setup-startup-hook) (spacemacs/dump-eval-delayed-functions) (if (and dotspacemacs-enable-server (not (spacemacs-is-dumping-p))) (progn (require 'server) (if dotspacemacs-server-socket-dir (progn (setq server-socket-dir dotspacemacs-server-socket-dir))) (if (server-running-p) nil (message "Starting a server...") (server-start)))))
(if (not (version<= spacemacs-emacs-min-version emacs-version)) (error (concat "Your version of Emacs (%s) is too old. " "Spacemacs requires Emacs version %s or above.") emacs-version spacemacs-emacs-min-version) (let ((file-name-handler-alist nil)) (require 'core-spacemacs) (spacemacs/dump-restore-load-path) (configuration-layer/load-lock-file) (spacemacs/init) (configuration-layer/stable-elpa-init) (configuration-layer/load) (spacemacs-buffer/display-startup-note) (spacemacs/setup-startup-hook) (spacemacs/dump-eval-delayed-functions) (if (and dotspacemacs-enable-server (not (spacemacs-is-dumping-p))) (progn (require 'server) (if dotspacemacs-server-socket-dir (progn (setq server-socket-dir dotspacemacs-server-socket-dir))) (if (server-running-p) nil (message "Starting a server...") (server-start))))))
eval-buffer(#<buffer *load*> nil "/Users/dpalma/.emacs.d/init.el" nil t) ; Reading at buffer position 1880
load-with-code-conversion("/Users/dpalma/.emacs.d/init.el" "/Users/dpalma/.emacs.d/init.el" t t)
load("/Users/dpalma/.emacs.d/init" noerror nomessage)
startup--load-user-init-file(#f(compiled-function () #<bytecode 0x1ff1aea2e655>) #f(compiled-function () #<bytecode 0x1ff1aea2e66d>) t)
command-line()
normal-top-level()
I have macOS 11.0.1 and Emacs 27.1.
EDIT:
This seems to fix the issue.
load-path
, andrequire
the library. At the end of the day, MELPA is essentially just a way to download Lisp files, and the "package" system is just a way to load them. – Drew Dec 25 '20 at 15:42