Closed ddoherty03 closed 3 years ago
I'm using mac and have just encountered the same issue.
I recently update Quelpa (yesterday), did you retry with last develop ?
whitemuu notifications@github.com writes:
I'm using mac and have just encountered the same issue.
-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/syl20bnr/spacemacs/issues/10645#issuecomment-387162397
On 2018-05-07 at 3:42pm Central, did this:
cd ~/.emacs.d
git pull --rebase
Then, deleted my quelpa cache (I have my cache directory relocated from standard location) :
cd ~/.spacemacs/ded/cache
rm -rf quelpa
Result the same. Here are the relevant lines from my Messages buffer:
An error occurred while installing font-lock+ (error: (error Package lacks a "Version" or "Package-Version" header))
(Spacemacs) --> installing package: evil-unimpaired@spacemacs-evil... [2/2]
Fetcher: file
Source: nil
File: /home/ded/.spacemacs.d/ded/cache/quelpa/build/evil-unimpaired/evil-unimpaired.stamp
Saving file /home/ded/.spacemacs.d/ded/cache/quelpa/packages/evil-unimpaired-20180507.154143.el...
Wrote /home/ded/.spacemacs.d/ded/cache/quelpa/packages/evil-unimpaired-20180507.154143.el
Wrote /home/ded/.spacemacs.d/ded/cache/quelpa/packages/evil-unimpaired-readme.txt
(Spacemacs) Error:
An error occurred while installing evil-unimpaired (error: (error Package lacks a "Version" or "Package-Version" header))
So, same problem.
same issue here
is there any workaround for the moment?
If it helps any, on my machine, success seems to hinge on git config --global core.autocrlf false
being set when everything is cloned.
@UncleSniper, genius award! Deleted my ~/.emacs.d
and re-cloned after setting autocrlf
to false.
Also had to delete my copy of the quelpa cache, which for me was under ~/.spacemacs.d/ded/cache
After that, all packages compiled without error. Would be nice to either (1) know why the line-terminator option is breaking packages or (2) put a warning in the README
about this global git option.
Carriage return is the bane of my existence :fire:.
I'll happily merge a PR that documents this, but I am not sure where it should be put. I suspect many people copy the git command from the spacemacs.org
page and will miss the setting...
FYI, false
is the default setting for core.autocrlf
since git v1.7.2. See https://github.com/git/git/blob/ccdcbd54c4475c2238b310f7113ab3075b5abc9c/environment.c#L53.
Maybe it makes sense to enforce this setting via .gitattributes
(https://help.github.com/articles/dealing-with-line-endings/#per-repository-settings ) file in repository (syl20bnr/spacemacs
or melpa/melpa
?) to make behaviour consistent regardless of user's settings.
Would be nice if @whitemuu and @sebhahn would confirm that the git setting solved their issue.
Setting autocrlf to false does not fix the issue for me. I have just had the same issue with a new install of Spacemacs on Windows 10 pro (company machine).
I deleted .emacs.d
and .spacemacs
and then set autocrlf to false in GitBash console window
git config --global core.autocrlf false
Cloning spacemancs, checking out develop
branch and running Emacs (from GitBash) installed Spacemacs standard distribution with vim and helm with this same issue.
Error message in Spacemacs
An error occurred while installing font-lock+ (error: (error Invalid version syntax: ‘Command ’(c:/Users/js92523/AppData/Local/Programs/Git/usr/bin/timeout.exe -k 60 600 git submodule sync --recursive)’ exited with non-zero status 128: Cloning into 'c:/Users/js92523/.emacs.d/.cache/quelpa/melpa'...
Checking out files: 35% (1412/4022)
...
Checking out files: 100% (4022/4022), done.
HEAD is now at de20db06 Update contextual package source (#5639)
fatal: 'submodule' appears to be a git command, but we were not
able to execute it. Maybe git-submodule is broken?
Cloning into 'c:/Users/js92523/.emacs.d/.cache/quelpa/build/font-lock+'...
HEAD is now at f2c1ddc no summary available
fatal: 'submodule' appears to be a git command, but we were not
able to execute it. Maybe git-submodule is broken?
’ (must start with a number)))
Versions of git used (I upgraded to the latest as a test) git version 2.14.1.windows.1 git version 2.18.1.windows.1
Emacs version 25.3.1 64bit windows
Spacemacs installed without issue on this machine about 4 months ago. Installing Spacemacs using master
still works without this issue.
@jr0cket, it looks like this issue concerns a problem installing packages (in this particular case, the font-lock+ package) when Git's autocrlf
setting is wrong, and another issue, #4367, concerns a problem installing packages that come from GitHub (as opposed to MELPA; in that particular case, it's the persp-mode package, but font-lock+ is also installed from GitHub) when some configuration problem with Git prevents submodules from working properly. Have you seen #4367 and tried the solutions people have come up with there?
Thanks @Miciah It does seem to have been a git issue as Magit also failed to work. Not sure what changed in my Windows setup, but it was a corporate machine, so they could have done anything to it. I gave the windows machine back now, so problem solved. Thanks again.
This should be added to the README for sure. I spent a lot of time googling and I landed on the wrong issues. Putting it all here so it helps the discoverability of this thread
I was actually getting Error (use-package): Cannot load evil-unimpaired
, but if you run using emacs26 --debug-init
it gave the error which looked like
Debugger entered--Lisp error: (error "Package lacks a \"Version\" or \"Package-Version\" header")
signal(error ("Package lacks a \"Version\" or \"Package-Version\" header"))
error("Package lacks a \"Version\" or \"Package-Version\" header")
package-buffer-info()
...
Turns out, ask @Miciah said, the issue is with the font-lock+
package and probably the package headers aren't being parsed correctly due to different line endings.
I would've never guessed that line endings would cause so much havoc.
Spacemacs crash after first time installation.
It tries to install font-lock+ but keeps failing when it use git submodule
. I'm certaint that Git is correctly installed and that I'm able to execute the command in Git Bash.
Is there any workarounds?
Observed behaviour: :eyes: :broken_heart: It tries to install font-lock+ but fails with the message below
An error occurred while installing font-lock+ (error: (error Invalid version syntax: ‘Command ’(git submodule sync --recursive)’ exited with non-zero status 128: Fetching origin HEAD is now at f2c1ddc no summary available fatal: 'submodule' appears to be a git command, but we were not able to execute it. Maybe git-submodule is broken? ’ (must start with a number)))
Expected behaviour: :heart: :smile: Smoothly runs in Spacemacs heaven...
(javascript windows-scripts
(auto-completion :variables auto-completion-return-key-behaviour t auto-completion-tab-key-behavior 'cycle :disabled-for org erc)
c-c++ clojure emacs-lisp git github helm html latex markdown
(org :variables org-enable-org-journal-support t)
python ranger ruby rust semantic
(spell-checking :variables spell-checking-enable-by-default nil spell-checking-enable-auto-dictionary t enable-flyspell-auto-completion t)
syntax-checking version-control
(shell :variables shell-default-height 30 shell-default-position 'bottom))
Debugger entered--Lisp error: (error "Invalid version syntax: ‘Command ’(git submodule sync --recursive)’ exited with non-zero status 128: Fetching origin\nHEAD is now at f2c1ddc no summary available\nfatal: 'submodule' appears to be a git command, but we were not\nable to execute it. Maybe git-submodule is broken?\n’ (must start with a number)")
signal(error ("Invalid version syntax: ‘Command ’(git submodule sync --recursive)’ exited with non-zero status 128: Fetching origin\nHEAD is now at f2c1ddc no summary available\nfatal: 'submodule' appears to be a git command, but we were not\nable to execute it. Maybe git-submodule is broken?\n’ (must start with a number)"))
error("Invalid version syntax: `%s' (must start with a number)" "Command ’(git submodule sync --recursive)’ exited with non-zero status 128: Fetching origin\nHEAD is now at f2c1ddc no summary available\nfatal: 'submodule' appears to be a git command, but we were not\nable to execute it. Maybe git-submodule is broken?\n")
version-to-list("Command ’(git submodule sync --recursive)’ exited with non-zero status 128: Fetching origin\nHEAD is now at f2c1ddc no summary available\nfatal: 'submodule' appears to be a git command, but we were not\nable to execute it. Maybe git-submodule is broken?\n")
(package-built-in-p name (version-to-list version))
(or (not version) (let ((pkg-desc (cdr (assq name package-alist)))) (and pkg-desc (version-list-<= (version-to-list version) (if (functionp 'package-desc-vers) (package-desc-vers pkg-desc) (progn (or (and (memq (type-of (car pkg-desc)) cl-struct-package-desc-tags) t) (signal 'wrong-type-argument (list 'package-desc (car pkg-desc)))) (aref (car pkg-desc) 2)))))) (package-built-in-p name (version-to-list version)))
(not (or (not version) (let ((pkg-desc (cdr (assq name package-alist)))) (and pkg-desc (version-list-<= (version-to-list version) (if (functionp 'package-desc-vers) (package-desc-vers pkg-desc) (progn (or (and (memq (type-of (car pkg-desc)) cl-struct-package-desc-tags) t) (signal 'wrong-type-argument (list 'package-desc (car pkg-desc)))) (aref (car pkg-desc) 2)))))) (package-built-in-p name (version-to-list version))))
quelpa-version>-p(font-lock+ "Command ’(git submodule sync --recursive)’ exited with non-zero status 128: Fetching origin\nHEAD is now at f2c1ddc no summary available\nfatal: 'submodule' appears to be a git command, but we were not\nable to execute it. Maybe git-submodule is broken?\n")
(if (quelpa-version>-p name version) (progn version))
(let ((version (condition-case err (quelpa-build-checkout name config dir) (error "Failed to checkout `%s': `%s'" name (error-message-string err))))) (if (quelpa-version>-p name version) (progn version)))
(if (or (and (assq name package-alist) (not quelpa-upgrade-p)) (and (not config) (quelpa-message t "no recipe found for package `%s'" name))) nil (let ((version (condition-case err (quelpa-build-checkout name config dir) (error "Failed to checkout `%s': `%s'" name (error-message-string err))))) (if (quelpa-version>-p name version) (progn version))))
(let ((config x3) (name x2)) (if (or (and (assq name package-alist) (not quelpa-upgrade-p)) (and (not config) (quelpa-message t "no recipe found for package `%s'" name))) nil (let ((version (condition-case err (quelpa-build-checkout name config dir) (error "Failed to checkout `%s': `%s'" name (error-message-string err))))) (if (quelpa-version>-p name version) (progn version)))))
(let* ((x2 (car x0)) (x3 (cdr x0))) (let ((config x3) (name x2)) (if (or (and (assq name package-alist) (not quelpa-upgrade-p)) (and (not config) (quelpa-message t "no recipe found for package `%s'" name))) nil (let ((version (condition-case err (quelpa-build-checkout name config dir) (error "Failed to checkout `%s': `%s'" name (error-message-string err))))) (if (quelpa-version>-p name version) (progn version))))))
(let ((x0 rcp) (quelpa-build-stable quelpa-stable-p)) (let* ((x2 (car x0)) (x3 (cdr x0))) (let ((config x3) (name x2)) (if (or (and (assq name package-alist) (not quelpa-upgrade-p)) (and (not config) (quelpa-message t "no recipe found for package `%s'" name))) nil (let ((version (condition-case err (quelpa-build-checkout name config dir) (error "Failed to checkout `%s': `%s'" name (error-message-string err))))) (if (quelpa-version>-p name version) (progn version)))))))
quelpa-checkout((font-lock+ :fetcher github :repo emacsmirror/font-lock-plus) "%HOMEPATH%/.emacs.d/.cache/quelpa/build/font-lock+")
(let* ((name (car rcp)) (build-dir (expand-file-name (symbol-name name) quelpa-build-dir)) (version (quelpa-checkout rcp build-dir))) (if version (progn (quelpa-archive-file-name (quelpa-build-package (symbol-name name) version (quelpa-build--config-file-list (cdr rcp)) build-dir quelpa-packages-dir)))))
quelpa-build((font-lock+ :fetcher github :repo emacsmirror/font-lock-plus))
(and rcp (quelpa-build rcp))
(let* ((rcp (quelpa-arg-rcp arg)) (file (and rcp (quelpa-build rcp)))) (if file (progn (let* ((pkg-desc (quelpa-get-package-desc file)) (requires (progn (or (and (memq (type-of pkg-desc) cl-struct-package-desc-tags) t) (signal 'wrong-type-argument (list 'package-desc pkg-desc))) (aref pkg-desc 4)))) (if requires (progn (mapc (function (lambda (req) (if (or (equal 'emacs (car req)) (package-installed-p (car req) (car (cdr req)))) nil (quelpa-package-install (car req))))) requires))) (quelpa-package-install-file file)))))
quelpa-package-install((font-lock+ :fetcher github :repo emacsmirror/font-lock-plus))
(let* ((quelpa-upgrade-p (if current-prefix-arg t quelpa-upgrade-p)) (quelpa-stable-p quelpa-stable-p) (cache-item (if (symbolp arg) (list arg) arg))) (quelpa-parse-plist plist) (quelpa-parse-stable cache-item) (quelpa-package-install arg) (quelpa-update-cache cache-item))
(progn (let* ((quelpa-upgrade-p (if current-prefix-arg t quelpa-upgrade-p)) (quelpa-stable-p quelpa-stable-p) (cache-item (if (symbolp arg) (list arg) arg))) (quelpa-parse-plist plist) (quelpa-parse-stable cache-item) (quelpa-package-install arg) (quelpa-update-cache cache-item)))
(if (quelpa-setup-p) (progn (let* ((quelpa-upgrade-p (if current-prefix-arg t quelpa-upgrade-p)) (quelpa-stable-p quelpa-stable-p) (cache-item (if (symbolp arg) (list arg) arg))) (quelpa-parse-plist plist) (quelpa-parse-stable cache-item) (quelpa-package-install arg) (quelpa-update-cache cache-item))))
quelpa((font-lock+ :fetcher github :repo emacsmirror/font-lock-plus))
(if recipe (quelpa recipe) (configuration-layer//warning (concat "Cannot find any recipe for package %S! Be sure " "to add a recipe for it in alist %S.") pkg-name recipes-var))
(let* ((pkg-name (eieio-oref pkg ':name)) (layer (car (eieio-oref pkg ':owners))) (recipe (cons pkg-name (cdr (eieio-oref pkg ':location))))) (if recipe (quelpa recipe) (configuration-layer//warning (concat "Cannot find any recipe for package %S! Be sure " "to add a recipe for it in alist %S.") pkg-name recipes-var)))
configuration-layer//install-from-recipe(#<cfgl-package cfgl-package>)
(cond ((or (null pkg) (eq 'elpa location)) (configuration-layer//install-from-elpa pkg-name) (if pkg (progn (cfgl-package-set-property pkg :lazy-install nil)))) ((and (listp location) (eq 'recipe (car location))) (configuration-layer//install-from-recipe pkg) (cfgl-package-set-property pkg :lazy-install nil)) (t (configuration-layer//warning "Cannot install package %S." pkg-name)))
(condition-case err (cond ((or (null pkg) (eq 'elpa location)) (configuration-layer//install-from-elpa pkg-name) (if pkg (progn (cfgl-package-set-property pkg :lazy-install nil)))) ((and (listp location) (eq 'recipe (car location))) (configuration-layer//install-from-recipe pkg) (cfgl-package-set-property pkg :lazy-install nil)) (t (configuration-layer//warning "Cannot install package %S." pkg-name))) ((debug quote error) (configuration-layer//error (concat "\nAn error occurred while installing %s " "(error: %s)\n") pkg-name err) (spacemacs//redisplay)))
(if (package-installed-p pkg-name min-version) nil (condition-case err (cond ((or (null pkg) (eq 'elpa location)) (configuration-layer//install-from-elpa pkg-name) (if pkg (progn (cfgl-package-set-property pkg :lazy-install nil)))) ((and (listp location) (eq 'recipe (car location))) (configuration-layer//install-from-recipe pkg) (cfgl-package-set-property pkg :lazy-install nil)) (t (configuration-layer//warning "Cannot install package %S." pkg-name))) ((debug quote error) (configuration-layer//error (concat "\nAn error occurred while installing %s " "(error: %s)\n") pkg-name err) (spacemacs//redisplay))))
(let* ((layer (if pkg (progn (car (eieio-oref pkg ':owners))))) (location (if pkg (progn (eieio-oref pkg ':location)))) (min-version (if pkg (progn (eieio-oref pkg ':min-version))))) (spacemacs-buffer/replace-last-line (format "--> installing %s: %s%s... [%s/%s]" (if layer "package" "dependency") pkg-name (if layer (format "@%S" layer) "") installed-count not-inst-count) t) (spacemacs//redisplay) (if (package-installed-p pkg-name min-version) nil (condition-case err (cond ((or (null pkg) (eq 'elpa location)) (configuration-layer//install-from-elpa pkg-name) (if pkg (progn (cfgl-package-set-property pkg :lazy-install nil)))) ((and (listp location) (eq 'recipe (car location))) (configuration-layer//install-from-recipe pkg) (cfgl-package-set-property pkg :lazy-install nil)) (t (configuration-layer//warning "Cannot install package %S." pkg-name))) ((debug quote error) (configuration-layer//error (concat "\nAn error occurred while installing %s " "(error: %s)\n") pkg-name err) (spacemacs//redisplay)))))
configuration-layer//install-package(#<cfgl-package cfgl-package>)
(progn (setq installed-count (1+ installed-count)) (configuration-layer//install-package pkg))
(if (and pkg (memq (eieio-oref pkg ':step) '(bootstrap pre))) (progn (setq installed-count (1+ installed-count)) (configuration-layer//install-package pkg)))
(let ((pkg (configuration-layer/get-package pkg-name))) (if (and pkg (memq (eieio-oref pkg ':step) '(bootstrap pre))) (progn (setq installed-count (1+ installed-count)) (configuration-layer//install-package pkg))))
(while --dolist-tail-- (setq pkg-name (car --dolist-tail--)) (let ((pkg (configuration-layer/get-package pkg-name))) (if (and pkg (memq (eieio-oref pkg ':step) '(bootstrap pre))) (progn (setq installed-count (1+ installed-count)) (configuration-layer//install-package pkg)))) (setq --dolist-tail-- (cdr --dolist-tail--)))
(let ((--dolist-tail-- upkg-names) pkg-name) (while --dolist-tail-- (setq pkg-name (car --dolist-tail--)) (let ((pkg (configuration-layer/get-package pkg-name))) (if (and pkg (memq (eieio-oref pkg ':step) '(bootstrap pre))) (progn (setq installed-count (1+ installed-count)) (configuration-layer//install-package pkg)))) (setq --dolist-tail-- (cdr --dolist-tail--))))
(let ((delayed-warnings-backup delayed-warnings-list)) (spacemacs-buffer/append (format "Found %s new package(s) to install...\n" not-inst-count)) (configuration-layer/retrieve-package-archives) (setq installed-count 0) (spacemacs//redisplay) (let ((--dolist-tail-- upkg-names) pkg-name) (while --dolist-tail-- (setq pkg-name (car --dolist-tail--)) (let ((pkg (configuration-layer/get-package pkg-name))) (if (and pkg (memq (eieio-oref pkg ':step) '(bootstrap pre))) (progn (setq installed-count (1+ installed-count)) (configuration-layer//install-package pkg)))) (setq --dolist-tail-- (cdr --dolist-tail--)))) (let ((--dolist-tail-- upkg-names) pkg-name) (while --dolist-tail-- (setq pkg-name (car --dolist-tail--)) (let ((pkg (configuration-layer/get-package pkg-name))) (if (and pkg (memq (eieio-oref pkg ':step) '(bootstrap pre))) nil (setq installed-count (1+ installed-count)) (configuration-layer//install-package pkg))) (setq --dolist-tail-- (cdr --dolist-tail--)))) (spacemacs-buffer/append "\n") (if init-file-debug nil (setq delayed-warnings-list delayed-warnings-backup)))
(progn (spacemacs-buffer/set-mode-line "Installing packages..." t) (let ((delayed-warnings-backup delayed-warnings-list)) (spacemacs-buffer/append (format "Found %s new package(s) to install...\n" not-inst-count)) (configuration-layer/retrieve-package-archives) (setq installed-count 0) (spacemacs//redisplay) (let ((--dolist-tail-- upkg-names) pkg-name) (while --dolist-tail-- (setq pkg-name (car --dolist-tail--)) (let ((pkg (configuration-layer/get-package pkg-name))) (if (and pkg (memq (eieio-oref pkg ':step) '(bootstrap pre))) (progn (setq installed-count (1+ installed-count)) (configuration-layer//install-package pkg)))) (setq --dolist-tail-- (cdr --dolist-tail--)))) (let ((--dolist-tail-- upkg-names) pkg-name) (while --dolist-tail-- (setq pkg-name (car --dolist-tail--)) (let ((pkg (configuration-layer/get-package pkg-name))) (if (and pkg (memq (eieio-oref pkg ':step) '(bootstrap pre))) nil (setq installed-count (1+ installed-count)) (configuration-layer//install-package pkg))) (setq --dolist-tail-- (cdr --dolist-tail--)))) (spacemacs-buffer/append "\n") (if init-file-debug nil (setq delayed-warnings-list delayed-warnings-backup))))
(if upkg-names (progn (spacemacs-buffer/set-mode-line "Installing packages..." t) (let ((delayed-warnings-backup delayed-warnings-list)) (spacemacs-buffer/append (format "Found %s new package(s) to install...\n" not-inst-count)) (configuration-layer/retrieve-package-archives) (setq installed-count 0) (spacemacs//redisplay) (let ((--dolist-tail-- upkg-names) pkg-name) (while --dolist-tail-- (setq pkg-name (car --dolist-tail--)) (let ((pkg (configuration-layer/get-package pkg-name))) (if (and pkg (memq (eieio-oref pkg ':step) '(bootstrap pre))) (progn (setq installed-count (1+ installed-count)) (configuration-layer//install-package pkg)))) (setq --dolist-tail-- (cdr --dolist-tail--)))) (let ((--dolist-tail-- upkg-names) pkg-name) (while --dolist-tail-- (setq pkg-name (car --dolist-tail--)) (let ((pkg (configuration-layer/get-package pkg-name))) (if (and pkg (memq (eieio-oref pkg ':step) '(bootstrap pre))) nil (setq installed-count (1+ installed-count)) (configuration-layer//install-package pkg))) (setq --dolist-tail-- (cdr --dolist-tail--)))) (spacemacs-buffer/append "\n") (if init-file-debug nil (setq delayed-warnings-list delayed-warnings-backup)))))
(let* ((upkg-names (configuration-layer//get-uninstalled-packages packages)) (not-inst-count (length upkg-names)) installed-count) (if upkg-names (progn (spacemacs-buffer/set-mode-line "Installing packages..." t) (let ((delayed-warnings-backup delayed-warnings-list)) (spacemacs-buffer/append (format "Found %s new package(s) to install...\n" not-inst-count)) (configuration-layer/retrieve-package-archives) (setq installed-count 0) (spacemacs//redisplay) (let ((--dolist-tail-- upkg-names) pkg-name) (while --dolist-tail-- (setq pkg-name (car --dolist-tail--)) (let ((pkg (configuration-layer/get-package pkg-name))) (if (and pkg (memq (eieio-oref pkg ':step) '(bootstrap pre))) (progn (setq installed-count (1+ installed-count)) (configuration-layer//install-package pkg)))) (setq --dolist-tail-- (cdr --dolist-tail--)))) (let ((--dolist-tail-- upkg-names) pkg-name) (while --dolist-tail-- (setq pkg-name (car --dolist-tail--)) (let ((pkg (configuration-layer/get-package pkg-name))) (if (and pkg (memq (eieio-oref pkg ':step) '(bootstrap pre))) nil (setq installed-count (1+ installed-count)) (configuration-layer//install-package pkg))) (setq --dolist-tail-- (cdr --dolist-tail--)))) (spacemacs-buffer/append "\n") (if init-file-debug nil (setq delayed-warnings-list delayed-warnings-backup))))))
(let ((display-buffer-alist '(("\\(\\*Compile-Log\\*\\)\\|\\(\\*Warnings\\*\\)" (display-buffer-in-side-window) (inhibit-same-window . t) (side . bottom) (window-height . 0.2))))) (configuration-layer//configure-quelpa) (let* ((upkg-names (configuration-layer//get-uninstalled-packages packages)) (not-inst-count (length upkg-names)) installed-count) (if upkg-names (progn (spacemacs-buffer/set-mode-line "Installing packages..." t) (let ((delayed-warnings-backup delayed-warnings-list)) (spacemacs-buffer/append (format "Found %s new package(s) to install...\n" not-inst-count)) (configuration-layer/retrieve-package-archives) (setq installed-count 0) (spacemacs//redisplay) (let ((--dolist-tail-- upkg-names) pkg-name) (while --dolist-tail-- (setq pkg-name (car --dolist-tail--)) (let ((pkg (configuration-layer/get-package pkg-name))) (if (and pkg (memq (eieio-oref pkg ':step) '(bootstrap pre))) (progn (setq installed-count (1+ installed-count)) (configuration-layer//install-package pkg)))) (setq --dolist-tail-- (cdr --dolist-tail--)))) (let ((--dolist-tail-- upkg-names) pkg-name) (while --dolist-tail-- (setq pkg-name (car --dolist-tail--)) (let ((pkg (configuration-layer/get-package pkg-name))) (if (and pkg (memq (eieio-oref pkg ':step) '(bootstrap pre))) nil (setq installed-count (1+ installed-count)) (configuration-layer//install-package pkg))) (setq --dolist-tail-- (cdr --dolist-tail--)))) (spacemacs-buffer/append "\n") (if init-file-debug nil (setq delayed-warnings-list delayed-warnings-backup)))))))
configuration-layer//install-packages((ac-ispell ace-jump-helm-line ace-link ace-window aggressive-indent anaconda-mode async auctex auto-compile auto-complete auto-dictionary auto-highlight-symbol auto-yasnippet avy bind-key bind-map browse-at-remote bundler cargo cc-mode centered-cursor-mode chruby cider cider-eval-sexp-fu clang-format clean-aindent-mode clojure-mode clojure-snippets column-enforce-mode company company-anaconda company-auctex company-c-headers company-rtags company-statistics company-tern company-web counsel-projectile css-mode cython-mode define-word desktop diff-hl diff-mode diminish disaster doom-modeline dotenv-mode dumb-jump editorconfig elisp-slime-nav emmet-mode esh-help eshell-prompt-extras eshell-z eval-sexp-fu evil evil-anzu evil-args evil-cleverparens evil-ediff evil-escape evil-exchange evil-goggles evil-iedit-state evil-indent-plus evil-lion evil-lisp-state evil-magit evil-matchit evil-nerd-commenter evil-numbers evil-org evil-surround evil-tutor evil-unimpaired evil-visual-mark-mode evil-visualstar expand-region eyebrowse fancy-battery fill-column-indicator flx-ido flycheck flycheck-pos-tip flycheck-rtags flycheck-rust flyspell flyspell-correct flyspell-correct-helm flyspell-popup font-lock+ forge fuzzy gdb-mi gh-md gist git-commit git-gutter git-gutter+ git-gutter-fringe git-gutter-fringe+ git-link git-messenger git-timemachine gitattributes-mode gitconfig-mode github-clone github-search gitignore-mode gitignore-templates gnuplot golden-ratio google-c-style google-translate haml-mode helm helm-ag helm-c-yasnippet helm-company helm-css-scss helm-descbinds helm-flx helm-git-grep helm-gitignore helm-make helm-mode-manager helm-org-rifle helm-projectile helm-purpose helm-pydoc helm-rtags helm-swoop helm-themes helm-xref highlight-indentation highlight-numbers highlight-parentheses hippie-exp hl-todo htmlize hungry-delete hydra impatient-mode importmagic indent-guide js-doc js2-mode js2-refactor json-mode json-navigator json-reformat json-snatcher less-css-mode link-hint live-py-mode livid-mode lorem-ipsum macrostep magit magit-gitflow magit-svn markdown-mode markdown-toc minitest mmm-mode move-text multi-term nameless open-junk-file org-brain org-bullets org-download org-journal org-mime org-plus-contrib org-pomodoro org-present org-projectile orgit overseer paradox password-generator pcre2el persp-mode pip-requirements pipenv pippel popup popwin powershell prettier-js projectile pug-mode py-isort pyenv-mode pytest pyvenv racer rainbow-delimiters rake ranger rbenv request restart-emacs robe rspec-mode rtags rubocop ruby-hash-syntax ruby-refactor ruby-test-mode ruby-tools rust-mode rvm sass-mode scss-mode seeing-is-believing shell-pop skewer-mode slim-mode smartparens smeargle spaceline spaceline-all-the-icons srefactor stickyfunc-enhance string-inflection symon tagedit tern toc-org toml-mode transient treemacs treemacs-evil treemacs-projectile undo-tree use-package uuidgen vi-tilde-fringe volatile-highlights web-beautify web-mode which-key window-purpose winum writeroom-mode ws-butler xterm-color yapfify yasnippet yasnippet-snippets))
(let ((packages (append (configuration-layer//filter-distant-packages configuration-layer--used-packages t '(not (oref pkg :lazy-install))) (if (eq 'all dotspacemacs-install-packages) (progn (let (all-other-packages) (let ((--dolist-tail-- (configuration-layer/get-layers-list)) layer) (while --dolist-tail-- (setq layer (car --dolist-tail--)) (let ((configuration-layer--declared-layers-usedp nil) (configuration-layer--load-packages-files t)) (configuration-layer/declare-layer layer) (let* ((obj (configuration-layer/get-layer layer)) (pkgs (if obj (progn (eieio-oref obj ':packages))))) (configuration-layer/make-packages-from-layers (list layer)) (let ((--dolist-tail-- pkgs) pkg) (while --dolist-tail-- (setq pkg (car --dolist-tail--)) (let ((pkg-name (if (listp pkg) (car pkg) pkg))) (if (member pkg-name all-other-packages) all-other-packages (setq all-other-packages (cons pkg-name all-other-packages)))) (setq --dolist-tail-- (cdr --dolist-tail--)))))) (setq --dolist-tail-- (cdr --dolist-tail--)))) (configuration-layer//filter-distant-packages all-other-packages nil))))))) (configuration-layer//install-packages packages) (if (and (or (eq 'used dotspacemacs-install-packages) (eq 'used-only dotspacemacs-install-packages)) (not configuration-layer-force-distribution) (not configuration-layer-exclude-all-layers)) (progn (configuration-layer/delete-orphan-packages packages))))
(progn (let ((packages (append (configuration-layer//filter-distant-packages configuration-layer--used-packages t '(not (oref pkg :lazy-install))) (if (eq 'all dotspacemacs-install-packages) (progn (let (all-other-packages) (let ((--dolist-tail-- (configuration-layer/get-layers-list)) layer) (while --dolist-tail-- (setq layer (car --dolist-tail--)) (let ((configuration-layer--declared-layers-usedp nil) (configuration-layer--load-packages-files t)) (configuration-layer/declare-layer layer) (let* ((obj (configuration-layer/get-layer layer)) (pkgs (if obj (progn (eieio-oref obj ':packages))))) (configuration-layer/make-packages-from-layers (list layer)) (let ((--dolist-tail-- pkgs) pkg) (while --dolist-tail-- (setq pkg (car --dolist-tail--)) (let ((pkg-name (if (listp pkg) (car pkg) pkg))) (if (member pkg-name all-other-packages) all-other-packages (setq all-other-packages (cons pkg-name all-other-packages)))) (setq --dolist-tail-- (cdr --dolist-tail--)))))) (setq --dolist-tail-- (cdr --dolist-tail--)))) (configuration-layer//filter-distant-packages all-other-packages nil))))))) (configuration-layer//install-packages packages) (if (and (or (eq 'used dotspacemacs-install-packages) (eq 'used-only dotspacemacs-install-packages)) (not configuration-layer-force-distribution) (not configuration-layer-exclude-all-layers)) (progn (configuration-layer/delete-orphan-packages packages)))))
(if spacemacs-sync-packages (progn (let ((packages (append (configuration-layer//filter-distant-packages configuration-layer--used-packages t '(not (oref pkg :lazy-install))) (if (eq 'all dotspacemacs-install-packages) (progn (let (all-other-packages) (let ((--dolist-tail-- (configuration-layer/get-layers-list)) layer) (while --dolist-tail-- (setq layer (car --dolist-tail--)) (let ((configuration-layer--declared-layers-usedp nil) (configuration-layer--load-packages-files t)) (configuration-layer/declare-layer layer) (let* ((obj (configuration-layer/get-layer layer)) (pkgs (if obj (progn (eieio-oref obj ':packages))))) (configuration-layer/make-packages-from-layers (list layer)) (let ((--dolist-tail-- pkgs) pkg) (while --dolist-tail-- (setq pkg (car --dolist-tail--)) (let ((pkg-name (if (listp pkg) (car pkg) pkg))) (if (member pkg-name all-other-packages) all-other-packages (setq all-other-packages (cons pkg-name all-other-packages)))) (setq --dolist-tail-- (cdr --dolist-tail--)))))) (setq --dolist-tail-- (cdr --dolist-tail--)))) (configuration-layer//filter-distant-packages all-other-packages nil))))))) (configuration-layer//install-packages packages) (if (and (or (eq 'used dotspacemacs-install-packages) (eq 'used-only dotspacemacs-install-packages)) (not configuration-layer-force-distribution) (not configuration-layer-exclude-all-layers)) (progn (configuration-layer/delete-orphan-packages packages))))))
configuration-layer//load()
(cond (changed-since-last-dump-p (configuration-layer//load) (if (spacemacs/emacs-with-pdumper-set-p) (progn (configuration-layer/message "Layer list has changed since last dump.") (configuration-layer//dump-emacs)))) (spacemacs-force-dump (configuration-layer//load) (if (spacemacs/emacs-with-pdumper-set-p) (progn (configuration-layer/message (concat "--force-dump passed on the command line, " "forcing a redump.")) (configuration-layer//dump-emacs)))) ((spacemacs-is-dumping-p) (configuration-layer//load) (configuration-layer/message "Dumping Emacs...")) ((and (spacemacs/emacs-with-pdumper-set-p) (spacemacs-run-from-dump-p)) (configuration-layer/message "Running from a dumped file. Skipping the loading process!")) (t (configuration-layer//load) (if (spacemacs/emacs-with-pdumper-set-p) (progn (configuration-layer/message (concat "Layer list has not changed since last time. " "Skipping dumping process!"))))))
configuration-layer/load()
(let ((file-name-handler-alist nil)) (require 'core-spacemacs) (if (eq 'dumping spacemacs-dump-mode) nil (if (boundp 'load-path-backup) (progn (setq load-path load-path-backup)))) (configuration-layer/load-lock-file) (spacemacs/init) (configuration-layer/stable-elpa-download-tarball) (configuration-layer/load) (spacemacs-buffer/display-startup-note) (spacemacs/setup-startup-hook) (if (eq 'dumping spacemacs-dump-mode) nil (global-font-lock-mode) (global-undo-tree-mode t) (winner-mode t)) (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 (eq 'dumping spacemacs-dump-mode) (progn (setq load-path-backup load-path) (global-undo-tree-mode -1) (setq spacemacs-dump-mode 'dumped) (garbage-collect))))
(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) (if (eq 'dumping spacemacs-dump-mode) nil (if (boundp 'load-path-backup) (progn (setq load-path load-path-backup)))) (configuration-layer/load-lock-file) (spacemacs/init) (configuration-layer/stable-elpa-download-tarball) (configuration-layer/load) (spacemacs-buffer/display-startup-note) (spacemacs/setup-startup-hook) (if (eq 'dumping spacemacs-dump-mode) nil (global-font-lock-mode) (global-undo-tree-mode t) (winner-mode t)) (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 (eq 'dumping spacemacs-dump-mode) (progn (setq load-path-backup load-path) (global-undo-tree-mode -1) (setq spacemacs-dump-mode 'dumped) (garbage-collect)))))
eval-buffer(#<buffer *load*> nil "%HOMEPATH%/.emacs.d/init.el" nil t) ; Reading at buffer position 2288
load-with-code-conversion("%HOMEPATH%/.emacs.d/init.el" "%HOMEPATH%/.emacs.d/init.el" t t)
load("%HOMEPATH%/.emacs.d/init" t t)
#f(compiled-function () #<bytecode 0x1000be22d>)()
command-line()
normal-top-level()
@manumc I found another issue on GitHub. It seems to be a Windows problem?
This solved my problem: open the .emacs.d/.cache/quelpa/build/package-name/xxxx.el
and see if the newline is in dos
style. Run dos2unix
in emacs, save file and restart emacs.
I have been having the same issue on my Mac but when I tried it (the same GitHub repos with github
fetcher) at work on a Windows 10 system, everything worked like a charm.
I also tested the files for ^M
and there's nothing like that.
Update: The line-endings 'were' DOS. I changed them to UNIX and it works on Mac as well now.
Just in case someone is here with the same problem.
I solved it by setting git config --global core.autocrlf false
AND activating spacemacs from PowerShell instead of bash
P.S. You would probably have to rm -rf
your spacemacs folder and re-clone it, to ensure that all line endings are unix-style
I have been having the same issue on my Mac but when I tried it (the same GitHub repos with
github
fetcher) at work on a Windows 10 system, everything worked like a charm.I also tested the files for
^M
and there's nothing like that.Update: The line-endings 'were' DOS. I changed them to UNIX and it works on Mac as well now.
Could you please help me with my issue , I cant recognize whats the problem is . Here is my quelpa file please take a look.
`; evil-unimpaired.el --- Pairs of handy bracket mappings.
;; Author: Sylvain Benner sylvain.benner@gmail.com ;; Keywords: evil, vim-unimpaired, spacemacs ;; Version: 0.1 ;; Package-Requires: ((dash "2.12.0") (f "0.18.0"))
;; This file is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation; either version 3, or (at your option) ;; any later version.
;; This file is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs; see the file COPYING. If not, write to ;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, ;; Boston, MA 02110-1301, USA.
;;; Commentary:
;; This is a port of vim-unimpaired https://github.com/tpope/vim-unimpaired ;; `evil-unimpaired' provides pairs of handy bracket mappings to quickly navigate ;; to previous/next thing and more.
;;; Code:
(require 'dash) (require 'f)
(defun evil-unimpaired//find-relative-filename (offset) (when buffer-file-name (let* ((directory (f-dirname buffer-file-name)) (files (f--files directory (not (s-matches? "^\.?#" it)))) (index (+ (-elem-index buffer-file-name files) offset)) (file (and (>= index 0) (nth index files)))) (when file (f-expand file directory)))))
(defun evil-unimpaired/previous-file () (interactive) (-if-let (filename (evil-unimpaired//find-relative-filename -1)) (find-file filename) (user-error "No previous file")))
(defun evil-unimpaired/next-file () (interactive) (-if-let (filename (evil-unimpaired//find-relative-filename 1)) (find-file filename) (user-error "No next file")))
(defun evil-unimpaired/paste-above () (interactive) (setq this-command 'evil-paste-after) (evil-insert-newline-above) (evil-paste-after 1))
(defun evil-unimpaired/paste-below () (interactive) (setq this-command 'evil-paste-after) (evil-insert-newline-below) (evil-paste-after 1))
(defun evil-unimpaired/insert-space-above (count) (interactive "p") (dotimes (_ count) (save-excursion (evil-insert-newline-above))))
(defun evil-unimpaired/insert-space-below (count) (interactive "p") (dotimes (_ count) (save-excursion (evil-insert-newline-below))))
(defun evil-unimpaired/next-frame () (interactive) (select-frame-set-input-focus (next-frame)))
(defun evil-unimpaired/previous-frame () (interactive) (select-frame-set-input-focus (previous-frame)))
;; from tpope's unimpaired
(define-key evil-normal-state-map (kbd "[ SPC")
'evil-unimpaired/insert-space-above)
(define-key evil-normal-state-map (kbd "] SPC")
'evil-unimpaired/insert-space-below)
(define-key evil-normal-state-map (kbd "[ e") 'move-text-up)
(define-key evil-normal-state-map (kbd "] e") 'move-text-down)
(define-key evil-visual-state-map (kbd "[ e") ":move'<--1")
(define-key evil-visual-state-map (kbd "] e") ":move'>+1")
;; (define-key evil-visual-state-map (kbd "[ e") 'move-text-up)
;; (define-key evil-visual-state-map (kbd "] e") 'move-text-down)
;; navigation
(define-key evil-motion-state-map (kbd "[ b") 'previous-buffer)
(define-key evil-motion-state-map (kbd "] b") 'next-buffer)
(define-key evil-motion-state-map (kbd "[ f") 'evil-unimpaired/previous-file)
(define-key evil-motion-state-map (kbd "] f") 'evil-unimpaired/next-file)
(define-key evil-motion-state-map (kbd "] l") 'spacemacs/next-error)
(define-key evil-motion-state-map (kbd "[ l") 'spacemacs/previous-error)
(define-key evil-motion-state-map (kbd "] q") 'spacemacs/next-error)
(define-key evil-motion-state-map (kbd "[ q") 'spacemacs/previous-error)
(define-key evil-motion-state-map (kbd "[ t") 'evil-unimpaired/previous-frame)
(define-key evil-motion-state-map (kbd "] t") 'evil-unimpaired/next-frame)
(define-key evil-motion-state-map (kbd "[ w") 'previous-multiframe-window)
(define-key evil-motion-state-map (kbd "] w") 'next-multiframe-window)
;; select pasted text
(define-key evil-normal-state-map (kbd "g p") (kbd "[ v
]"))
;; paste above or below with newline
(define-key evil-normal-state-map (kbd "[ p") 'evil-unimpaired/paste-above)
(define-key evil-normal-state-map (kbd "] p") 'evil-unimpaired/paste-below)
(provide 'evil-unimpaired) ;;; evil-unimpaired.el ends here. `
@Zotac101
You said that you posted your quelpa
file but that's the contents of evil-unimpaired.el
.
I don't know much about file encoding, but I don't think it's visible when a files contents are posted in a github comment box.
But you can view a files encoding with: C-h v
buffer-file-coding-system
RET
source: https://stackoverflow.com/questions/10500323/how-to-see-the-files-encoding-in-emacs
The comment (by kenkangxgwe) before the one you quoted might have the solution your looking for:
This solved my problem: open the .emacs.d/.cache/quelpa/build/package-name/xxxx.el and see if the newline is in dos style. Run dos2unix in emacs, save file and restart emacs.
https://github.com/syl20bnr/spacemacs/issues/10645#issuecomment-482424161
Spacemacs has key bindings for converting file encoding:
SPC f C d
-> unix2dos
SPC f C u
-> dos2unix
It seem like most (I checked 5+ files in random directories) if not all Spacemacs files (including quelpa.el
) says dos
for me, but the elpa/<emacs version>/develop
package files say unix
.
I don't have any autocrlf
settings in either: ~/.gitconfig
or .emacs.d/.git/CONFIG
.
I don't remember having encountered the issues mentioned above.
(autohotkey auto-completion
(clojure :variables)
dap
(dart :variables dart-sdk-path "C:/tools/dart-sdk/" dart-enable-analysis t)
emacs-lisp git helm
(html :variables css-enable-lsp t)
(javascript :variables)
lsp markdown multiple-cursors org python ruby shell spell-checking syntax-checking treemacs version-control)
SPC f C u -> dos2unix
gives the output (undefined)
i am running in vim mode this is a fresh install so dont understand know what is missing.
Tried both on my Ubuntu system and windows system same problem appearing.
SPC f C u
and SPC f C d
are working for me in Ubuntu 18.04 and Windows 1903,
on both the master
and develop
branches, with updated packages.
But I think we went off on a tangent regarding file encoding when your issue might be unrelated.
Could you please help me with my issue , I cant recognize whats the problem is .
I should have asked what problem your seeing. If you only had similar error messages as this issues author, then it might not be quelpa related.
There's currently an issue with Emacs that's marked as fixed in the next version.
This issue has a workaround: Failed to download 'gnu' archive. Bad request. (Solution included) #12535
To properly document my issue here i am including screenshots for better understanding of the issues.
Is Emacs able to find git
?
S-M-;
(executable-find "git")
RET
Firstly : Sorry for replying so late was caught up with some work. Now : To answer your question
Result :-
Run 2 :-
Result : -
' nil '
Tried these 2 combinations and the results were as follows. So now what should i do .
I am newbie to emacs so its being harder for me to make sense ( am used to simpler vim).
Hello
======================= UPDATE =======================
I just figured out what was causing my issues and it was quite simple to be honest .
The fix is to have git installed on your system.
I did it though Chocolatey
I figured it out on my own though the fix was by mere chance at best , just updating my post here so that anyone facing this problem in future can look at my experience and maybe fix their problems .
There seems to be: hybrid-mode.el evil-unimpaired.el files in: layers/+distributions/spacemacs-bootstrap/local which seems to break if you change the branch for example master -> development and you auto.crlf is true.
I still get this error, and my emacs do knows about git.
Every time I open emacs it tries to install this package font-lock+
but it can't find it and therefore it takes extremely long time for it to open. Any way to remove this dependency until this issue is fixed?
@roiholtzman Make sure that you have updated the packages, it might have been fixed upstream.
If that doesn't work, then you could try to add font-lock+
to the dotspacemacs-excluded-packages
variable in .spacemacs
.
Could you post your system info, press SPC h d s
to copy it to your clipboard.
It might be helpful for figuring out with which setup the issue occurs.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!
@roiholtzman Make sure that you have updated the packages, it might have been fixed upstream.
If that doesn't work, then you could try to add
font-lock+
to thedotspacemacs-excluded-packages
variable in.spacemacs
.Could you post your system info, press
SPC h d s
to copy it to your clipboard. It might be helpful for figuring out with which setup the issue occurs.
Thanks, but in the meantime I have switched to doom emacs, so I don't have this issue anymore.
Let's close this then.
Please open a new issue linking to this one if you encounter it again.
Description :octocat:
Quelpa packages will not install; complain about missing 'Package Version'/
Reproduction guide :beetle:
Observed behaviour: :eyes: :broken_heart:
Similar Error message for all quelpa packages installed from my spacemacs cache
Expected behaviour: :heart: :smile:
Packages install normally.
System Info :computer:
Backtrace :paw_prints:
Here is a partial backtrace on installing font-lock+: