syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.72k stars 4.9k forks source link

Error during evil-unimpaired loading (can't find f package) #6523

Closed bixuanzju closed 8 years ago

bixuanzju commented 8 years ago

Workaround for this problem

Add evil-unimpaired to list of excluded packages in your .spacemacs.

(defun dotspacemacs/layers ()
  "Configuration Layers declaration."
  (setq-default
   ;; ...
   dotspacemacs-excluded-packages '(evil-unimpaired)
   ;; ...
))

Description :octocat:

Commit c98f862 assumes we installed f, but in my case, I didn't.

Note that I have to revert c98f862 (in my system, it's 2a04d47) to be able to use the reporting mechanism.

Reproduction guide :beetle:

Observed behaviour: :eyes: :broken_heart: (file-error "Cannot open load file" "No such file or directory" "f")

Expected behaviour: :heart: :smile: No such error

System Info :computer:

(ivy
 (auto-completion :variables auto-completion-enable-sort-by-usage t)
 emacs-lisp
 (git :variables git-magit-status-fullscreen t)
 (markdown :variables markdown-live-preview-engine 'vmd)
 org
 (shell :variables shell-default-height 30 shell-default-position 'bottom)
 spell-checking
 (syntax-checking :variables syntax-checking-enable-tooltips nil)
 (version-control :variables version-control-diff-tool 'diff-hl)
 osx colors idris
 (haskell :variables haskell-completion-backend 'intero haskell-enable-hindent-style "johan-tibell")
 (latex :variables latex-build-command "LatexMk")
 (evil-snipe :variables evil-snipe-enable-alternate-f-and-t-behaviors t)
 ocaml lua sml yaml
 (c-c++ :variables c-c++-enable-clang-support t)
 proof-general)

Backtrace :paw_prints:

Debugger entered--Lisp error: (file-error "Cannot open load file" "No such file or directory" "f")
  require(f)
  eval-buffer(#<buffer  *load*-396962> nil "/Users/jeremybi/.emacs.d/layers/+spacemacs/spacemacs-evil/local/evil-unimpaired/evil-unimpaired.el" nil t)  ; Reading at buffer position 1145
  load-with-code-conversion("/Users/jeremybi/.emacs.d/layers/+spacemacs/spacemacs-evil/local/evil-unimpaired/evil-unimpaired.el" "/Users/jeremybi/.emacs.d/layers/+spacemacs/spacemacs-evil/local/evil-unimpaired/evil-unimpaired.el" t t)
  require(evil-unimpaired nil noerror)
  (not (require (quote evil-unimpaired) nil (quote noerror)))
  (if (not (require (quote evil-unimpaired) nil (quote noerror))) (ignore (message (format "Cannot load %s" (quote evil-unimpaired)))))
  (prog1 (if (not (require (quote evil-unimpaired) nil (quote noerror))) (ignore (message (format "Cannot load %s" (quote evil-unimpaired))))) (let ((elapsed (float-time (time-subtract (current-time) now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Loading package evil-unimpaired" elapsed) (message "%s...done" "Loading package evil-unimpaired"))))
  (let ((now (current-time))) (message "%s..." "Loading package evil-unimpaired") (prog1 (if (not (require (quote evil-unimpaired) nil (quote noerror))) (ignore (message (format "Cannot load %s" (quote evil-unimpaired))))) (let ((elapsed (float-time (time-subtract (current-time) now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Loading package evil-unimpaired" elapsed) (message "%s...done" "Loading package evil-unimpaired")))))
  (use-package evil-unimpaired)
  spacemacs-evil/init-evil-unimpaired()
  funcall(spacemacs-evil/init-evil-unimpaired)
  (let* ((pkg-name (eieio-oref pkg (quote :name))) (owner (car (eieio-oref pkg (quote :owners)))) (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 ...)) ((debug 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 ...)) ((debug quote error) (configuration-layer//increment-error-count) (spacemacs-buffer/append ...)))))) (eieio-oref pkg (quote :post-layers))))
  configuration-layer//configure-package([eieio-class-tag--cfgl-package evil-unimpaired (spacemacs-evil) nil (version-control) local t nil nil nil nil])
  (cond ((eq (quote dotfile) (car (eieio-oref pkg (quote :owners)))) (spacemacs-buffer/message (format "%S is configured in the dotfile." pkg-name))) (t (configuration-layer//configure-package pkg)))
  (cond ((eieio-oref pkg (quote :lazy-install)) (spacemacs-buffer/message (format "%S ignored since it can be lazily installed." pkg-name))) ((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 :owners))) (spacemacs-buffer/message (format "%S ignored since it has no owner layer." pkg-name))) ((not (cfgl-package-enabledp pkg t)) (spacemacs-buffer/message (format "%S is toggled off." pkg-name))) (t (let ((location (eieio-oref pkg (quote :location)))) (cond ((stringp location) (if (file-directory-p location) (setq load-path (cons ... load-path)) (configuration-layer//warning "Location path for package %S does not exists (value: %s)." pkg location))) ((and (eq (quote local) location) (eq (quote dotfile) (car ...))) (setq load-path (cons (file-name-as-directory ...) load-path))) ((eq (quote local) location) (let* ((owner ...) (dir ...)) (setq load-path (cons ... load-path)))))) (if (memq (eieio-oref pkg (quote :location)) (quote (local site built-in))) nil (configuration-layer//activate-package pkg-name)) (cond ((eq (quote dotfile) (car (eieio-oref pkg (quote :owners)))) (spacemacs-buffer/message (format "%S is configured in the dotfile." pkg-name))) (t (configuration-layer//configure-package pkg)))))
  (let ((pkg-name (eieio-oref pkg (quote :name)))) (cond ((eieio-oref pkg (quote :lazy-install)) (spacemacs-buffer/message (format "%S ignored since it can be lazily installed." pkg-name))) ((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 :owners))) (spacemacs-buffer/message (format "%S ignored since it has no owner layer." pkg-name))) ((not (cfgl-package-enabledp pkg t)) (spacemacs-buffer/message (format "%S is toggled off." pkg-name))) (t (let ((location (eieio-oref pkg (quote :location)))) (cond ((stringp location) (if (file-directory-p location) (setq load-path ...) (configuration-layer//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 ...))))) (if (memq (eieio-oref pkg (quote :location)) (quote (local site built-in))) nil (configuration-layer//activate-package pkg-name)) (cond ((eq (quote dotfile) (car (eieio-oref pkg ...))) (spacemacs-buffer/message (format "%S is configured in the dotfile." pkg-name))) (t (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 ((eieio-oref pkg (quote :lazy-install)) (spacemacs-buffer/message (format "%S ignored since it can be lazily installed." pkg-name))) ((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 :owners))) (spacemacs-buffer/message (format "%S ignored since it has no owner layer." pkg-name))) ((not (cfgl-package-enabledp pkg t)) (spacemacs-buffer/message (format "%S is toggled off." pkg-name))) (t (let ((location (eieio-oref pkg ...))) (cond ((stringp location) (if ... ... ...)) ((and ... ...) (setq load-path ...)) ((eq ... location) (let* ... ...)))) (if (memq (eieio-oref pkg (quote :location)) (quote (local site built-in))) nil (configuration-layer//activate-package pkg-name)) (cond ((eq (quote dotfile) (car ...)) (spacemacs-buffer/message (format "%S is configured in the dotfile." pkg-name))) (t (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 ((eieio-oref pkg (quote :lazy-install)) (spacemacs-buffer/message (format "%S ignored since it can be lazily installed." pkg-name))) ((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 :owners))) (spacemacs-buffer/message (format "%S ignored since it has no owner layer." pkg-name))) ((not (cfgl-package-enabledp pkg t)) (spacemacs-buffer/message (format "%S is toggled off." pkg-name))) (t (let ((location ...)) (cond (... ...) (... ...) (... ...))) (if (memq (eieio-oref pkg ...) (quote ...)) nil (configuration-layer//activate-package pkg-name)) (cond ((eq ... ...) (spacemacs-buffer/message ...)) (t (configuration-layer//configure-package pkg)))))) (setq --dolist-tail-- (cdr --dolist-tail--))))
  configuration-layer//configure-packages-2(([eieio-class-tag--cfgl-package abbrev (spacemacs-base) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package ac-ispell (auto-completion) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package ace-link (spacemacs-ui) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package ace-window (spacemacs-base) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package adaptive-wrap (spacemacs-editing-visual) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package aggressive-indent (spacemacs-editing) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package ansi-colors (spacemacs-ui-visual) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package auctex (latex) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package auctex-latexmk (latex) nil nil elpa (string= "LatexMk" latex-build-command) nil nil nil nil] [eieio-class-tag--cfgl-package auto-compile (emacs-lisp) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package auto-complete (auto-completion) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package auto-dictionary (spell-checking) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package auto-highlight-symbol (spacemacs-editing-visual) (ivy) nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package auto-yasnippet (auto-completion) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package avy (spacemacs-editing) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package bookmark (spacemacs-base) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package bracketed-paste (spacemacs-editing) nil nil elpa (version<= emacs-version "25.0.92") nil nil nil nil] [eieio-class-tag--cfgl-package cc-mode (c-c++) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package centered-buffer-mode (spacemacs-base) nil nil local t nil nil nil nil] [eieio-class-tag--cfgl-package centered-cursor (spacemacs-ui) nil nil local t nil nil nil nil] [eieio-class-tag--cfgl-package clang-format (c-c++) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package clean-aindent-mode (spacemacs-editing) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package cmake-mode (c-c++) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package cmm-mode (haskell) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package color-identifiers-mode (colors) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package column-enforce-mode (spacemacs-editing-visual) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package comint (shell) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package company (auto-completion) (shell) (c-c++ yaml lua ocaml latex haskell idris org markdown emacs-lisp) elpa t nil nil nil nil] [eieio-class-tag--cfgl-package company-auctex (latex) nil nil elpa (configuration-layer/package-usedp (quote company)) nil nil nil nil] [eieio-class-tag--cfgl-package company-c-headers (c-c++) nil nil elpa (configuration-layer/package-usedp (quote company)) nil nil nil nil] [eieio-class-tag--cfgl-package company-cabal (haskell) nil nil elpa (configuration-layer/package-usedp (quote company)) nil nil nil nil] [eieio-class-tag--cfgl-package company-coq (proof-general) nil nil elpa (configuration-layer/package-usedp (quote company)) nil nil nil nil] [eieio-class-tag--cfgl-package company-emoji nil nil (org markdown) elpa t nil nil nil nil] [eieio-class-tag--cfgl-package company-ghc (haskell) nil nil elpa t nil nil nil t] [eieio-class-tag--cfgl-package company-ghci (haskell) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package company-quickhelp (auto-completion) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package company-statistics (auto-completion) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package company-ycmd nil nil (c-c++) elpa t nil nil nil nil] [eieio-class-tag--cfgl-package counsel (ivy) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package counsel-projectile (ivy) nil nil elpa (configuration-layer/package-usedp (quote projectile)) nil nil nil nil] [eieio-class-tag--cfgl-package default-helm-config (spacemacs-completion) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package default-ivy-config (spacemacs-completion) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package default-org-config (spacemacs-org) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package define-word (spacemacs-language) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package desktop (spacemacs-ui) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package diff-hl (version-control) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package diff-mode (version-control) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package dired (spacemacs-base) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package dired-x (spacemacs-base) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package disaster (c-c++) nil nil elpa t nil nil nil nil] ...))
  configuration-layer//configure-packages(([eieio-class-tag--cfgl-package abbrev (spacemacs-base) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package ac-ispell (auto-completion) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package ace-link (spacemacs-ui) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package ace-window (spacemacs-base) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package adaptive-wrap (spacemacs-editing-visual) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package aggressive-indent (spacemacs-editing) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package ansi-colors (spacemacs-ui-visual) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package async (spacemacs-bootstrap) nil nil elpa t bootstrap nil t nil] [eieio-class-tag--cfgl-package auctex (latex) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package auctex-latexmk (latex) nil nil elpa (string= "LatexMk" latex-build-command) nil nil nil nil] [eieio-class-tag--cfgl-package auto-compile (emacs-lisp) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package auto-complete (auto-completion) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package auto-dictionary (spell-checking) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package auto-highlight-symbol (spacemacs-editing-visual) (ivy) nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package auto-yasnippet (auto-completion) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package avy (spacemacs-editing) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package bind-key (spacemacs-bootstrap) nil nil elpa t bootstrap nil t nil] [eieio-class-tag--cfgl-package bind-map (spacemacs-bootstrap) nil nil elpa t bootstrap nil t nil] [eieio-class-tag--cfgl-package bookmark (spacemacs-base) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package bracketed-paste (spacemacs-editing) nil nil elpa (version<= emacs-version "25.0.92") nil nil nil nil] [eieio-class-tag--cfgl-package cc-mode (c-c++) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package centered-buffer-mode (spacemacs-base) nil nil local t nil nil nil nil] [eieio-class-tag--cfgl-package centered-cursor (spacemacs-ui) nil nil local t nil nil nil nil] [eieio-class-tag--cfgl-package clang-format (c-c++) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package clean-aindent-mode (spacemacs-editing) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package cmake-mode (c-c++) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package cmm-mode (haskell) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package color-identifiers-mode (colors) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package column-enforce-mode (spacemacs-editing-visual) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package comint (shell) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package company (auto-completion) (shell) (c-c++ yaml lua ocaml latex haskell idris org markdown emacs-lisp) elpa t nil nil nil nil] [eieio-class-tag--cfgl-package company-auctex (latex) nil nil elpa (configuration-layer/package-usedp (quote company)) nil nil nil nil] [eieio-class-tag--cfgl-package company-c-headers (c-c++) nil nil elpa (configuration-layer/package-usedp (quote company)) nil nil nil nil] [eieio-class-tag--cfgl-package company-cabal (haskell) nil nil elpa (configuration-layer/package-usedp (quote company)) nil nil nil nil] [eieio-class-tag--cfgl-package company-coq (proof-general) nil nil elpa (configuration-layer/package-usedp (quote company)) nil nil nil nil] [eieio-class-tag--cfgl-package company-emoji nil nil (org markdown) elpa t nil nil nil nil] [eieio-class-tag--cfgl-package company-ghc (haskell) nil nil elpa t nil nil nil t] [eieio-class-tag--cfgl-package company-ghci (haskell) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package company-quickhelp (auto-completion) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package company-statistics (auto-completion) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package company-ycmd nil nil (c-c++) elpa t nil nil nil nil] [eieio-class-tag--cfgl-package counsel (ivy) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package counsel-projectile (ivy) nil nil elpa (configuration-layer/package-usedp (quote projectile)) nil nil nil nil] [eieio-class-tag--cfgl-package default-helm-config (spacemacs-completion) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package default-ivy-config (spacemacs-completion) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package default-org-config (spacemacs-org) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package define-word (spacemacs-language) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package desktop (spacemacs-ui) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package diff-hl (version-control) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package diff-mode (version-control) nil nil elpa t nil nil nil nil] ...))
  (if no-install nil (if (eq (quote all) dotspacemacs-download-packages) (configuration-layer//install-packages (configuration-layer//get-distant-packages (configuration-layer/get-all-packages) nil)) (configuration-layer//install-packages (configuration-layer/filter-objects configuration-layer--used-distant-packages (function (lambda (x) (not (eieio-oref x ...))))))) (configuration-layer//configure-packages configuration-layer--packages) (configuration-layer//load-layers-files configuration-layer--layers (quote ("keybindings.el"))) (if (and (eq (quote used) dotspacemacs-download-packages) (not configuration-layer-distribution) (not configuration-layer-no-layer)) (progn (configuration-layer/delete-orphan-packages configuration-layer--packages))))
  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 %s or above.") emacs-version spacemacs-emacs-min-version) (load-file (concat (file-name-directory load-file-name) "core/core-load-paths.el")) (require (quote core-spacemacs)) (spacemacs/init) (spacemacs/maybe-install-dotfile) (configuration-layer/sync) (spacemacs-buffer/display-info-box) (spacemacs/setup-startup-hook) (require (quote server)) (if (server-running-p) nil (server-start)))
  eval-buffer(#<buffer  *load*> nil "/Users/jeremybi/.emacs.d/init.el" nil t)  ; Reading at buffer position 1194
  load-with-code-conversion("/Users/jeremybi/.emacs.d/init.el" "/Users/jeremybi/.emacs.d/init.el" t t)
  load("/Users/jeremybi/.emacs.d/init" t t)
  #[0 "\205\266    \306=\203\307\310Q\202?   \311=\204\307\312Q\202?\313\307\314\315#\203*\316\202?\313\307\314\317#\203>\320\321\322!D\nB\323\202?\316\324\325\324\211#\210\324=\203e\326\327\330\307\331Q!\"\325\324\211#\210\324=\203d\210\203\247\332!\333\232\203\247\334!\211\335P\336!\203\201\211\202\214\336!\203\213\202\214\314\262\203\245\337\"\203\243\340\341#\210\342\343!\210\266\f?\205\264\314\325\344\324\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 format-message "`_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]()
  command-line()
  normal-top-level()
robbyoconnor commented 8 years ago

Please follow the bug report template -- you have NO reproduction steps so nobody even know how you got this. I am not having this issue.

System Info :computer:

(bibtex rebox nginx twitter graphviz ivy helm asciidoc elfeed speed-reading swift plantuml
        (auto-completion :variables auto-completion-return-key-behavior 'complete auto-completion-tab-key-behavior 'cycle auto-completion-complete-with-key-sequence nil auto-completion-enable-help-tooltip t auto-completion-enable-sort-by-usage t auto-completion-show-snippets-in-popup t auto-completion-private-snippets-directory "~/.spacemacs.d/snippets")
        better-defaults emacs-lisp
        (git :variables git-magit-status-fullscreen t)
        github gnus version-control markdown syntax-checking
        (latex :variables latex-enable-auto-fill t)
        (colors :variables colors-colorize-identifiers 'all colors-enable-nyan-cat-progress-bar t)
        docker ansible puppet evil-commentary
        (evil-snipe :variables evil-snipe-enable-alternate-f-and-t-behaviors t)
        fasd finance floobits xkcd autohotkey csv
        (c-c++ :variables c-c++-enable-clang-support t)
        (clojure :variables clojure-enable-fancify-symbols t)
        extra-langs go
        (haskell :variables haskell-enable-ghci-ng-support t haskell-enable-shm-support t haskell-enable-hindent-style "andrew-gibiansky")
        html java
        (javascript :variables javascript-disable-tern-port-files t)
        (python :variables python-enable-yapf-format-on-save t python-test-runner
                '(nose pytest))
        racket
        (ruby :variables ruby-version-manager `rvm)
        ruby-on-rails
        (rust :variables rust-enable-rustfmt-on-save t)
        scala shell-scripts restclient themes-megapack tmux vim-empty-lines spotify pandoc vagrant
        (ibuffer :variables ibuffer-group-buffers-by 'projects)
        semantic deft
        (shell :variables shell-default-shell 'ansi-term shell-default-position 'bottom shell-default-height 30 shell-default-term-shell "/bin/zsh")
        erc chrome d emoji gtags prodigy evernote
        (org :variables org-enable-github-support t org-enable-reveal-js-support t)
        search-engine evil-little-word yaml sql nim ipython-notebook lua scheme purescript sml common-lisp ranger wakatime dash spell-checking jabber cscope vinegar rcirc games react geolocation idris
        (elm :variables elm-reactor-port "3000" elm-reactor-address "0.0.0.0")
        elixir
        (typography :variables typography-enable-typographic-editing nil)
        evil-cleverparens pdf-tools imenu-list slack)
bixuanzju commented 8 years ago

@robbyoconnor That's because it even breaks the reporting mechanism. The issue is just "have we installed f by Spacemacs?" Can you list-packages and see if f is installed? (In my case, no).

(rev. 9499e24)

robbyoconnor commented 8 years ago

I don't have this problem. What emacs version? you didn't give us ANY information

robbyoconnor commented 8 years ago

it is not installed -- I'm not having an issue -- you gave NO reproduction steps whatsoever. How would one go about getting this error to happen?

bixuanzju commented 8 years ago

It's not really much to reproduce, but hey

Description :octocat:

Commit c98f862 assumes we installed f, but in my case, I didn't.

Note that I have to revert c98f862 (in my system, it's 2a04d47) to be able to use the reporting mechanism.

Reproduction guide :beetle:

Observed behaviour: :eyes: :broken_heart: (file-error "Cannot open load file" "No such file or directory" "f")

Expected behaviour: :heart: :smile: No such error

System Info :computer:

(ivy
 (auto-completion :variables auto-completion-enable-sort-by-usage t)
 emacs-lisp
 (git :variables git-magit-status-fullscreen t)
 (markdown :variables markdown-live-preview-engine 'vmd)
 org
 (shell :variables shell-default-height 30 shell-default-position 'bottom)
 spell-checking
 (syntax-checking :variables syntax-checking-enable-tooltips nil)
 (version-control :variables version-control-diff-tool 'diff-hl)
 osx colors idris
 (haskell :variables haskell-completion-backend 'intero haskell-enable-hindent-style "johan-tibell")
 (latex :variables latex-build-command "LatexMk")
 (evil-snipe :variables evil-snipe-enable-alternate-f-and-t-behaviors t)
 ocaml lua sml yaml
 (c-c++ :variables c-c++-enable-clang-support t)
 proof-general)

Backtrace :paw_prints:

Debugger entered--Lisp error: (file-error "Cannot open load file" "No such file or directory" "f")
  require(f)
  eval-buffer(#<buffer  *load*-396962> nil "/Users/jeremybi/.emacs.d/layers/+spacemacs/spacemacs-evil/local/evil-unimpaired/evil-unimpaired.el" nil t)  ; Reading at buffer position 1145
  load-with-code-conversion("/Users/jeremybi/.emacs.d/layers/+spacemacs/spacemacs-evil/local/evil-unimpaired/evil-unimpaired.el" "/Users/jeremybi/.emacs.d/layers/+spacemacs/spacemacs-evil/local/evil-unimpaired/evil-unimpaired.el" t t)
  require(evil-unimpaired nil noerror)
  (not (require (quote evil-unimpaired) nil (quote noerror)))
  (if (not (require (quote evil-unimpaired) nil (quote noerror))) (ignore (message (format "Cannot load %s" (quote evil-unimpaired)))))
  (prog1 (if (not (require (quote evil-unimpaired) nil (quote noerror))) (ignore (message (format "Cannot load %s" (quote evil-unimpaired))))) (let ((elapsed (float-time (time-subtract (current-time) now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Loading package evil-unimpaired" elapsed) (message "%s...done" "Loading package evil-unimpaired"))))
  (let ((now (current-time))) (message "%s..." "Loading package evil-unimpaired") (prog1 (if (not (require (quote evil-unimpaired) nil (quote noerror))) (ignore (message (format "Cannot load %s" (quote evil-unimpaired))))) (let ((elapsed (float-time (time-subtract (current-time) now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Loading package evil-unimpaired" elapsed) (message "%s...done" "Loading package evil-unimpaired")))))
  (use-package evil-unimpaired)
  spacemacs-evil/init-evil-unimpaired()
  funcall(spacemacs-evil/init-evil-unimpaired)
  (let* ((pkg-name (eieio-oref pkg (quote :name))) (owner (car (eieio-oref pkg (quote :owners)))) (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 ...)) ((debug 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 ...)) ((debug quote error) (configuration-layer//increment-error-count) (spacemacs-buffer/append ...)))))) (eieio-oref pkg (quote :post-layers))))
  configuration-layer//configure-package([eieio-class-tag--cfgl-package evil-unimpaired (spacemacs-evil) nil (version-control) local t nil nil nil nil])
  (cond ((eq (quote dotfile) (car (eieio-oref pkg (quote :owners)))) (spacemacs-buffer/message (format "%S is configured in the dotfile." pkg-name))) (t (configuration-layer//configure-package pkg)))
  (cond ((eieio-oref pkg (quote :lazy-install)) (spacemacs-buffer/message (format "%S ignored since it can be lazily installed." pkg-name))) ((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 :owners))) (spacemacs-buffer/message (format "%S ignored since it has no owner layer." pkg-name))) ((not (cfgl-package-enabledp pkg t)) (spacemacs-buffer/message (format "%S is toggled off." pkg-name))) (t (let ((location (eieio-oref pkg (quote :location)))) (cond ((stringp location) (if (file-directory-p location) (setq load-path (cons ... load-path)) (configuration-layer//warning "Location path for package %S does not exists (value: %s)." pkg location))) ((and (eq (quote local) location) (eq (quote dotfile) (car ...))) (setq load-path (cons (file-name-as-directory ...) load-path))) ((eq (quote local) location) (let* ((owner ...) (dir ...)) (setq load-path (cons ... load-path)))))) (if (memq (eieio-oref pkg (quote :location)) (quote (local site built-in))) nil (configuration-layer//activate-package pkg-name)) (cond ((eq (quote dotfile) (car (eieio-oref pkg (quote :owners)))) (spacemacs-buffer/message (format "%S is configured in the dotfile." pkg-name))) (t (configuration-layer//configure-package pkg)))))
  (let ((pkg-name (eieio-oref pkg (quote :name)))) (cond ((eieio-oref pkg (quote :lazy-install)) (spacemacs-buffer/message (format "%S ignored since it can be lazily installed." pkg-name))) ((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 :owners))) (spacemacs-buffer/message (format "%S ignored since it has no owner layer." pkg-name))) ((not (cfgl-package-enabledp pkg t)) (spacemacs-buffer/message (format "%S is toggled off." pkg-name))) (t (let ((location (eieio-oref pkg (quote :location)))) (cond ((stringp location) (if (file-directory-p location) (setq load-path ...) (configuration-layer//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 ...))))) (if (memq (eieio-oref pkg (quote :location)) (quote (local site built-in))) nil (configuration-layer//activate-package pkg-name)) (cond ((eq (quote dotfile) (car (eieio-oref pkg ...))) (spacemacs-buffer/message (format "%S is configured in the dotfile." pkg-name))) (t (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 ((eieio-oref pkg (quote :lazy-install)) (spacemacs-buffer/message (format "%S ignored since it can be lazily installed." pkg-name))) ((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 :owners))) (spacemacs-buffer/message (format "%S ignored since it has no owner layer." pkg-name))) ((not (cfgl-package-enabledp pkg t)) (spacemacs-buffer/message (format "%S is toggled off." pkg-name))) (t (let ((location (eieio-oref pkg ...))) (cond ((stringp location) (if ... ... ...)) ((and ... ...) (setq load-path ...)) ((eq ... location) (let* ... ...)))) (if (memq (eieio-oref pkg (quote :location)) (quote (local site built-in))) nil (configuration-layer//activate-package pkg-name)) (cond ((eq (quote dotfile) (car ...)) (spacemacs-buffer/message (format "%S is configured in the dotfile." pkg-name))) (t (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 ((eieio-oref pkg (quote :lazy-install)) (spacemacs-buffer/message (format "%S ignored since it can be lazily installed." pkg-name))) ((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 :owners))) (spacemacs-buffer/message (format "%S ignored since it has no owner layer." pkg-name))) ((not (cfgl-package-enabledp pkg t)) (spacemacs-buffer/message (format "%S is toggled off." pkg-name))) (t (let ((location ...)) (cond (... ...) (... ...) (... ...))) (if (memq (eieio-oref pkg ...) (quote ...)) nil (configuration-layer//activate-package pkg-name)) (cond ((eq ... ...) (spacemacs-buffer/message ...)) (t (configuration-layer//configure-package pkg)))))) (setq --dolist-tail-- (cdr --dolist-tail--))))
  configuration-layer//configure-packages-2(([eieio-class-tag--cfgl-package abbrev (spacemacs-base) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package ac-ispell (auto-completion) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package ace-link (spacemacs-ui) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package ace-window (spacemacs-base) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package adaptive-wrap (spacemacs-editing-visual) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package aggressive-indent (spacemacs-editing) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package ansi-colors (spacemacs-ui-visual) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package auctex (latex) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package auctex-latexmk (latex) nil nil elpa (string= "LatexMk" latex-build-command) nil nil nil nil] [eieio-class-tag--cfgl-package auto-compile (emacs-lisp) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package auto-complete (auto-completion) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package auto-dictionary (spell-checking) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package auto-highlight-symbol (spacemacs-editing-visual) (ivy) nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package auto-yasnippet (auto-completion) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package avy (spacemacs-editing) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package bookmark (spacemacs-base) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package bracketed-paste (spacemacs-editing) nil nil elpa (version<= emacs-version "25.0.92") nil nil nil nil] [eieio-class-tag--cfgl-package cc-mode (c-c++) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package centered-buffer-mode (spacemacs-base) nil nil local t nil nil nil nil] [eieio-class-tag--cfgl-package centered-cursor (spacemacs-ui) nil nil local t nil nil nil nil] [eieio-class-tag--cfgl-package clang-format (c-c++) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package clean-aindent-mode (spacemacs-editing) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package cmake-mode (c-c++) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package cmm-mode (haskell) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package color-identifiers-mode (colors) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package column-enforce-mode (spacemacs-editing-visual) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package comint (shell) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package company (auto-completion) (shell) (c-c++ yaml lua ocaml latex haskell idris org markdown emacs-lisp) elpa t nil nil nil nil] [eieio-class-tag--cfgl-package company-auctex (latex) nil nil elpa (configuration-layer/package-usedp (quote company)) nil nil nil nil] [eieio-class-tag--cfgl-package company-c-headers (c-c++) nil nil elpa (configuration-layer/package-usedp (quote company)) nil nil nil nil] [eieio-class-tag--cfgl-package company-cabal (haskell) nil nil elpa (configuration-layer/package-usedp (quote company)) nil nil nil nil] [eieio-class-tag--cfgl-package company-coq (proof-general) nil nil elpa (configuration-layer/package-usedp (quote company)) nil nil nil nil] [eieio-class-tag--cfgl-package company-emoji nil nil (org markdown) elpa t nil nil nil nil] [eieio-class-tag--cfgl-package company-ghc (haskell) nil nil elpa t nil nil nil t] [eieio-class-tag--cfgl-package company-ghci (haskell) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package company-quickhelp (auto-completion) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package company-statistics (auto-completion) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package company-ycmd nil nil (c-c++) elpa t nil nil nil nil] [eieio-class-tag--cfgl-package counsel (ivy) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package counsel-projectile (ivy) nil nil elpa (configuration-layer/package-usedp (quote projectile)) nil nil nil nil] [eieio-class-tag--cfgl-package default-helm-config (spacemacs-completion) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package default-ivy-config (spacemacs-completion) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package default-org-config (spacemacs-org) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package define-word (spacemacs-language) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package desktop (spacemacs-ui) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package diff-hl (version-control) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package diff-mode (version-control) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package dired (spacemacs-base) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package dired-x (spacemacs-base) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package disaster (c-c++) nil nil elpa t nil nil nil nil] ...))
  configuration-layer//configure-packages(([eieio-class-tag--cfgl-package abbrev (spacemacs-base) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package ac-ispell (auto-completion) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package ace-link (spacemacs-ui) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package ace-window (spacemacs-base) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package adaptive-wrap (spacemacs-editing-visual) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package aggressive-indent (spacemacs-editing) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package ansi-colors (spacemacs-ui-visual) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package async (spacemacs-bootstrap) nil nil elpa t bootstrap nil t nil] [eieio-class-tag--cfgl-package auctex (latex) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package auctex-latexmk (latex) nil nil elpa (string= "LatexMk" latex-build-command) nil nil nil nil] [eieio-class-tag--cfgl-package auto-compile (emacs-lisp) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package auto-complete (auto-completion) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package auto-dictionary (spell-checking) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package auto-highlight-symbol (spacemacs-editing-visual) (ivy) nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package auto-yasnippet (auto-completion) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package avy (spacemacs-editing) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package bind-key (spacemacs-bootstrap) nil nil elpa t bootstrap nil t nil] [eieio-class-tag--cfgl-package bind-map (spacemacs-bootstrap) nil nil elpa t bootstrap nil t nil] [eieio-class-tag--cfgl-package bookmark (spacemacs-base) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package bracketed-paste (spacemacs-editing) nil nil elpa (version<= emacs-version "25.0.92") nil nil nil nil] [eieio-class-tag--cfgl-package cc-mode (c-c++) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package centered-buffer-mode (spacemacs-base) nil nil local t nil nil nil nil] [eieio-class-tag--cfgl-package centered-cursor (spacemacs-ui) nil nil local t nil nil nil nil] [eieio-class-tag--cfgl-package clang-format (c-c++) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package clean-aindent-mode (spacemacs-editing) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package cmake-mode (c-c++) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package cmm-mode (haskell) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package color-identifiers-mode (colors) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package column-enforce-mode (spacemacs-editing-visual) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package comint (shell) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package company (auto-completion) (shell) (c-c++ yaml lua ocaml latex haskell idris org markdown emacs-lisp) elpa t nil nil nil nil] [eieio-class-tag--cfgl-package company-auctex (latex) nil nil elpa (configuration-layer/package-usedp (quote company)) nil nil nil nil] [eieio-class-tag--cfgl-package company-c-headers (c-c++) nil nil elpa (configuration-layer/package-usedp (quote company)) nil nil nil nil] [eieio-class-tag--cfgl-package company-cabal (haskell) nil nil elpa (configuration-layer/package-usedp (quote company)) nil nil nil nil] [eieio-class-tag--cfgl-package company-coq (proof-general) nil nil elpa (configuration-layer/package-usedp (quote company)) nil nil nil nil] [eieio-class-tag--cfgl-package company-emoji nil nil (org markdown) elpa t nil nil nil nil] [eieio-class-tag--cfgl-package company-ghc (haskell) nil nil elpa t nil nil nil t] [eieio-class-tag--cfgl-package company-ghci (haskell) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package company-quickhelp (auto-completion) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package company-statistics (auto-completion) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package company-ycmd nil nil (c-c++) elpa t nil nil nil nil] [eieio-class-tag--cfgl-package counsel (ivy) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package counsel-projectile (ivy) nil nil elpa (configuration-layer/package-usedp (quote projectile)) nil nil nil nil] [eieio-class-tag--cfgl-package default-helm-config (spacemacs-completion) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package default-ivy-config (spacemacs-completion) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package default-org-config (spacemacs-org) nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package define-word (spacemacs-language) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package desktop (spacemacs-ui) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package diff-hl (version-control) nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package diff-mode (version-control) nil nil elpa t nil nil nil nil] ...))
  (if no-install nil (if (eq (quote all) dotspacemacs-download-packages) (configuration-layer//install-packages (configuration-layer//get-distant-packages (configuration-layer/get-all-packages) nil)) (configuration-layer//install-packages (configuration-layer/filter-objects configuration-layer--used-distant-packages (function (lambda (x) (not (eieio-oref x ...))))))) (configuration-layer//configure-packages configuration-layer--packages) (configuration-layer//load-layers-files configuration-layer--layers (quote ("keybindings.el"))) (if (and (eq (quote used) dotspacemacs-download-packages) (not configuration-layer-distribution) (not configuration-layer-no-layer)) (progn (configuration-layer/delete-orphan-packages configuration-layer--packages))))
  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 %s or above.") emacs-version spacemacs-emacs-min-version) (load-file (concat (file-name-directory load-file-name) "core/core-load-paths.el")) (require (quote core-spacemacs)) (spacemacs/init) (spacemacs/maybe-install-dotfile) (configuration-layer/sync) (spacemacs-buffer/display-info-box) (spacemacs/setup-startup-hook) (require (quote server)) (if (server-running-p) nil (server-start)))
  eval-buffer(#<buffer  *load*> nil "/Users/jeremybi/.emacs.d/init.el" nil t)  ; Reading at buffer position 1194
  load-with-code-conversion("/Users/jeremybi/.emacs.d/init.el" "/Users/jeremybi/.emacs.d/init.el" t t)
  load("/Users/jeremybi/.emacs.d/init" t t)
  #[0 "\205\266    \306=\203\307\310Q\202?   \311=\204\307\312Q\202?\313\307\314\315#\203*\316\202?\313\307\314\317#\203>\320\321\322!D\nB\323\202?\316\324\325\324\211#\210\324=\203e\326\327\330\307\331Q!\"\325\324\211#\210\324=\203d\210\203\247\332!\333\232\203\247\334!\211\335P\336!\203\201\211\202\214\336!\203\213\202\214\314\262\203\245\337\"\203\243\340\341#\210\342\343!\210\266\f?\205\264\314\325\344\324\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 format-message "`_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]()
  command-line()
  normal-top-level()
BigBeautifulBro commented 8 years ago

I am receiving a similar error to bixuanzju with the following message in the warning buffer after start-up:

Warning (initialization): An error occurred while loading `c:/home/.emacs.d/init.el':

File error: Cannot open load file, no such file or directory, f

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 start-up, helm does not work for me and the spacemacs initial loading screen does not properly load.

The offending commit for me is c98f86217479070cf8c68e4a3b1ddd7faad4f9be as well.

I suspect the cause for this issue is similar to the issues discussed here where requiring the f package is causing issues on start-up: https://github.com/syl20bnr/spacemacs/pull/2046 https://github.com/syl20bnr/spacemacs/issues/1980

bixuanzju commented 8 years ago

I did grep and found core-documentation.el also requires f, and this file is NOT used anywhere.

cc @syl20bnr

robbyoconnor commented 8 years ago

I'm just curious why it's not causing an issue for me... that's all...

d12frosted commented 8 years ago

@bixuanzju Thank you for reporting this issue!

To be honest, I didn't try to reproduce it. But I think it might be the problem due to the fact that evil-unimpaired doesn't set the list of required packages. If f is not used in packages that are loaded before evil-unimpaired, then Spacemacs will not install and load f in evil-unimpaired.

So... Could you please check if adding package requires section after version section fixes your issue, like in following snippet?

;; Version: 0.1
;; Package-Requires: ((f "0.16.0"))

cc @BigBeautifulBro

P. S. I might be wrong, so just shooting in the air :-P

Update I can reproduce it. And proposed solution doesn't work.

d12frosted commented 8 years ago

I wonder why it doesn't respect the list of required packages.

In case you need a quick workaround, redefine spacemacs-evil/init-evil-unimpaired as follows

(defun spacemacs-evil/init-evil-unimpaired ()
  ;; No laziness here, unimpaired bindings should be available right away.
  (use-package f
    :ensure t)
  (use-package evil-unimpaired
    :after f))

It's dirty, but at least works :/

xificurC commented 8 years ago

The proposed dirty workaround starts emacs for me, albeit in a strange way where f seems to get compiled and deleted afterwards as an orphan package.

bmag commented 8 years ago

@d12frosted regarding this suggestion:

;; Version: 0.1
;; Package-Requires: ((f "0.16.0"))

This is the right way to go, the Package-Requires line is how packages are supposed to list their dependencies for the ELPA package builder to pick up. However, because evil-unimpaired is a local package, Spacemacs doesn't actually build it into an ELPA package. In other words, Spacemacs doesn't honor these lines.

I think the proper way to fix the bug is for Spacemacs to recognize local package dependencies from the Package-Requires line and install them when needed. Possibly we can make <package>-pkg.el and <package>-autoloads.el files in the process, as is done for regular ELPA packages. I think we need @syl20bnr's input on this issue.

d12frosted commented 8 years ago

In other words, Spacemacs doesn't honor these lines.

Yeah, looks like it. And it would be nice to make it respect list of required packages by local package.

BTW, I thought that Quelpa properly installs local packages. For example in it's documentation there is mention about file:// url.

Do I understand it right that Spacemacs just modifies load-path for local packages?

bmag commented 8 years ago

BTW, I thought that Quelpa properly installs local packages.

That's correct. Quelpa builds ELPA packages locally and then installs them to ~/.emacs.d/elpa. For regular MELPA and GELPA (Gnu ELPA) packages Emacs just downloads pre-built packages and installs them to the same directory.

Do I understand it right that Spacemacs just modifies load-path for local packages?

Yes, according to the source of configuration-layer//configure-packages-2 (I'm currently on revision 237d114).

syl20bnr commented 8 years ago

My mistake I thought the PR only moved evil-unimpaired to a local package as is. Let's remove the dependency on f then.

syl20bnr commented 8 years ago

On the topic of Elpa headers, they are not respected for local packages which are just added to the load-path without being compiled or properly auto loaded or installed with package.el (which takes care of the dependencies).

d12frosted commented 8 years ago

@syl20bnr what do you think about installing local packages for real? It would mitigate such problems and will be consistent with overall behaviour of packages.

deb0ch commented 8 years ago

It would also improve startup time

madand commented 8 years ago

Hi all, I am the author of the offending commit. Sorry for braking things, the issue somehow doesnt affect me. Probably I use some package from MELPA that installed f as a dependency.

FYI requiring f was a fix for #6437. Moreover I also scanned the core for (require 'f) and indeed found it in core-documentation.el. So I concluded that f is kind of a core lib provided by Spacemacs.

:+1: for adding support for ;; Package-Requires: for local packages or maybe making Spacemacs build them with quelpa.

agzam commented 8 years ago

@bmag suggested adding evil-unimpared to excluded packages list as a temporary workaround - it worked for me

Fourchaux commented 8 years ago

Same as @agzam , but only with the exact package name : evil-unimpaired :)

cies commented 8 years ago

I run into the same problem, when I switched to the develop branch today.

I tried to add the lines @d12frosted suggested to my .spacemacs but that did not do the trick. To be honest, I don't know why I added them to my .spacemacs :) It just seemed the most reasonable thing to do.

madand commented 8 years ago

@cies the best solution at the moment is to add evil-unimpaired to dotspacemacs-excluded-packages in your .spacemacs.

d12frosted commented 8 years ago

@cies yeah, my solution is not ideal and not for .spacemacs file. Actually, I've updated issue description and added temporary workaround at the top, so everyone sees it without the need to dig into the problem.

@bixuanzju sorry, I've updated it without your approval, but this is critical matter. And once again, thanks for report!

bixuanzju commented 8 years ago

@d12frosted no problem, go ahead :)

robbyoconnor commented 8 years ago

@d12frosted, why increase the size of the repo? I'd rather not have a lot of local packages. I'm still curious why I'm unaffected by this...

JAremko commented 8 years ago

@robbyoconnor try clearing your cache or reinstalling Spacemacs.

robbyoconnor commented 8 years ago

Hmm that might be...I'm leaving things as-is!

madand commented 8 years ago

@robbyoconnor Probably you use some package from MELPA that installed f as a dependency.

nixmaniack commented 8 years ago

I just cloned spacemacs on a new system and faced this issue. Indeed reverting the commit pointed by bixuanzju fixes it. Also excluding evil-unimpaired is a workaround for now.

xificurC commented 8 years ago

Is there any ETA on releasing an at least temporary fix? So that new users of the develop branch don't get the impression it's broken all the time :)

adamkruszewski commented 8 years ago

A better workaround is to add "f" package to dotspacemacs-additional-packages in your spacemacs.d/init.el file.

(defun dotspacemacs/layers ()
 (setq-default
;; ...
 dotspacemacs-additional-packages  '( f )
;; ...
adamkruszewski commented 8 years ago

It seems my workaround isn't better. It works the moment Spacemacs needs to download 'f' package, but it doesn't work after subsequent restarts. Deleting 'f' package directory from elpa/ directory forces it to download once again and it works for that one run.

syl20bnr commented 8 years ago

That's strange that adding f to additional package works only for the first run... Really strange :-(

adamkruszewski commented 8 years ago

yeah, strange. But the behaviour is consistent (maybe that's a separate issue that just manifested itself in that particular way?). It works only when downloading, and on subsequent runs I get the same can't load 'f' error message.

d12frosted commented 8 years ago

Hi everyone,

This issue is fixed in develop branch, so go ahead and update. Sorry it took so long 😸 💃

JAremko commented 8 years ago

@d12frosted https://www.youtube.com/watch?v=_J6-3l3hCm0 Thanks

TheBB commented 8 years ago

I'm closing since this issue isn't on master in the first place.

d12frosted commented 8 years ago

@TheBB oh, right. Good catch.

bixuanzju commented 8 years ago

@d12frosted Every time I press Update Package, evil-unimpaired always appears to be updated...

d12frosted commented 8 years ago

@bixuanzju thanks for letting me know. I never used this button before. But I can confirm - evil-unimpaired always has update 😸

bixuanzju commented 8 years ago

@d12frosted then how do you update packages?

d12frosted commented 8 years ago

@bixuanzju well, now that I tried that configuration-layer/update-packages function I think I'll use it in future. But I usually update my packages by using package-list-packages or paradox.

P. S. that problem with update still happens. Unfortunately no ETA.

d12frosted commented 8 years ago

@bixuanzju I've opened new issue #6610 to track that problem. Thanks for reporting it!

xx299x commented 5 years ago

Yes, this problem appears again in version 26.3