Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install emacs-snippets error #812

Closed
ghost opened this issue Aug 17, 2018 · 24 comments
Closed

install emacs-snippets error #812

ghost opened this issue Aug 17, 2018 · 24 comments
Labels
re:packages Pertains to package & dependency management status:resolved Issue was addressed internally

Comments

@ghost
Copy link

ghost commented Aug 17, 2018

try doom current develop on windows 10

when make quickstart install the package emacs-snippets
FATAL ERROR: (wrong-type-argument package-desc nil)

01
02
03

anyone know this and help me?

@chengyi
Copy link

chengyi commented Aug 17, 2018

@wareslacker this seems the package repo info isn't downloaded correctly. Try again or make emacs run behind proxy.

@hlissner hlissner added the status:unconfirmed Still under investigation. label Aug 17, 2018
@hlissner
Copy link
Member

@wareslacker What version of Emacs are you running?

@ghost
Copy link
Author

ghost commented Aug 17, 2018

@chengyi @hlissner Thanks for your reply.

@chengyi I try this some times.

@hlissner I tested emacs 26.1 x64 and 27.0.50 x64

from here : https://github.com/m-parashar/emax64/releases
emax64-20180529
emax64-pdumper-20180619

@hackeryarn
Copy link
Contributor

This is related to https://github.com/hlissner/doom-emacs/issues/647

@hlissner
Copy link
Member

hlissner commented Aug 21, 2018

I'm still investigating this issue, but for the time being, here is a workaround for the issue:

  1. Remove the +snippets flag on the :config default module in ~/.doom.d/init.el. (The +snippets flag was removed in later commits on develop)
  2. Clone https://github.com/hlissner/emacs-snippets to ~/.doom.d/snippets
  3. Run ~/.emacs.d/bin/doom refresh (or make in ~/.emacs.d)

@hlissner
Copy link
Member

A user on our Discord, Vezill, informed me that he overcame this issue by running the doom install script in git bash on Windows. If anyone has this trouble on windows and can try this method, let me know how it fares for you.

@ghost
Copy link
Author

ghost commented Aug 31, 2018

@hlissner Thank you very much !
In git bash , looks like every thing is ok.

git for windows version is Git-2.18.0-64-bit
and the last msys2-x86_64-latest

  1. install gcc and make in msys2

  2. git clone -b develop https://github.com/hlissner/doom-emacs ~/.emacs.d

cp ~/.emacs.d/init.example.el ~/.doom.d/init.el

3.In Windows PowerShell can run the command make quickstart or make install and so on , but the emacs-snippets will install error.

so use the git bash below 👍

4.I can not use the command make

gitbash

but can run the command ./doom quickstart or ./doom install

02
03
04
05
06

Thanks again!

@hlissner hlissner added is:bug Something isn't working as intended re:packages Pertains to package & dependency management and removed status:unconfirmed Still under investigation. labels Sep 23, 2018
@maikol-solis
Copy link
Contributor

maikol-solis commented Feb 7, 2019

A user on our Discord, Vezill, informed me that he overcame this issue by running the doom install script in git bash on Windows. If anyone has this trouble on windows and can try this method, let me know how it fares for you.

Thanks @hlissner for your help.

I have the same issue in linux (openSUSE 15) with emac 26.1. Both emacs-snippets and all-the-icons refuses to be installed.

Installing emacs-snippets
  FATAL ERROR: (wrong-type-argument package-desc nil)
  Run again with the -d flag for details
Installing all-the-icons
  FATAL ERROR: (wrong-type-argument package-desc nil)
  Run again with the -d flag for details

A more detailed output.

https://pastebin.com/n0xUpSvR

@hlissner
Copy link
Member

@maikol-solis I'm not familiar with openSUSE. Does bin/doom doctor report any irregularities? It should detect some of the most common issues.

@maikol-solis
Copy link
Contributor

@hlissner

This is my bin/doom doctor

Doom Doctor
Emacs v26.1
Doom v2.0.9 (9567b1f9)
shell: /bin/bash
Compiled with:
  XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS NOTIFY ACL
  LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS
  GTK3 X11 MODULES THREADS XWIDGETS LIBSYSTEMD
uname -a:
  Linux linux-ndp3 4.12.14-lp150.12.45-default #1 SMP Mon Jan 14 20:29:59 UTC 2019
  (7a62739) x86_64 x86_64 x86_64 GNU/Linux

Checking your OS...
Checking your fonts...
Checking gnutls/openssl...
Testing your root certificates...
Checking for GNU/BSD tar...
Checking your enabled modules...
  > (:feature snippets) emacs-snippets is not installed
  > (:app write) Couldn’t find languagetool-commandline.jar


There is 1 error!
There is 1 warning!

@hlissner
Copy link
Member

@maikol-solis all-the-icons is no longer installed via quelpa so that shouldn't be a problem anymore. As for emacs-snippets: if you are still experiencing this, try manually deleting the ~/.emacs.d/.local/packages/quelpa/build/emacs-snippets folder, if it exists, and see if that changes anything.

@bittopaz
Copy link

bittopaz commented Mar 7, 2019

I'm also experiencing this issue on my mac, with the 26.1 emacs, and the latest develop branch.

@Nollo
Copy link
Contributor

Nollo commented Mar 8, 2019

@bittopaz try to install gnu-tar brew install gnu-tar

@bittopaz
Copy link

@Nollo works like a charm. Thank you.

@maikol-solis
Copy link
Contributor

@maikol-solis all-the-icons is no longer installed via quelpa so that shouldn't be a problem anymore. As for emacs-snippets: if you are still experiencing this, try manually deleting the ~/.emacs.d/.local/packages/quelpa/build/emacs-snippets folder, if it exists, and see if that changes anything.

The folder doesn't exist in my machine, and it changes nothing.

Doom Doctor
Emacs v26.1
Doom v2.0.9 (a258995d)
shell: /bin/bash
Compiled with:
  XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS NOTIFY ACL
  LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS
  GTK3 X11 MODULES THREADS XWIDGETS LIBSYSTEMD
uname -a:
  Linux linux-ndp3 4.12.14-lp150.12.48-default #1 SMP Tue Feb 12 14:01:48 UTC 2019
  (268f014) x86_64 x86_64 x86_64 GNU/Linux

Checking your OS...
Checking your fonts...
Checking gnutls/openssl...
Testing your root certificates...
Checking for GNU/BSD tar...
Checking your enabled modules...
  > (:feature snippets) emacs-snippets is not installed


There is 1 error!

@hlissner hlissner added status:unconfirmed Still under investigation. and removed is:bug Something isn't working as intended labels Apr 2, 2019
@agraul
Copy link
Contributor

agraul commented May 10, 2019

I got the same error for emacs-snippets and also for php-extras (running openSUSE Tumbleweed):

Proceed? (y or n) y
Installing emacs-snippets
  FATAL ERROR: (wrong-type-argument package-desc nil)
  Run again with the -d flag for details
Installing php-extras
  FATAL ERROR: (wrong-type-argument package-desc nil)
  Run again with the -d flag for details
Finished!

Is there anything I can do to 1) work around it and 2) help you find the cause ?

@ndunn990
Copy link

Also experiencing this issue on openSUSE Tumbleweed. I've tried a few workarounds, and I've tried poking around here and there...but I'm still a bit of a rookie when it comes to Emacs and still very new to Doom.

cat /etc/os-release 
NAME="openSUSE Tumbleweed"
# VERSION="20190510"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20190510"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20190510"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
LOGO="distributor-logo"

Here's the full error when running refresh.

~/.emacs.d/bin/doom -d refresh
Parsing tar file...
Parsing tar file...79%
Parsing tar file...done
...
  (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((emacs-snippets :fetcher github :repo "hlissner/emacs-snippets" :files ("*")))
  (let (quelpa-upgrade-p) (quelpa recipe))
  (condition-case e (let (quelpa-upgrade-p) (quelpa recipe)) ((debug error) (doom--delete-package-files name) (signal (car e) (cdr e))))
  (if recipe (condition-case e (let (quelpa-upgrade-p) (quelpa recipe)) ((debug error) (doom--delete-package-files name) (signal (car e) (cdr e)))) (package-install name))
  (let* ((recipe (and t (plist-get plist :recipe)))) (if recipe (condition-case e (let (quelpa-upgrade-p) (quelpa recipe)) ((debug error) (doom--delete-package-files name) (signal (car e) (cdr e)))) (package-install name)))
  (let* ((inhibit-message (not doom-debug-mode)) (plist (or plist (cdr (assq name doom-packages))))) (let* ((recipe (and t (plist-get plist :recipe)))) (if recipe (condition-case e (let (quelpa-upgrade-p) (quelpa recipe)) ((debug error) (doom--delete-package-files name) (signal (car e) (cdr e)))) (package-install name))) (if (not (package-installed-p name)) (doom--delete-package-files name) (add-to-list (quote package-selected-packages) name nil (quote eq)) (let* ((p (if (and nil (not ...)) (assoc name doom-packages nil) (assq name doom-packages))) (v plist)) (if p (setcdr p v) (setq doom-packages (cons (setq p (cons name v)) doom-packages)))) name))
  doom-install-package(emacs-snippets (:recipe (emacs-snippets :fetcher github :repo "hlissner/emacs-snippets" :files ("*")) :modules ((:editor . snippets))))
  (and (doom-install-package (car pkg) (cdr pkg)) (setq success t) (quote success))
  (or (and (doom-package-installed-p (car pkg)) (not (doom-package-different-backend-p (car pkg))) (not (doom-package-different-recipe-p (car pkg))) (quote already-installed)) (and (doom-install-package (car pkg) (cdr pkg)) (setq success t) (quote success)) (quote failure))
  (let ((result (or (and (doom-package-installed-p (car pkg)) (not (doom-package-different-backend-p (car pkg))) (not (doom-package-different-recipe-p (car pkg))) (quote already-installed)) (and (doom-install-package (car pkg) (cdr pkg)) (setq success t) (quote success)) (quote failure))) (pin-label (and (plist-member (cdr pkg) :pin) (format " [pinned: %s]" (plist-get (cdr pkg) :pin))))) (progn (princ (format "%s%s" (cond ((eq result (quote already-installed)) (doom-color-apply (quote dark) (doom-color-apply ... "⚠ ALREADY INSTALLED"))) ((eq result (quote success)) (doom-color-apply (quote green) "✓ DONE")) ((eq result (quote failure)) (doom-color-apply (quote red) "✕ FAILED")) (t nil)) (or pin-label ""))) (terpri)))
  (progn (let ((result (or (and (doom-package-installed-p (car pkg)) (not (doom-package-different-backend-p ...)) (not (doom-package-different-recipe-p ...)) (quote already-installed)) (and (doom-install-package (car pkg) (cdr pkg)) (setq success t) (quote success)) (quote failure))) (pin-label (and (plist-member (cdr pkg) :pin) (format " [pinned: %s]" (plist-get (cdr pkg) :pin))))) (progn (princ (format "%s%s" (cond ((eq result ...) (doom-color-apply ... ...)) ((eq result ...) (doom-color-apply ... "✓ DONE")) ((eq result ...) (doom-color-apply ... "✕ FAILED")) (t nil)) (or pin-label ""))) (terpri))))
  (condition-case e (progn (let ((result (or (and (doom-package-installed-p ...) (not ...) (not ...) (quote already-installed)) (and (doom-install-package ... ...) (setq success t) (quote success)) (quote failure))) (pin-label (and (plist-member (cdr pkg) :pin) (format " [pinned: %s]" (plist-get ... :pin))))) (progn (princ (format "%s%s" (cond (... ...) (... ...) (... ...) (t nil)) (or pin-label ""))) (terpri)))) ((debug quote user-error) (progn (princ (format (doom-color-apply (quote bold) (doom-color-apply (quote red) "  NOTICE: %s")) e)) (terpri))) ((debug quote file-error) (progn (princ (format (doom-color-apply (quote bold) (doom-color-apply (quote red) "  FILE ERROR: %s")) (error-message-string e))) (terpri)) (progn (princ (format "  Trying again...")) (terpri)) (cond (noninteractive (let ((old-fn (symbol-function ...))) (let* ((vnew ...) (vnew ...) (vnew ...) (vnew ...) (old ...) (old ...) (old ...) (standard-output vnew)) (unwind-protect (progn ... ... ... ...) (fset ... old) (fset ... old) (fset ... old))))) ((or doom-debug-mode debug-on-error debug-on-quit) (doom-refresh-packages-maybe t)) ((let ((inhibit-message t) (save-silently t)) (prog1 (doom-refresh-packages-maybe t) (message ""))))) (let ((result (or (and (doom-package-installed-p ...) (not ...) (not ...) (quote already-installed)) (and (doom-install-package ... ...) (setq success t) (quote success)) (quote failure))) (pin-label (and (plist-member (cdr pkg) :pin) (format " [pinned: %s]" (plist-get ... :pin))))) (progn (princ (format "%s%s" (cond (... ...) (... ...) (... ...) (t nil)) (or pin-label ""))) (terpri)))) ((debug quote error) (progn (princ (format (doom-color-apply (quote bold) (doom-color-apply (quote red) "  FATAL ERROR: %s\n  Run again with the -d flag for details")) e)) (terpri))))
  (while --dolist-tail-- (setq pkg (car --dolist-tail--)) (progn (princ (format "Installing %s" (car pkg))) (terpri)) (condition-case e (progn (let ((result (or (and ... ... ... ...) (and ... ... ...) (quote failure))) (pin-label (and (plist-member ... :pin) (format " [pinned: %s]" ...)))) (progn (princ (format "%s%s" (cond ... ... ... ...) (or pin-label ""))) (terpri)))) ((debug quote user-error) (progn (princ (format (doom-color-apply (quote bold) (doom-color-apply ... "  NOTICE: %s")) e)) (terpri))) ((debug quote file-error) (progn (princ (format (doom-color-apply (quote bold) (doom-color-apply ... "  FILE ERROR: %s")) (error-message-string e))) (terpri)) (progn (princ (format "  Trying again...")) (terpri)) (cond (noninteractive (let ((old-fn ...)) (let* (... ... ... ... ... ... ... ...) (unwind-protect ... ... ... ...)))) ((or doom-debug-mode debug-on-error debug-on-quit) (doom-refresh-packages-maybe t)) ((let ((inhibit-message t) (save-silently t)) (prog1 (doom-refresh-packages-maybe t) (message ""))))) (let ((result (or (and ... ... ... ...) (and ... ... ...) (quote failure))) (pin-label (and (plist-member ... :pin) (format " [pinned: %s]" ...)))) (progn (princ (format "%s%s" (cond ... ... ... ...) (or pin-label ""))) (terpri)))) ((debug quote error) (progn (princ (format (doom-color-apply (quote bold) (doom-color-apply ... "  FATAL ERROR: %s\n  Run again with the -d flag for details")) e)) (terpri)))) (setq --dolist-tail-- (cdr --dolist-tail--)))
  (let ((--dolist-tail-- packages) pkg) (while --dolist-tail-- (setq pkg (car --dolist-tail--)) (progn (princ (format "Installing %s" (car pkg))) (terpri)) (condition-case e (progn (let ((result (or ... ... ...)) (pin-label (and ... ...))) (progn (princ (format "%s%s" ... ...)) (terpri)))) ((debug quote user-error) (progn (princ (format (doom-color-apply ... ...) e)) (terpri))) ((debug quote file-error) (progn (princ (format (doom-color-apply ... ...) (error-message-string e))) (terpri)) (progn (princ (format "  Trying again...")) (terpri)) (cond (noninteractive (let (...) (let* ... ...))) ((or doom-debug-mode debug-on-error debug-on-quit) (doom-refresh-packages-maybe t)) ((let (... ...) (prog1 ... ...)))) (let ((result (or ... ... ...)) (pin-label (and ... ...))) (progn (princ (format "%s%s" ... ...)) (terpri)))) ((debug quote error) (progn (princ (format (doom-color-apply ... ...) e)) (terpri)))) (setq --dolist-tail-- (cdr --dolist-tail--))))
  (let (success) (doom-refresh-packages-maybe doom-debug-mode) (let ((--dolist-tail-- packages) pkg) (while --dolist-tail-- (setq pkg (car --dolist-tail--)) (progn (princ (format "Installing %s" (car pkg))) (terpri)) (condition-case e (progn (let ((result ...) (pin-label ...)) (progn (princ ...) (terpri)))) ((debug quote user-error) (progn (princ (format ... e)) (terpri))) ((debug quote file-error) (progn (princ (format ... ...)) (terpri)) (progn (princ (format "  Trying again...")) (terpri)) (cond (noninteractive (let ... ...)) ((or doom-debug-mode debug-on-error debug-on-quit) (doom-refresh-packages-maybe t)) ((let ... ...))) (let ((result ...) (pin-label ...)) (progn (princ ...) (terpri)))) ((debug quote error) (progn (princ (format ... e)) (terpri)))) (setq --dolist-tail-- (cdr --dolist-tail--)))) (progn (princ (format (doom-color-apply (quote bold) (doom-color-apply (quote green) "Finished!")))) (terpri)) (if success (progn (set-file-times doom-packages-dir) (doom-delete-autoloads-file doom-package-autoload-file))) success)
  (cond ((not packages) (progn (princ (format (doom-color-apply (quote green) "No packages to install!"))) (terpri)) nil) ((not (or auto-accept-p (y-or-n-p (format "%s packages will be installed:\n\n%s\n\nProceed?" (length packages) (mapconcat (function ...) (cl-sort ... ... :key ...) "\n"))))) (user-error "Aborted!")) ((let (success) (doom-refresh-packages-maybe doom-debug-mode) (let ((--dolist-tail-- packages) pkg) (while --dolist-tail-- (setq pkg (car --dolist-tail--)) (progn (princ (format "Installing %s" ...)) (terpri)) (condition-case e (progn (let ... ...)) ((debug quote user-error) (progn ... ...)) ((debug quote file-error) (progn ... ...) (progn ... ...) (cond ... ... ...) (let ... ...)) ((debug quote error) (progn ... ...))) (setq --dolist-tail-- (cdr --dolist-tail--)))) (progn (princ (format (doom-color-apply (quote bold) (doom-color-apply ... "Finished!")))) (terpri)) (if success (progn (set-file-times doom-packages-dir) (doom-delete-autoloads-file doom-package-autoload-file))) success)))
  (let ((packages (doom-get-missing-packages))) (cond ((not packages) (progn (princ (format (doom-color-apply (quote green) "No packages to install!"))) (terpri)) nil) ((not (or auto-accept-p (y-or-n-p (format "%s packages will be installed:\n\n%s\n\nProceed?" (length packages) (mapconcat ... ... "\n"))))) (user-error "Aborted!")) ((let (success) (doom-refresh-packages-maybe doom-debug-mode) (let ((--dolist-tail-- packages) pkg) (while --dolist-tail-- (setq pkg (car --dolist-tail--)) (progn (princ ...) (terpri)) (condition-case e (progn ...) (... ...) (... ... ... ... ...) (... ...)) (setq --dolist-tail-- (cdr --dolist-tail--)))) (progn (princ (format (doom-color-apply ... ...))) (terpri)) (if success (progn (set-file-times doom-packages-dir) (doom-delete-autoloads-file doom-package-autoload-file))) success))))
  doom-packages-install(nil)
  (progn (doom-packages-install doom-auto-accept))
  (condition-case nil (progn (doom-packages-install doom-auto-accept)) (error nil))
  (progn (condition-case nil (progn (doom-packages-autoremove doom-auto-accept)) (error nil)) (condition-case nil (progn (doom-packages-install doom-auto-accept)) (error nil)))
  (unwind-protect (progn (condition-case nil (progn (doom-packages-autoremove doom-auto-accept)) (error nil)) (condition-case nil (progn (doom-packages-install doom-auto-accept)) (error nil))) (doom-reload-package-autoloads force-p) (doom-byte-compile nil (quote recompile)))
  doom-refresh(force)
  (closure ((p refresh :desc "Refresh Doom.\n\nThis is the equivalent of running autoremove, install, autoloads, then\nrecompile. Run this whenever you:\n\n  1. Modify your `doom!' block,\n  2. Add or remove `package!' blocks to your config,\n  3. Add or remove autoloaded functions in module autoloaded files.\n  4. Update Doom outside of Doom (e.g. with git)\n\nIt will ensure that unneeded packages are removed, all needed packages are\ninstalled, autoloads files are up-to-date and no byte-compiled files have gone\nstale." :body #0) t) (args) (ignore args) (doom-refresh (quote force)))(nil)
  funcall((closure ((p refresh :desc "Refresh Doom.\n\nThis is the equivalent of running autoremove, install, autoloads, then\nrecompile. Run this whenever you:\n\n  1. Modify your `doom!' block,\n  2. Add or remove `package!' blocks to your config,\n  3. Add or remove autoloaded functions in module autoloaded files.\n  4. Update Doom outside of Doom (e.g. with git)\n\nIt will ensure that unneeded packages are removed, all needed packages are\ninstalled, autoloads files are up-to-date and no byte-compiled files have gone\nstale." :body #1) t) (args) (ignore args) (doom-refresh (quote force))) nil)
  (if show-help (apply (function doom--dispatch-help) command desc args) (funcall body args))
  (progn (let ((--cl-keys-- --cl-rest--)) (while --cl-keys-- (cond ((memq (car --cl-keys--) (quote (:desc :body :allow-other-keys))) (setq --cl-keys-- (cdr (cdr --cl-keys--)))) ((car (cdr (memq ... --cl-rest--))) (setq --cl-keys-- nil)) (t (error "Keyword argument %s not one of (:desc :body)" (car --cl-keys--)))))) (if show-help (apply (function doom--dispatch-help) command desc args) (funcall body args)))
  (let* ((--cl-rest-- (let ((sym (intern cmd))) (or (assq sym doom--dispatch-command-alist) (assq (cdr (assq sym doom--dispatch-alias-alist)) doom--dispatch-command-alist) (user-error "Invalid command: %s" sym)))) (command (if --cl-rest-- (car-safe (prog1 --cl-rest-- (setq --cl-rest-- (cdr --cl-rest--)))) (signal (quote wrong-number-of-arguments) (list nil (length --cl-rest--))))) (desc (car (cdr (plist-member --cl-rest-- (quote :desc))))) (body (car (cdr (plist-member --cl-rest-- (quote :body)))))) (progn (let ((--cl-keys-- --cl-rest--)) (while --cl-keys-- (cond ((memq (car --cl-keys--) (quote ...)) (setq --cl-keys-- (cdr ...))) ((car (cdr ...)) (setq --cl-keys-- nil)) (t (error "Keyword argument %s not one of (:desc :body)" (car --cl-keys--)))))) (if show-help (apply (function doom--dispatch-help) command desc args) (funcall body args))))
  doom-dispatch("refresh" nil)
  (condition-case e (doom-dispatch (car args) (cdr args)) (user-error (signal (car e) (cdr e))) ((debug error) (message "--------------------------------------------------\n") (message "There was an unexpected error:") (message "  %s (%s)" (get (car e) (quote error-message)) (car e)) (let ((--dolist-tail-- (cdr e)) item) (while --dolist-tail-- (setq item (car --dolist-tail--)) (message "  %s" item) (setq --dolist-tail-- (cdr --dolist-tail--)))) (if debug-on-error nil (message (concat "\nRun the command again with the -d (or --debug) option to enable debug\n" "mode and, hopefully, generate a stack trace. If you decide to file a bug\n" "report, please include it!\n\n" "Emacs outputs to standard error, so you'll need to redirect stderr to\n" "stdout to pipe this to a file or clipboard!\n\n" "  e.g. doom -d install 2>&1 | clipboard-program")) (signal (quote doom-error) e))))
  (let ((default-directory emacs-dir)) (setq argv nil noninteractive (quote doom)) (condition-case e (doom-dispatch (car args) (cdr args)) (user-error (signal (car e) (cdr e))) ((debug error) (message "--------------------------------------------------\n") (message "There was an unexpected error:") (message "  %s (%s)" (get (car e) (quote error-message)) (car e)) (let ((--dolist-tail-- (cdr e)) item) (while --dolist-tail-- (setq item (car --dolist-tail--)) (message "  %s" item) (setq --dolist-tail-- (cdr --dolist-tail--)))) (if debug-on-error nil (message (concat "\nRun the command again with the -d (or --debug) option to enable debug\n" "mode and, hopefully, generate a stack trace. If you decide to file a bug\n" "report, please include it!\n\n" "Emacs outputs to standard error, so you'll need to redirect stderr to\n" "stdout to pipe this to a file or clipboard!\n\n" "  e.g. doom -d install 2>&1 | clipboard-program")) (signal (quote doom-error) e)))))
  (cond ((not noninteractive) (doom|run-all-startup-hooks)) ((and (not (cdr args)) (member (car args) (quote ("help" "h")))) (usage)) ((not args) (message "No command detected, aborting!\n\nRun %s help for documentation." (file-name-nondirectory load-file-name))) ((let ((default-directory emacs-dir)) (setq argv nil noninteractive (quote doom)) (condition-case e (doom-dispatch (car args) (cdr args)) (user-error (signal (car e) (cdr e))) ((debug error) (message "--------------------------------------------------\n") (message "There was an unexpected error:") (message "  %s (%s)" (get (car e) (quote error-message)) (car e)) (let ((--dolist-tail-- ...) item) (while --dolist-tail-- (setq item ...) (message "  %s" item) (setq --dolist-tail-- ...))) (if debug-on-error nil (message (concat "\nRun the command again with the -d (or --debug) option to enable debug\n" "mode and, hopefully, generate a stack trace. If you decide to file a bug\n" "report, please include it!\n\n" "Emacs outputs to standard error, so you'll need to redirect stderr to\n" "stdout to pipe this to a file or clipboard!\n\n" "  e.g. doom -d install 2>&1 | clipboard-program")) (signal (quote doom-error) e)))))))
  (let ((args (cdr (cdr (cdr command-line-args)))) (emacs-dir (or (getenv "EMACSDIR") (expand-file-name "../" (file-name-directory (file-truename load-file-name)))))) (while (condition-case nil (progn (string-prefix-p "-" (car args))) (error nil)) (let* ((val (car-safe (prog1 args (setq args ...))))) (cond ((member val (quote ("--help" "-h"))) (setq args (cons "help" args))) ((member val (quote ("--debug" "-d"))) (setenv "DEBUG" "1") (message "Debug mode on")) ((member val (quote ("--insecure" "-i"))) (setenv "INSECURE" "1") (message "Insecure mode on")) ((member val (quote ("--private" "-p"))) (setq doom-private-dir (expand-file-name (concat ... "/"))) (setenv "DOOMDIR" doom-private-dir) (message "DOOMDIR changed to %s" doom-private-dir) (or (file-directory-p doom-private-dir) (message "Warning: %s does not exist" (abbreviate-file-name doom-private-dir)))) ((member val (quote ("--emacsd" "-e"))) (setq emacs-dir (expand-file-name (concat ... "/"))) (message "Emacs directory changed to %s" emacs-dir)) ((member val (quote ("--yes" "-y"))) (setenv "YES" "1") (message "Auto-yes mode on")) (t nil)))) (or (file-directory-p emacs-dir) (error "%s does not exist" emacs-dir)) (load (expand-file-name "init" emacs-dir) nil (quote nomessage)) (cond ((not noninteractive) (doom|run-all-startup-hooks)) ((and (not (cdr args)) (member (car args) (quote ("help" "h")))) (usage)) ((not args) (message "No command detected, aborting!\n\nRun %s help for documentation." (file-name-nondirectory load-file-name))) ((let ((default-directory emacs-dir)) (setq argv nil noninteractive (quote doom)) (condition-case e (doom-dispatch (car args) (cdr args)) (user-error (signal (car e) (cdr e))) ((debug error) (message "--------------------------------------------------\n") (message "There was an unexpected error:") (message "  %s (%s)" (get ... ...) (car e)) (let (... item) (while --dolist-tail-- ... ... ...)) (if debug-on-error nil (message ...) (signal ... e))))))))
  eval-buffer(#<buffer  *load*> nil "/home/ndunn/.emacs.d/bin/doom" nil t)  ; Reading at buffer position 5043
  load-with-code-conversion("/home/ndunn/.emacs.d/bin/doom" "/home/ndunn/.emacs.d/bin/doom" nil t)
  load("/home/ndunn/.emacs.d/bin/doom" nil t t)
  command-line-1(("-scriptload" "/home/ndunn/.emacs.d/bin/doom" "--" "refresh"))
  command-line()
  normal-top-level()

I tried adding a configuration to my packages.el to simply fetch the emacs-snippets repository directly - that didn't seem to work (same error, from what I could tell). I also tried to clone the emacs-snippet repository manually...but I fear I failed to reconfigure Doom correctly to accomodate that.

Any ideas on this? I've been searching around, but it seems my Google-fu hasn't gotten me far quite yet.

@hlissner
Copy link
Member

@ndunn990 @alexandergraul Does installing GNU tar fix the issue?

@ndunn990
Copy link

@hlissner GNU tar is installed. Sorry - forgot to mention that.

sudo zypper if tar

Information for package tar:
----------------------------
Repository     : Main Repository (OSS)                    
Name           : tar                                      
Version        : 1.31-1.1                                 
Arch           : x86_64                                   
Vendor         : openSUSE                                 
Installed Size : 558.9 KiB                                
Installed      : Yes (automatically)                      
Status         : up-to-date                               

Source package : tar-1.31-1.1.src                         
Summary        : GNU implementation of ((t)ape (ar)chiver)
Description    :                                          
    GNU Tar is an archiver program. It is used to create and manipulate files
    that are actually collections of many other files; the program provides
    users with an organized and systematic method of controlling a large amount
    of data. Despite its name, that is an acronym of "tape archiver", GNU Tar
    is able to direct its output to any available devices, files or other programs,
    it may as well access remote devices or files.

@hlissner hlissner added help wanted Cannot be resolved without outside help status:unknown Cause unknown; cannot be reproduced; cannot investigate further and removed status:unconfirmed Still under investigation. labels Jul 13, 2019
@agraul
Copy link
Contributor

agraul commented Jul 24, 2019

I came across this quelpa upstream issue that should be the cause of the problem. My tar defaults to --format=posix which is not supported by quelpa (which requires --format=gnu). quelpa has a variable (quelpa-build-explicit-tar-format-p) that should correct the behaviour, but I don't know how to set correctly - I tried (setq quelpa-build-explicit-tar-format-p t), but doom install doom-snippets still failed.

@agraul
Copy link
Contributor

agraul commented Jul 24, 2019

Update: After setting (setq quelpa-build-explicit-tar-format-p t) in my config.el, I could use M-x doom/install to successfully install doom-snippets. I still don't know how to set the variable for CLI installation, but at least there is a workaround :)

@hlissner
Copy link
Member

@alexandergraul Setting it in ~/.doom.d/init.el will affect package management. See if that works for you.

Alternatively, you could switch to the straight branch, where this is no longer an issue.

@agraul
Copy link
Contributor

agraul commented Aug 1, 2019

I've switched to straight, so far no issue detected :) Thanks!

@hlissner
Copy link
Member

Now that the straight branch has been merged into develop and we no longer use package.el or quelpa, I can consider this issue resolved. Let me know if you're still having trouble installing doom-snippets and I'll reopen this. Thanks for bringing it to my attention.

@hlissner hlissner added status:resolved Issue was addressed internally and removed help wanted Cannot be resolved without outside help status:unknown Cause unknown; cannot be reproduced; cannot investigate further labels Aug 27, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
re:packages Pertains to package & dependency management status:resolved Issue was addressed internally
Projects
None yet
Development

No branches or pull requests

8 participants