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

exec-path-from-shell :init: Expected printf output from shell, but got: "" #4755

Closed
tkossak opened this Issue Jan 22, 2016 · 17 comments

Comments

Projects
None yet
@tkossak

tkossak commented Jan 22, 2016

When i start specemacs i get error:

Error (use-package): exec-path-from-shell :init: Expected printf output from shell, but got: ""
Warning (initialization): An error occurred while loading `/home/kossak/.emacs.d/init.el':

Symbol's value as variable is void: closed

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the `--debug-init' option to view a complete error backtrace.

After running emacs --debug-init:

Debugger entered--Lisp error: (error "Expected printf output from shell, but got: \"\"")
  signal(error ("Expected printf output from shell, but got: \"\""))
  error("Expected printf output from shell, but got: %S" "")
  exec-path-from-shell-printf("%s\\000%s" ("${MANPATH-65365d25369ef18564868956c5cbb30f}" "${PATH-65365d25369ef18564868956c5cbb30f}"))
  exec-path-from-shell-getenvs(("MANPATH" "PATH"))
  exec-path-from-shell--maybe-warn-about-startup-files((("MANPATH" . ":/home/kossak/.fzf/man") ("PATH" . "/home/kossak/.dotfiles/bin:/home/kossak/.dotfiles/bin:/home/kossak/.dotfiles/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/kossak/.fzf/bin")))
  exec-path-from-shell-copy-envs(("PATH" "MANPATH"))
  exec-path-from-shell-initialize()
  (progn (exec-path-from-shell-initialize))
  (if (memq window-system (quote (mac ns x))) (progn (exec-path-from-shell-initialize)))
  (condition-case err (if (memq window-system (quote (mac ns x))) (progn (exec-path-from-shell-initialize))) ((debug error) (ignore (display-warning (quote use-package) (format "%s %s: %s" "exec-path-from-shell" ":init" (error-message-string err)) :error))))
  (progn (condition-case err (if (memq window-system (quote (mac ns x))) (progn (exec-path-from-shell-initialize))) ((debug error) (ignore (display-warning (quote use-package) (format "%s %s: %s" "exec-path-from-shell" ":init" (error-message-string err)) :error)))) (condition-case err (run-hooks (quote use-package--exec-path-from-shell--post-init-hook)) ((debug error) (ignore (display-warning (quote use-package) (format "%s %s: %s" "exec-path-from-shell" "post-:init hook" (error-message-string err)) :error)))))
  (if (condition-case err (run-hook-with-args-until-failure (quote use-package--exec-path-from-shell--pre-init-hook)) ((debug error) (ignore (display-warning (quote use-package) (format "%s %s: %s" "exec-path-from-shell" "pre-:init hook" (error-message-string err)) :error)))) (progn (condition-case err (if (memq window-system (quote (mac ns x))) (progn (exec-path-from-shell-initialize))) ((debug error) (ignore (display-warning (quote use-package) (format "%s %s: %s" "exec-path-from-shell" ":init" (error-message-string err)) :error)))) (condition-case err (run-hooks (quote use-package--exec-path-from-shell--post-init-hook)) ((debug error) (ignore (display-warning (quote use-package) (format "%s %s: %s" "exec-path-from-shell" "post-:init hook" (error-message-string err)) :error))))))
  (progn (if (condition-case err (run-hook-with-args-until-failure (quote use-package--exec-path-from-shell--pre-init-hook)) ((debug error) (ignore (display-warning (quote use-package) (format "%s %s: %s" "exec-path-from-shell" "pre-:init hook" (error-message-string err)) :error)))) (progn (condition-case err (if (memq window-system (quote (mac ns x))) (progn (exec-path-from-shell-initialize))) ((debug error) (ignore (display-warning (quote use-package) (format "%s %s: %s" "exec-path-from-shell" ":init" ...) :error)))) (condition-case err (run-hooks (quote use-package--exec-path-from-shell--post-init-hook)) ((debug error) (ignore (display-warning (quote use-package) (format "%s %s: %s" "exec-path-from-shell" "post-:init hook" ...) :error)))))) (let ((now (current-time))) (message "%s..." "Loading package exec-path-from-shell") (prog1 (if (not (require (quote exec-path-from-shell) nil (quote noerror))) (ignore (message (format "Could not load %s" (quote exec-path-from-shell))))) (let ((elapsed (float-time (time-subtract ... now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Loading package exec-path-from-shell" elapsed) (message "%s...done" "Loading package exec-path-from-shell"))))))
  spacemacs-base/init-exec-path-from-shell()
  funcall(spacemacs-base/init-exec-path-from-shell)
  (let* ((pkg-name (eieio-oref pkg (quote :name))) (owner (eieio-oref pkg (quote :owner))) (owner-layer (object-assoc owner :name configuration-layer--layers)) (disabled-for-layers (eieio-oref owner-layer (quote :disabled-for)))) (spacemacs-buffer/message (format "Configuring %S..." pkg-name)) (mapc (function (lambda (layer) (if (memq layer disabled-for-layers) (spacemacs-buffer/message (format "  -> ignored pre-init (%S)..." layer)) (spacemacs-buffer/message (format "  -> pre-init (%S)..." layer)) (condition-case err (funcall (intern ...)) ((quote error) (configuration-layer//increment-error-count) (spacemacs-buffer/append ...)))))) (eieio-oref pkg (quote :pre-layers))) (spacemacs-buffer/message (format "  -> init (%S)..." owner)) (funcall (intern (format "%S/init-%S" owner pkg-name))) (mapc (function (lambda (layer) (if (memq layer disabled-for-layers) (spacemacs-buffer/message (format "  -> ignored post-init (%S)..." layer)) (spacemacs-buffer/message (format "  -> post-init (%S)..." layer)) (condition-case err (funcall (intern ...)) ((quote error) (configuration-layer//increment-error-count) (spacemacs-buffer/append ...)))))) (eieio-oref pkg (quote :post-layers))))
  configuration-layer//configure-package([object cfgl-package "exec-path-from-shell" exec-path-from-shell spacemacs-base nil nil elpa nil nil nil])
  (cond ((eq (quote dotfile) (eieio-oref pkg (quote :owner))) (configuration-layer//activate-package pkg-name) (spacemacs-buffer/message (format "%S is configured in the dotfile." pkg-name))) (t (configuration-layer//activate-package pkg-name) (configuration-layer//configure-package pkg)))
  (cond ((and (eieio-oref pkg (quote :excluded)) (not (eieio-oref pkg (quote :protected)))) (spacemacs-buffer/message (format "%S ignored since it has been excluded." pkg-name))) ((null (eieio-oref pkg (quote :owner))) (spacemacs-buffer/message (format "%S ignored since it has no owner layer." pkg-name))) (t (let ((location (eieio-oref pkg (quote :location)))) (cond ((stringp location) (if (file-directory-p location) (setq load-path (cons ... load-path)) (spacemacs-buffer/warning "Location path for package %S does not exists (value: %s)." pkg location))) ((and (eq (quote local) location) (eq (quote dotfile) (eieio-oref pkg ...))) (setq load-path (cons (file-name-as-directory ...) load-path))) ((eq (quote local) location) (let* ((owner ...) (dir ...)) (setq load-path (cons ... load-path)) (setq load-path (cons ... load-path)))))) (cond ((eq (quote dotfile) (eieio-oref pkg (quote :owner))) (configuration-layer//activate-package pkg-name) (spacemacs-buffer/message (format "%S is configured in the dotfile." pkg-name))) (t (configuration-layer//activate-package pkg-name) (configuration-layer//configure-package pkg)))))
  (let ((pkg-name (eieio-oref pkg (quote :name)))) (cond ((and (eieio-oref pkg (quote :excluded)) (not (eieio-oref pkg (quote :protected)))) (spacemacs-buffer/message (format "%S ignored since it has been excluded." pkg-name))) ((null (eieio-oref pkg (quote :owner))) (spacemacs-buffer/message (format "%S ignored since it has no owner layer." pkg-name))) (t (let ((location (eieio-oref pkg (quote :location)))) (cond ((stringp location) (if (file-directory-p location) (setq load-path ...) (spacemacs-buffer/warning "Location path for package %S does not exists (value: %s)." pkg location))) ((and (eq ... location) (eq ... ...)) (setq load-path (cons ... load-path))) ((eq (quote local) location) (let* (... ...) (setq load-path ...) (setq load-path ...))))) (cond ((eq (quote dotfile) (eieio-oref pkg (quote :owner))) (configuration-layer//activate-package pkg-name) (spacemacs-buffer/message (format "%S is configured in the dotfile." pkg-name))) (t (configuration-layer//activate-package pkg-name) (configuration-layer//configure-package pkg))))))
  (while --dolist-tail-- (setq pkg (car --dolist-tail--)) (spacemacs-buffer/loading-animation) (let ((pkg-name (eieio-oref pkg (quote :name)))) (cond ((and (eieio-oref pkg (quote :excluded)) (not (eieio-oref pkg (quote :protected)))) (spacemacs-buffer/message (format "%S ignored since it has been excluded." pkg-name))) ((null (eieio-oref pkg (quote :owner))) (spacemacs-buffer/message (format "%S ignored since it has no owner layer." pkg-name))) (t (let ((location (eieio-oref pkg ...))) (cond ((stringp location) (if ... ... ...)) ((and ... ...) (setq load-path ...)) ((eq ... location) (let* ... ... ...)))) (cond ((eq (quote dotfile) (eieio-oref pkg ...)) (configuration-layer//activate-package pkg-name) (spacemacs-buffer/message (format "%S is configured in the dotfile." pkg-name))) (t (configuration-layer//activate-package pkg-name) (configuration-layer//configure-package pkg)))))) (setq --dolist-tail-- (cdr --dolist-tail--)))
  (let ((--dolist-tail-- packages) pkg) (while --dolist-tail-- (setq pkg (car --dolist-tail--)) (spacemacs-buffer/loading-animation) (let ((pkg-name (eieio-oref pkg (quote :name)))) (cond ((and (eieio-oref pkg (quote :excluded)) (not (eieio-oref pkg ...))) (spacemacs-buffer/message (format "%S ignored since it has been excluded." pkg-name))) ((null (eieio-oref pkg (quote :owner))) (spacemacs-buffer/message (format "%S ignored since it has no owner layer." pkg-name))) (t (let ((location ...)) (cond (... ...) (... ...) (... ...))) (cond ((eq ... ...) (configuration-layer//activate-package pkg-name) (spacemacs-buffer/message ...)) (t (configuration-layer//activate-package pkg-name) (configuration-layer//configure-package pkg)))))) (setq --dolist-tail-- (cdr --dolist-tail--))))
  configuration-layer//configure-packages-2(([object cfgl-package "ace-jump-helm-line" ace-jump-helm-line spacemacs nil nil elpa nil nil nil] [object cfgl-package "ace-link" ace-link spacemacs nil nil elpa nil nil nil] [object cfgl-package "ace-window" ace-window spacemacs nil nil elpa nil nil nil] [object cfgl-package "adaptive-wrap" adaptive-wrap spacemacs nil nil elpa nil nil nil] [object cfgl-package "aggressive-indent" aggressive-indent spacemacs nil nil elpa nil nil nil] [object cfgl-package "auto-compile" auto-compile emacs-lisp nil nil elpa nil nil nil] [object cfgl-package "auto-highlight-symbol" auto-highlight-symbol spacemacs nil nil elpa nil nil nil] [object cfgl-package "avy" avy spacemacs nil nil elpa nil nil nil] [object cfgl-package "bind-key" bind-key spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "bookmark" bookmark spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "bracketed-paste" bracketed-paste spacemacs nil nil elpa nil nil nil] [object cfgl-package "buffer-move" buffer-move spacemacs nil nil elpa nil nil nil] [object cfgl-package "centered-cursor" centered-cursor spacemacs nil nil local nil nil nil] [object cfgl-package "clean-aindent-mode" clean-aindent-mode spacemacs nil nil elpa nil nil nil] [object cfgl-package "company" company nil nil (emacs-lisp) elpa nil nil nil] [object cfgl-package "define-word" define-word spacemacs nil nil elpa nil nil nil] [object cfgl-package "desktop" desktop spacemacs nil nil elpa nil nil nil] [object cfgl-package "diminish" diminish spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "doc-view" doc-view spacemacs nil nil elpa nil nil nil] [object cfgl-package "ediff" ediff spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "eldoc" eldoc spacemacs-base nil (emacs-lisp) elpa nil nil nil] [object cfgl-package "electric-indent-mode" electric-indent-mode spacemacs-base nil nil built-in nil nil nil] [object cfgl-package "elisp-slime-nav" elisp-slime-nav emacs-lisp nil nil elpa nil nil nil] [object cfgl-package "emacs-lisp" emacs-lisp emacs-lisp nil nil built-in nil nil nil] [object cfgl-package "eval-sexp-fu" eval-sexp-fu spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil" evil spacemacs-base nil (emacs-lisp) elpa nil nil nil] [object cfgl-package "evil-anzu" evil-anzu spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-args" evil-args spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-escape" evil-escape spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "evil-exchange" evil-exchange spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-iedit-state" evil-iedit-state spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-indent-plus" evil-indent-plus spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-jumper" evil-jumper spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-lisp-state" evil-lisp-state spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-matchit" evil-matchit spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-mc" evil-mc spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-nerd-commenter" evil-nerd-commenter spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-numbers" evil-numbers spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-search-highlight-persist" evil-search-highlight-persist spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-surround" evil-surround spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "evil-terminal-cursor-changer" evil-terminal-cursor-changer spacemacs nil nil elpa nil nil t] [object cfgl-package "evil-tutor" evil-tutor spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-visualstar" evil-visualstar spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "exec-path-from-shell" exec-path-from-shell spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "expand-region" expand-region spacemacs nil nil elpa nil nil nil] [object cfgl-package "eyebrowse" eyebrowse nil nil (spacemacs-layouts) elpa nil nil nil] [object cfgl-package "fancy-battery" fancy-battery spacemacs nil nil elpa nil nil nil] [object cfgl-package "fill-column-indicator" fill-column-indicator spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "flx-ido" flx-ido spacemacs nil nil elpa nil nil nil] [object cfgl-package "flycheck" flycheck nil nil (emacs-lisp) elpa nil nil nil] ...))
  configuration-layer//configure-packages(([object cfgl-package "ace-jump-helm-line" ace-jump-helm-line spacemacs nil nil elpa nil nil nil] [object cfgl-package "ace-link" ace-link spacemacs nil nil elpa nil nil nil] [object cfgl-package "ace-window" ace-window spacemacs nil nil elpa nil nil nil] [object cfgl-package "adaptive-wrap" adaptive-wrap spacemacs nil nil elpa nil nil nil] [object cfgl-package "aggressive-indent" aggressive-indent spacemacs nil nil elpa nil nil nil] [object cfgl-package "auto-compile" auto-compile emacs-lisp nil nil elpa nil nil nil] [object cfgl-package "auto-highlight-symbol" auto-highlight-symbol spacemacs nil nil elpa nil nil nil] [object cfgl-package "avy" avy spacemacs nil nil elpa nil nil nil] [object cfgl-package "bind-key" bind-key spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "bind-map" bind-map spacemacs-base nil nil elpa pre nil nil] [object cfgl-package "bookmark" bookmark spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "bracketed-paste" bracketed-paste spacemacs nil nil elpa nil nil nil] [object cfgl-package "buffer-move" buffer-move spacemacs nil nil elpa nil nil nil] [object cfgl-package "centered-cursor" centered-cursor spacemacs nil nil local nil nil nil] [object cfgl-package "clean-aindent-mode" clean-aindent-mode spacemacs nil nil elpa nil nil nil] [object cfgl-package "company" company nil nil (emacs-lisp) elpa nil nil nil] [object cfgl-package "define-word" define-word spacemacs nil nil elpa nil nil nil] [object cfgl-package "desktop" desktop spacemacs nil nil elpa nil nil nil] [object cfgl-package "diminish" diminish spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "doc-view" doc-view spacemacs nil nil elpa nil nil nil] [object cfgl-package "ediff" ediff spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "eldoc" eldoc spacemacs-base nil (emacs-lisp) elpa nil nil nil] [object cfgl-package "electric-indent-mode" electric-indent-mode spacemacs-base nil nil built-in nil nil nil] [object cfgl-package "elisp-slime-nav" elisp-slime-nav emacs-lisp nil nil elpa nil nil nil] [object cfgl-package "emacs-lisp" emacs-lisp emacs-lisp nil nil built-in nil nil nil] [object cfgl-package "eval-sexp-fu" eval-sexp-fu spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil" evil spacemacs-base nil (emacs-lisp) elpa nil nil nil] [object cfgl-package "evil-anzu" evil-anzu spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-args" evil-args spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-escape" evil-escape spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "evil-evilified-state" evil-evilified-state spacemacs-base nil nil local pre t nil] [object cfgl-package "evil-exchange" evil-exchange spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-iedit-state" evil-iedit-state spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-indent-plus" evil-indent-plus spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-jumper" evil-jumper spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-lisp-state" evil-lisp-state spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-matchit" evil-matchit spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-mc" evil-mc spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-nerd-commenter" evil-nerd-commenter spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-numbers" evil-numbers spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-search-highlight-persist" evil-search-highlight-persist spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-surround" evil-surround spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "evil-terminal-cursor-changer" evil-terminal-cursor-changer spacemacs nil nil elpa nil nil t] [object cfgl-package "evil-tutor" evil-tutor spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-visualstar" evil-visualstar spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "exec-path-from-shell" exec-path-from-shell spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "expand-region" expand-region spacemacs nil nil elpa nil nil nil] [object cfgl-package "eyebrowse" eyebrowse nil nil (spacemacs-layouts) elpa nil nil nil] [object cfgl-package "fancy-battery" fancy-battery spacemacs nil nil elpa nil nil nil] [object cfgl-package "fill-column-indicator" fill-column-indicator spacemacs-base nil nil elpa nil nil nil] ...))
  configuration-layer//load-packages(([object cfgl-package "ace-jump-helm-line" ace-jump-helm-line spacemacs nil nil elpa nil nil nil] [object cfgl-package "ace-link" ace-link spacemacs nil nil elpa nil nil nil] [object cfgl-package "ace-window" ace-window spacemacs nil nil elpa nil nil nil] [object cfgl-package "adaptive-wrap" adaptive-wrap spacemacs nil nil elpa nil nil nil] [object cfgl-package "aggressive-indent" aggressive-indent spacemacs nil nil elpa nil nil nil] [object cfgl-package "auto-compile" auto-compile emacs-lisp nil nil elpa nil nil nil] [object cfgl-package "auto-highlight-symbol" auto-highlight-symbol spacemacs nil nil elpa nil nil nil] [object cfgl-package "avy" avy spacemacs nil nil elpa nil nil nil] [object cfgl-package "bind-key" bind-key spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "bind-map" bind-map spacemacs-base nil nil elpa pre nil nil] [object cfgl-package "bookmark" bookmark spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "bracketed-paste" bracketed-paste spacemacs nil nil elpa nil nil nil] [object cfgl-package "buffer-move" buffer-move spacemacs nil nil elpa nil nil nil] [object cfgl-package "centered-cursor" centered-cursor spacemacs nil nil local nil nil nil] [object cfgl-package "clean-aindent-mode" clean-aindent-mode spacemacs nil nil elpa nil nil nil] [object cfgl-package "company" company nil nil (emacs-lisp) elpa nil nil nil] [object cfgl-package "define-word" define-word spacemacs nil nil elpa nil nil nil] [object cfgl-package "desktop" desktop spacemacs nil nil elpa nil nil nil] [object cfgl-package "diminish" diminish spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "doc-view" doc-view spacemacs nil nil elpa nil nil nil] [object cfgl-package "ediff" ediff spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "eldoc" eldoc spacemacs-base nil (emacs-lisp) elpa nil nil nil] [object cfgl-package "electric-indent-mode" electric-indent-mode spacemacs-base nil nil built-in nil nil nil] [object cfgl-package "elisp-slime-nav" elisp-slime-nav emacs-lisp nil nil elpa nil nil nil] [object cfgl-package "emacs-lisp" emacs-lisp emacs-lisp nil nil built-in nil nil nil] [object cfgl-package "eval-sexp-fu" eval-sexp-fu spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil" evil spacemacs-base nil (emacs-lisp) elpa nil nil nil] [object cfgl-package "evil-anzu" evil-anzu spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-args" evil-args spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-escape" evil-escape spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "evil-evilified-state" evil-evilified-state spacemacs-base nil nil local pre t nil] [object cfgl-package "evil-exchange" evil-exchange spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-iedit-state" evil-iedit-state spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-indent-plus" evil-indent-plus spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-jumper" evil-jumper spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-lisp-state" evil-lisp-state spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-matchit" evil-matchit spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-mc" evil-mc spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-nerd-commenter" evil-nerd-commenter spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-numbers" evil-numbers spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-search-highlight-persist" evil-search-highlight-persist spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-surround" evil-surround spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "evil-terminal-cursor-changer" evil-terminal-cursor-changer spacemacs nil nil elpa nil nil t] [object cfgl-package "evil-tutor" evil-tutor spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-visualstar" evil-visualstar spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "exec-path-from-shell" exec-path-from-shell spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "expand-region" expand-region spacemacs nil nil elpa nil nil nil] [object cfgl-package "eyebrowse" eyebrowse nil nil (spacemacs-layouts) elpa nil nil nil] [object cfgl-package "fancy-battery" fancy-battery spacemacs nil nil elpa nil nil nil] [object cfgl-package "fill-column-indicator" fill-column-indicator spacemacs-base nil nil elpa nil nil nil] ...))
  configuration-layer/sync()
  (if (not (version<= spacemacs-emacs-min-version emacs-version)) (message (concat "Your version of Emacs (%s) is too old. " "Spacemacs requires Emacs version %d or above.") emacs-version spacemacs-emacs-min-version) (load-file (concat user-emacs-directory "core/core-load-paths.el")) (require (quote core-spacemacs)) (spacemacs/init) (spacemacs/maybe-install-dotfile) (configuration-layer/sync) (spacemacs/setup-startup-hook) (require (quote server)) (if (server-running-p) nil (server-start)))
  eval-buffer(#<buffer  *load*> nil "/home/kossak/.emacs.d/init.el" nil t)  ; Reading at buffer position 1076
  load-with-code-conversion("/home/kossak/.emacs.d/init.el" "/home/kossak/.emacs.d/init.el" t t)
  load("/home/kossak/.emacs.d/init" t t)
  #[0 "�\205\262�   \306=\203��\307�\310Q\202;� \311=\204��\307�\312Q\202;�\313\307\314\315#\203*�\316\202;�\313\307\314\317#\203:�\320\nB�\321\202;�\316\322�\323�\322\211#\210�\322=\203a�\324\325\326\307�\327Q!\"\323�\322\211#\210�\322=\203`���\210�\203\243�\330�!\331\232\203\243�\332�!\211\333P\334�!\203}�\211\202\210�\334�!\203\207��\202\210�\314\262��\203\241�\335��\"\203\237�\336\337��#\210\340\341!\210��\266�\f?\205\260�\314�\323\342\322\211#)\262�\207" [init-file-user system-type delayed-warnings-list user-init-file inhibit-default-init inhibit-startup-screen ms-dos "~" "/_emacs" windows-nt "/.emacs" directory-files nil "^\\.emacs\\(\\.elc?\\)?$" "~/.emacs" "^_emacs\\(\\.elc?\\)?$" (initialization "`_emacs' init file is deprecated, please use `.emacs'") "~/_emacs" t load expand-file-name "init" file-name-as-directory "/.emacs.d" file-name-extension "elc" file-name-sans-extension ".el" file-exists-p file-newer-than-file-p message "Warning: %s is newer than %s" sit-for 1 "default"] 7 "\n\n(fn)"]()
  command-line()
  normal-top-level()

How can i fix it?
Linux MInt x64 Cinnamon
Emacs 24.5.1
Newest spacemacs (just cloned, after removing old ~/.spacemacs and ~/.emacs.d)

@TheBB

This comment has been minimized.

Collaborator

TheBB commented Jan 22, 2016

Your packages are probably corrupted. Try deleting .emacs.d/elpa and restart with the --insecure flag, to disable SSL. If that works you can afterwards set dotspacemacs-elpa-https to nil.

@tkossak

This comment has been minimized.

tkossak commented Jan 22, 2016

I did it but the only difference i see now is that the first error is shorter. After running emacs --insecure:

Error (use-package): exec-path-from-shell :init: Expected printf output from shell, but got: ""

And aftter emacs --debug-init:

Debugger entered--Lisp error: (error "Expected printf output from shell, but got: \"\"")
  signal(error ("Expected printf output from shell, but got: \"\""))
  error("Expected printf output from shell, but got: %S" "")
  exec-path-from-shell-printf("%s\\000%s" ("${MANPATH-cec5f946c6216ae3e3d5acb5ae6f6c9e}" "${PATH-cec5f946c6216ae3e3d5acb5ae6f6c9e}"))
  exec-path-from-shell-getenvs(("MANPATH" "PATH"))
  exec-path-from-shell--maybe-warn-about-startup-files((("MANPATH" . ":/home/kossak/.fzf/man") ("PATH" . "/home/kossak/.dotfiles/bin:/home/kossak/.dotfiles/bin:/home/kossak/.dotfiles/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/kossak/.fzf/bin")))
  exec-path-from-shell-copy-envs(("PATH" "MANPATH"))
  exec-path-from-shell-initialize()
  (progn (exec-path-from-shell-initialize))
  (if (memq window-system (quote (mac ns x))) (progn (exec-path-from-shell-initialize)))
  (condition-case err (if (memq window-system (quote (mac ns x))) (progn (exec-path-from-shell-initialize))) ((debug error) (ignore (display-warning (quote use-package) (format "%s %s: %s" "exec-path-from-shell" ":init" (error-message-string err)) :error))))
  (progn (condition-case err (if (memq window-system (quote (mac ns x))) (progn (exec-path-from-shell-initialize))) ((debug error) (ignore (display-warning (quote use-package) (format "%s %s: %s" "exec-path-from-shell" ":init" (error-message-string err)) :error)))) (condition-case err (run-hooks (quote use-package--exec-path-from-shell--post-init-hook)) ((debug error) (ignore (display-warning (quote use-package) (format "%s %s: %s" "exec-path-from-shell" "post-:init hook" (error-message-string err)) :error)))))
  (if (condition-case err (run-hook-with-args-until-failure (quote use-package--exec-path-from-shell--pre-init-hook)) ((debug error) (ignore (display-warning (quote use-package) (format "%s %s: %s" "exec-path-from-shell" "pre-:init hook" (error-message-string err)) :error)))) (progn (condition-case err (if (memq window-system (quote (mac ns x))) (progn (exec-path-from-shell-initialize))) ((debug error) (ignore (display-warning (quote use-package) (format "%s %s: %s" "exec-path-from-shell" ":init" (error-message-string err)) :error)))) (condition-case err (run-hooks (quote use-package--exec-path-from-shell--post-init-hook)) ((debug error) (ignore (display-warning (quote use-package) (format "%s %s: %s" "exec-path-from-shell" "post-:init hook" (error-message-string err)) :error))))))
  (progn (if (condition-case err (run-hook-with-args-until-failure (quote use-package--exec-path-from-shell--pre-init-hook)) ((debug error) (ignore (display-warning (quote use-package) (format "%s %s: %s" "exec-path-from-shell" "pre-:init hook" (error-message-string err)) :error)))) (progn (condition-case err (if (memq window-system (quote (mac ns x))) (progn (exec-path-from-shell-initialize))) ((debug error) (ignore (display-warning (quote use-package) (format "%s %s: %s" "exec-path-from-shell" ":init" ...) :error)))) (condition-case err (run-hooks (quote use-package--exec-path-from-shell--post-init-hook)) ((debug error) (ignore (display-warning (quote use-package) (format "%s %s: %s" "exec-path-from-shell" "post-:init hook" ...) :error)))))) (let ((now (current-time))) (message "%s..." "Loading package exec-path-from-shell") (prog1 (if (not (require (quote exec-path-from-shell) nil (quote noerror))) (ignore (message (format "Could not load %s" (quote exec-path-from-shell))))) (let ((elapsed (float-time (time-subtract ... now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Loading package exec-path-from-shell" elapsed) (message "%s...done" "Loading package exec-path-from-shell"))))))
  spacemacs-base/init-exec-path-from-shell()
  funcall(spacemacs-base/init-exec-path-from-shell)
  (let* ((pkg-name (eieio-oref pkg (quote :name))) (owner (eieio-oref pkg (quote :owner))) (owner-layer (object-assoc owner :name configuration-layer--layers)) (disabled-for-layers (eieio-oref owner-layer (quote :disabled-for)))) (spacemacs-buffer/message (format "Configuring %S..." pkg-name)) (mapc (function (lambda (layer) (if (memq layer disabled-for-layers) (spacemacs-buffer/message (format "  -> ignored pre-init (%S)..." layer)) (spacemacs-buffer/message (format "  -> pre-init (%S)..." layer)) (condition-case err (funcall (intern ...)) ((quote error) (configuration-layer//increment-error-count) (spacemacs-buffer/append ...)))))) (eieio-oref pkg (quote :pre-layers))) (spacemacs-buffer/message (format "  -> init (%S)..." owner)) (funcall (intern (format "%S/init-%S" owner pkg-name))) (mapc (function (lambda (layer) (if (memq layer disabled-for-layers) (spacemacs-buffer/message (format "  -> ignored post-init (%S)..." layer)) (spacemacs-buffer/message (format "  -> post-init (%S)..." layer)) (condition-case err (funcall (intern ...)) ((quote error) (configuration-layer//increment-error-count) (spacemacs-buffer/append ...)))))) (eieio-oref pkg (quote :post-layers))))
  configuration-layer//configure-package([object cfgl-package "exec-path-from-shell" exec-path-from-shell spacemacs-base nil nil elpa nil nil nil])
  (cond ((eq (quote dotfile) (eieio-oref pkg (quote :owner))) (configuration-layer//activate-package pkg-name) (spacemacs-buffer/message (format "%S is configured in the dotfile." pkg-name))) (t (configuration-layer//activate-package pkg-name) (configuration-layer//configure-package pkg)))
  (cond ((and (eieio-oref pkg (quote :excluded)) (not (eieio-oref pkg (quote :protected)))) (spacemacs-buffer/message (format "%S ignored since it has been excluded." pkg-name))) ((null (eieio-oref pkg (quote :owner))) (spacemacs-buffer/message (format "%S ignored since it has no owner layer." pkg-name))) (t (let ((location (eieio-oref pkg (quote :location)))) (cond ((stringp location) (if (file-directory-p location) (setq load-path (cons ... load-path)) (spacemacs-buffer/warning "Location path for package %S does not exists (value: %s)." pkg location))) ((and (eq (quote local) location) (eq (quote dotfile) (eieio-oref pkg ...))) (setq load-path (cons (file-name-as-directory ...) load-path))) ((eq (quote local) location) (let* ((owner ...) (dir ...)) (setq load-path (cons ... load-path)) (setq load-path (cons ... load-path)))))) (cond ((eq (quote dotfile) (eieio-oref pkg (quote :owner))) (configuration-layer//activate-package pkg-name) (spacemacs-buffer/message (format "%S is configured in the dotfile." pkg-name))) (t (configuration-layer//activate-package pkg-name) (configuration-layer//configure-package pkg)))))
  (let ((pkg-name (eieio-oref pkg (quote :name)))) (cond ((and (eieio-oref pkg (quote :excluded)) (not (eieio-oref pkg (quote :protected)))) (spacemacs-buffer/message (format "%S ignored since it has been excluded." pkg-name))) ((null (eieio-oref pkg (quote :owner))) (spacemacs-buffer/message (format "%S ignored since it has no owner layer." pkg-name))) (t (let ((location (eieio-oref pkg (quote :location)))) (cond ((stringp location) (if (file-directory-p location) (setq load-path ...) (spacemacs-buffer/warning "Location path for package %S does not exists (value: %s)." pkg location))) ((and (eq ... location) (eq ... ...)) (setq load-path (cons ... load-path))) ((eq (quote local) location) (let* (... ...) (setq load-path ...) (setq load-path ...))))) (cond ((eq (quote dotfile) (eieio-oref pkg (quote :owner))) (configuration-layer//activate-package pkg-name) (spacemacs-buffer/message (format "%S is configured in the dotfile." pkg-name))) (t (configuration-layer//activate-package pkg-name) (configuration-layer//configure-package pkg))))))
  (while --dolist-tail-- (setq pkg (car --dolist-tail--)) (spacemacs-buffer/loading-animation) (let ((pkg-name (eieio-oref pkg (quote :name)))) (cond ((and (eieio-oref pkg (quote :excluded)) (not (eieio-oref pkg (quote :protected)))) (spacemacs-buffer/message (format "%S ignored since it has been excluded." pkg-name))) ((null (eieio-oref pkg (quote :owner))) (spacemacs-buffer/message (format "%S ignored since it has no owner layer." pkg-name))) (t (let ((location (eieio-oref pkg ...))) (cond ((stringp location) (if ... ... ...)) ((and ... ...) (setq load-path ...)) ((eq ... location) (let* ... ... ...)))) (cond ((eq (quote dotfile) (eieio-oref pkg ...)) (configuration-layer//activate-package pkg-name) (spacemacs-buffer/message (format "%S is configured in the dotfile." pkg-name))) (t (configuration-layer//activate-package pkg-name) (configuration-layer//configure-package pkg)))))) (setq --dolist-tail-- (cdr --dolist-tail--)))
  (let ((--dolist-tail-- packages) pkg) (while --dolist-tail-- (setq pkg (car --dolist-tail--)) (spacemacs-buffer/loading-animation) (let ((pkg-name (eieio-oref pkg (quote :name)))) (cond ((and (eieio-oref pkg (quote :excluded)) (not (eieio-oref pkg ...))) (spacemacs-buffer/message (format "%S ignored since it has been excluded." pkg-name))) ((null (eieio-oref pkg (quote :owner))) (spacemacs-buffer/message (format "%S ignored since it has no owner layer." pkg-name))) (t (let ((location ...)) (cond (... ...) (... ...) (... ...))) (cond ((eq ... ...) (configuration-layer//activate-package pkg-name) (spacemacs-buffer/message ...)) (t (configuration-layer//activate-package pkg-name) (configuration-layer//configure-package pkg)))))) (setq --dolist-tail-- (cdr --dolist-tail--))))
  configuration-layer//configure-packages-2(([object cfgl-package "ace-jump-helm-line" ace-jump-helm-line spacemacs nil nil elpa nil nil nil] [object cfgl-package "ace-link" ace-link spacemacs nil nil elpa nil nil nil] [object cfgl-package "ace-window" ace-window spacemacs nil nil elpa nil nil nil] [object cfgl-package "adaptive-wrap" adaptive-wrap spacemacs nil nil elpa nil nil nil] [object cfgl-package "aggressive-indent" aggressive-indent spacemacs nil nil elpa nil nil nil] [object cfgl-package "auto-compile" auto-compile emacs-lisp nil nil elpa nil nil nil] [object cfgl-package "auto-highlight-symbol" auto-highlight-symbol spacemacs nil nil elpa nil nil nil] [object cfgl-package "avy" avy spacemacs nil nil elpa nil nil nil] [object cfgl-package "bind-key" bind-key spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "bookmark" bookmark spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "bracketed-paste" bracketed-paste spacemacs nil nil elpa nil nil nil] [object cfgl-package "buffer-move" buffer-move spacemacs nil nil elpa nil nil nil] [object cfgl-package "centered-cursor" centered-cursor spacemacs nil nil local nil nil nil] [object cfgl-package "clean-aindent-mode" clean-aindent-mode spacemacs nil nil elpa nil nil nil] [object cfgl-package "company" company nil nil (emacs-lisp) elpa nil nil nil] [object cfgl-package "define-word" define-word spacemacs nil nil elpa nil nil nil] [object cfgl-package "desktop" desktop spacemacs nil nil elpa nil nil nil] [object cfgl-package "diminish" diminish spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "doc-view" doc-view spacemacs nil nil elpa nil nil nil] [object cfgl-package "ediff" ediff spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "eldoc" eldoc spacemacs-base nil (emacs-lisp) elpa nil nil nil] [object cfgl-package "electric-indent-mode" electric-indent-mode spacemacs-base nil nil built-in nil nil nil] [object cfgl-package "elisp-slime-nav" elisp-slime-nav emacs-lisp nil nil elpa nil nil nil] [object cfgl-package "emacs-lisp" emacs-lisp emacs-lisp nil nil built-in nil nil nil] [object cfgl-package "eval-sexp-fu" eval-sexp-fu spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil" evil spacemacs-base nil (emacs-lisp) elpa nil nil nil] [object cfgl-package "evil-anzu" evil-anzu spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-args" evil-args spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-escape" evil-escape spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "evil-exchange" evil-exchange spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-iedit-state" evil-iedit-state spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-indent-plus" evil-indent-plus spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-jumper" evil-jumper spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-lisp-state" evil-lisp-state spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-matchit" evil-matchit spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-mc" evil-mc spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-nerd-commenter" evil-nerd-commenter spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-numbers" evil-numbers spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-search-highlight-persist" evil-search-highlight-persist spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-surround" evil-surround spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "evil-terminal-cursor-changer" evil-terminal-cursor-changer spacemacs nil nil elpa nil nil t] [object cfgl-package "evil-tutor" evil-tutor spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-visualstar" evil-visualstar spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "exec-path-from-shell" exec-path-from-shell spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "expand-region" expand-region spacemacs nil nil elpa nil nil nil] [object cfgl-package "eyebrowse" eyebrowse nil nil (spacemacs-layouts) elpa nil nil nil] [object cfgl-package "fancy-battery" fancy-battery spacemacs nil nil elpa nil nil nil] [object cfgl-package "fill-column-indicator" fill-column-indicator spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "flx-ido" flx-ido spacemacs nil nil elpa nil nil nil] [object cfgl-package "flycheck" flycheck nil nil (emacs-lisp) elpa nil nil nil] ...))
  configuration-layer//configure-packages(([object cfgl-package "ace-jump-helm-line" ace-jump-helm-line spacemacs nil nil elpa nil nil nil] [object cfgl-package "ace-link" ace-link spacemacs nil nil elpa nil nil nil] [object cfgl-package "ace-window" ace-window spacemacs nil nil elpa nil nil nil] [object cfgl-package "adaptive-wrap" adaptive-wrap spacemacs nil nil elpa nil nil nil] [object cfgl-package "aggressive-indent" aggressive-indent spacemacs nil nil elpa nil nil nil] [object cfgl-package "auto-compile" auto-compile emacs-lisp nil nil elpa nil nil nil] [object cfgl-package "auto-highlight-symbol" auto-highlight-symbol spacemacs nil nil elpa nil nil nil] [object cfgl-package "avy" avy spacemacs nil nil elpa nil nil nil] [object cfgl-package "bind-key" bind-key spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "bind-map" bind-map spacemacs-base nil nil elpa pre nil nil] [object cfgl-package "bookmark" bookmark spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "bracketed-paste" bracketed-paste spacemacs nil nil elpa nil nil nil] [object cfgl-package "buffer-move" buffer-move spacemacs nil nil elpa nil nil nil] [object cfgl-package "centered-cursor" centered-cursor spacemacs nil nil local nil nil nil] [object cfgl-package "clean-aindent-mode" clean-aindent-mode spacemacs nil nil elpa nil nil nil] [object cfgl-package "company" company nil nil (emacs-lisp) elpa nil nil nil] [object cfgl-package "define-word" define-word spacemacs nil nil elpa nil nil nil] [object cfgl-package "desktop" desktop spacemacs nil nil elpa nil nil nil] [object cfgl-package "diminish" diminish spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "doc-view" doc-view spacemacs nil nil elpa nil nil nil] [object cfgl-package "ediff" ediff spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "eldoc" eldoc spacemacs-base nil (emacs-lisp) elpa nil nil nil] [object cfgl-package "electric-indent-mode" electric-indent-mode spacemacs-base nil nil built-in nil nil nil] [object cfgl-package "elisp-slime-nav" elisp-slime-nav emacs-lisp nil nil elpa nil nil nil] [object cfgl-package "emacs-lisp" emacs-lisp emacs-lisp nil nil built-in nil nil nil] [object cfgl-package "eval-sexp-fu" eval-sexp-fu spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil" evil spacemacs-base nil (emacs-lisp) elpa nil nil nil] [object cfgl-package "evil-anzu" evil-anzu spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-args" evil-args spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-escape" evil-escape spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "evil-evilified-state" evil-evilified-state spacemacs-base nil nil local pre t nil] [object cfgl-package "evil-exchange" evil-exchange spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-iedit-state" evil-iedit-state spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-indent-plus" evil-indent-plus spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-jumper" evil-jumper spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-lisp-state" evil-lisp-state spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-matchit" evil-matchit spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-mc" evil-mc spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-nerd-commenter" evil-nerd-commenter spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-numbers" evil-numbers spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-search-highlight-persist" evil-search-highlight-persist spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-surround" evil-surround spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "evil-terminal-cursor-changer" evil-terminal-cursor-changer spacemacs nil nil elpa nil nil t] [object cfgl-package "evil-tutor" evil-tutor spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-visualstar" evil-visualstar spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "exec-path-from-shell" exec-path-from-shell spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "expand-region" expand-region spacemacs nil nil elpa nil nil nil] [object cfgl-package "eyebrowse" eyebrowse nil nil (spacemacs-layouts) elpa nil nil nil] [object cfgl-package "fancy-battery" fancy-battery spacemacs nil nil elpa nil nil nil] [object cfgl-package "fill-column-indicator" fill-column-indicator spacemacs-base nil nil elpa nil nil nil] ...))
  configuration-layer//load-packages(([object cfgl-package "ace-jump-helm-line" ace-jump-helm-line spacemacs nil nil elpa nil nil nil] [object cfgl-package "ace-link" ace-link spacemacs nil nil elpa nil nil nil] [object cfgl-package "ace-window" ace-window spacemacs nil nil elpa nil nil nil] [object cfgl-package "adaptive-wrap" adaptive-wrap spacemacs nil nil elpa nil nil nil] [object cfgl-package "aggressive-indent" aggressive-indent spacemacs nil nil elpa nil nil nil] [object cfgl-package "auto-compile" auto-compile emacs-lisp nil nil elpa nil nil nil] [object cfgl-package "auto-highlight-symbol" auto-highlight-symbol spacemacs nil nil elpa nil nil nil] [object cfgl-package "avy" avy spacemacs nil nil elpa nil nil nil] [object cfgl-package "bind-key" bind-key spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "bind-map" bind-map spacemacs-base nil nil elpa pre nil nil] [object cfgl-package "bookmark" bookmark spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "bracketed-paste" bracketed-paste spacemacs nil nil elpa nil nil nil] [object cfgl-package "buffer-move" buffer-move spacemacs nil nil elpa nil nil nil] [object cfgl-package "centered-cursor" centered-cursor spacemacs nil nil local nil nil nil] [object cfgl-package "clean-aindent-mode" clean-aindent-mode spacemacs nil nil elpa nil nil nil] [object cfgl-package "company" company nil nil (emacs-lisp) elpa nil nil nil] [object cfgl-package "define-word" define-word spacemacs nil nil elpa nil nil nil] [object cfgl-package "desktop" desktop spacemacs nil nil elpa nil nil nil] [object cfgl-package "diminish" diminish spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "doc-view" doc-view spacemacs nil nil elpa nil nil nil] [object cfgl-package "ediff" ediff spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "eldoc" eldoc spacemacs-base nil (emacs-lisp) elpa nil nil nil] [object cfgl-package "electric-indent-mode" electric-indent-mode spacemacs-base nil nil built-in nil nil nil] [object cfgl-package "elisp-slime-nav" elisp-slime-nav emacs-lisp nil nil elpa nil nil nil] [object cfgl-package "emacs-lisp" emacs-lisp emacs-lisp nil nil built-in nil nil nil] [object cfgl-package "eval-sexp-fu" eval-sexp-fu spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil" evil spacemacs-base nil (emacs-lisp) elpa nil nil nil] [object cfgl-package "evil-anzu" evil-anzu spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-args" evil-args spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-escape" evil-escape spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "evil-evilified-state" evil-evilified-state spacemacs-base nil nil local pre t nil] [object cfgl-package "evil-exchange" evil-exchange spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-iedit-state" evil-iedit-state spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-indent-plus" evil-indent-plus spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-jumper" evil-jumper spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-lisp-state" evil-lisp-state spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-matchit" evil-matchit spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-mc" evil-mc spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-nerd-commenter" evil-nerd-commenter spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-numbers" evil-numbers spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-search-highlight-persist" evil-search-highlight-persist spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-surround" evil-surround spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "evil-terminal-cursor-changer" evil-terminal-cursor-changer spacemacs nil nil elpa nil nil t] [object cfgl-package "evil-tutor" evil-tutor spacemacs nil nil elpa nil nil nil] [object cfgl-package "evil-visualstar" evil-visualstar spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "exec-path-from-shell" exec-path-from-shell spacemacs-base nil nil elpa nil nil nil] [object cfgl-package "expand-region" expand-region spacemacs nil nil elpa nil nil nil] [object cfgl-package "eyebrowse" eyebrowse nil nil (spacemacs-layouts) elpa nil nil nil] [object cfgl-package "fancy-battery" fancy-battery spacemacs nil nil elpa nil nil nil] [object cfgl-package "fill-column-indicator" fill-column-indicator spacemacs-base nil nil elpa nil nil nil] ...))
  configuration-layer/sync()
  (if (not (version<= spacemacs-emacs-min-version emacs-version)) (message (concat "Your version of Emacs (%s) is too old. " "Spacemacs requires Emacs version %d or above.") emacs-version spacemacs-emacs-min-version) (load-file (concat user-emacs-directory "core/core-load-paths.el")) (require (quote core-spacemacs)) (spacemacs/init) (spacemacs/maybe-install-dotfile) (configuration-layer/sync) (spacemacs/setup-startup-hook) (require (quote server)) (if (server-running-p) nil (server-start)))
  eval-buffer(#<buffer  *load*> nil "/home/kossak/.emacs.d/init.el" nil t)  ; Reading at buffer position 1076
  load-with-code-conversion("/home/kossak/.emacs.d/init.el" "/home/kossak/.emacs.d/init.el" t t)
  load("/home/kossak/.emacs.d/init" t t)
  #[0 "�\205\262� \306=\203��\307�\310Q\202;� \311=\204��\307�\312Q\202;�\313\307\314\315#\203*�\316\202;�\313\307\314\317#\203:�\320\nB�\321\202;�\316\322�\323�\322\211#\210�\322=\203a�\324\325\326\307�\327Q!\"\323�\322\211#\210�\322=\203`���\210�\203\243�\330�!\331\232\203\243�\332�!\211\333P\334�!\203}�\211\202\210�\334�!\203\207��\202\210�\314\262��\203\241�\335��\"\203\237�\336\337��#\210\340\341!\210��\266�\f?\205\260�\314�\323\342\322\211#)\262�\207" [init-file-user system-type delayed-warnings-list user-init-file inhibit-default-init inhibit-startup-screen ms-dos "~" "/_emacs" windows-nt "/.emacs" directory-files nil "^\\.emacs\\(\\.elc?\\)?$" "~/.emacs" "^_emacs\\(\\.elc?\\)?$" (initialization "`_emacs' init file is deprecated, please use `.emacs'") "~/_emacs" t load expand-file-name "init" file-name-as-directory "/.emacs.d" file-name-extension "elc" file-name-sans-extension ".el" file-exists-p file-newer-than-file-p message "Warning: %s is newer than %s" sit-for 1 "default"] 7 "\n\n(fn)"]()
  command-line()
  normal-top-level()
@TheBB

This comment has been minimized.

Collaborator

TheBB commented Jan 22, 2016

Okay, well since the error originates from the exec-path-from-shell package, it's probably a good bet to try there. https://github.com/purcell/exec-path-from-shell

It may involve a problem with your .bashrc (or equivalent). If you don't need the features of that package (which may very well be the case) you can also exclude it.

@tkossak

This comment has been minimized.

tkossak commented Jan 22, 2016

This was .bashrc problem! Don't know which line exactly, but when i delete the file emacs doesn't give me any errors. Later i'll try to find the exact line and let you know. Thank you for your time.

@TheBB

This comment has been minimized.

Collaborator

TheBB commented Jan 22, 2016

Good to hear. 👍

@TheBB TheBB closed this Jan 22, 2016

@tkossak

This comment has been minimized.

tkossak commented Jan 23, 2016

The line that was causing the problems was:
[[ "$-" != *i* ]] && exit
(exiting from bashrc if not running interactively)

@landaire

This comment has been minimized.

landaire commented Mar 18, 2016

I think what was causing this issue for me was using the tmux plugin with zsh and enabling ZSH_TMUX_AUTOSTART. Setting that to false seems to have fixed the issue.

@lvh

This comment has been minimized.

lvh commented Feb 3, 2017

FWIW, I'm getting this with the most recent version of fish.

@pbugnion

This comment has been minimized.

pbugnion commented Feb 4, 2017

Same as @lvh -- I am working around this by setting the SHELL environment variable to something other than fish:

fish> env SHELL=/bin/bash emacs
@lvh

This comment has been minimized.

lvh commented Feb 4, 2017

If you hit this with fish, the problem is that you have something in your fish config that's being run interactively that's calling eval. For now, the workaround is "don't do that". If you specifically had thefuck installed and followed the instructions, you had something like:

  eval (thefuck --alias | tr '\n' ';')

... instead replace it with:

  thefuck --alias | source

For more details, see this ticket: fish-shell/fish-shell#3809 (comment)

Using /bin/bash instead is a workaround, but will break spacemacs features that rely on having the real values you'd expect in your interactive shells.

@Olical

This comment has been minimized.

Contributor

Olical commented Feb 6, 2017

Thanks to @lvh I narrowed my problem down to rvm.fish. I made the eval -> source changes, you can grab it here https://gist.github.com/Olical/984b1b092dbc4cb048842b18f72c8773

@randomthought

This comment has been minimized.

randomthought commented Apr 9, 2017

I resolved it by adding

(setq explicit-shell-file-name "/bin/bash")
(setq shell-file-name "bash")

to my dotspacemacs/user-init

ryanartecona added a commit to ryanartecona/Dotfiles that referenced this issue Jun 6, 2017

Don't `eval` from fish init sequence
After updating to emacs 25.x and updating spacemacs, I get an error after
spacemacs startup if anything called from config.fish or other fish startup
calls `eval`.

syl20bnr/spacemacs#4755 (comment)
@creasyw

This comment has been minimized.

creasyw commented Sep 28, 2017

I have the same symptom. The cause comes from the line exec zsh in the ~/.bashrc file. Removing that line fixed the issue.

@aleksandersumowski

This comment has been minimized.

aleksandersumowski commented Dec 14, 2017

Is there any way to detect if zshrc is sourced from within (space)emacs? I'd like to keep autostarting Tmux if the shell is started from regular terminal.

@g000444555

This comment has been minimized.

g000444555 commented Feb 28, 2018

I just stumbled upon this problem today and decided to share my workaround.

The problem is caused because spacemacs for some weird reason invokes the shell in interactive mode. The result is that .bashrc is being loaded and shell is switched to fish (or whatever your custom shell is) due to the exec fish statement inside .bashrc.

My workaround is to create a launcher script for emacs as follows

emacs-launcher

#!/usr/bin/env bash
export set EMACS_LAUNCHER=1
emacs "$@"

Then replace the exec fish statement in your .bashrc with

.bashrc

if [ -z ${EMACS_LAUNCHER+x} ]; then
    exec fish
fi
@pranavsubramani

This comment has been minimized.

pranavsubramani commented Mar 12, 2018

For anyone who is still having issues with using spacemacs with zsh, I did the following and it stopped throwing the errors :)

(setq explicit-shell-file-name "/bin/zsh")
(setq shell-file-name "zsh")

Depends on where you've stored zsh, but if you've installed it in the default location, this should work.

@walkerneo

This comment has been minimized.

walkerneo commented Sep 19, 2018

For anyone who is still having issues with using spacemacs with zsh, I did the following and it stopped throwing the errors :)

(setq explicit-shell-file-name "/bin/zsh")
(setq shell-file-name "zsh")

Depends on where you've stored zsh, but if you've installed it in the default location, this should work.

Ah, that was it for me. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment