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.64k stars 4.89k forks source link

Go layer installation blocked due to oracle.el not being able to locate go-mode #5610

Closed ghost closed 8 years ago

ghost commented 8 years ago

Description

Subject to correct installation of go, with GOPATH and GOROOT correctly set, trying to install/enable the go layer fails during the installation of the oracle.el package.

(getenv "GOPATH")
"/Users/uri/go"

Reproduction guide

Observed behaviour: Layer fails to install with the following message:

(file-error "Cannot open load file" "No such file or directory" "go-mode")

Full trace:

Debugger entered--Lisp error: (file-error "Cannot open load file" "No such file or directory" "go-mode")
  require(go-mode)
  eval-buffer(#<buffer  *load*> nil "/Users/uri/go/src/golang.org/x/tools/cmd/oracle/oracle.el" nil t)  ; Reading at buffer position 648
  load-with-code-conversion("/Users/uri/go/src/golang.org/x/tools/cmd/oracle/oracle.el" "/Users/uri/go/src/golang.org/x/tools/cmd/oracle/oracle.el" nil nil)
  load("/Users/uri/go/src/golang.org/x/tools/cmd/oracle/oracle.el" nil nil t)
  load-file("/Users/uri/go/src/golang.org/x/tools/cmd/oracle/oracle.el")
  (progn (load-file file) (setq found t))
  (if (file-exists-p file) (progn (load-file file) (setq found t)))
  (while (consp --cl-var--) (setq p (car --cl-var--)) (setq file (concat p name)) (if (file-exists-p file) (progn (load-file file) (setq found t))) (setq --cl-var-- (cdr --cl-var--)))
  (let* ((--cl-var-- paths) (p nil) (file nil)) (while (consp --cl-var--) (setq p (car --cl-var--)) (setq file (concat p name)) (if (file-exists-p file) (progn (load-file file) (setq found t))) (setq --cl-var-- (cdr --cl-var--))) found)
  (let* ((sep (if (spacemacs/system-is-mswindows) ";" ":")) (paths (split-string gopath sep)) found) (let* ((--cl-var-- paths) (p nil) (file nil)) (while (consp --cl-var--) (setq p (car --cl-var--)) (setq file (concat p name)) (if (file-exists-p file) (progn (load-file file) (setq found t))) (setq --cl-var-- (cdr --cl-var--))) found))
  load-gopath-file("/Users/uri/go" "/src/golang.org/x/tools/cmd/oracle/oracle.el")
  (if (load-gopath-file go-path "/src/golang.org/x/tools/cmd/oracle/oracle.el") (progn (spacemacs/declare-prefix-for-mode (quote go-mode) "mr" "rename") (spacemacs/set-leader-keys-for-major-mode (quote go-mode) "ro" (quote go-oracle-set-scope) "r<" (quote go-oracle-callers) "r>" (quote go-oracle-callees) "rc" (quote go-oracle-peers) "rd" (quote go-oracle-definition) "rf" (quote go-oracle-freevars) "rg" (quote go-oracle-callgraph) "ri" (quote go-oracle-implements) "rp" (quote go-oracle-pointsto) "rr" (quote go-oracle-referrers) "rs" (quote go-oracle-callstack) "rt" (quote go-oracle-describe))))
  (if (not go-path) (spacemacs-buffer/warning "GOPATH variable not found, go-oracle configuration skipped.") (if (load-gopath-file go-path "/src/golang.org/x/tools/cmd/oracle/oracle.el") (progn (spacemacs/declare-prefix-for-mode (quote go-mode) "mr" "rename") (spacemacs/set-leader-keys-for-major-mode (quote go-mode) "ro" (quote go-oracle-set-scope) "r<" (quote go-oracle-callers) "r>" (quote go-oracle-callees) "rc" (quote go-oracle-peers) "rd" (quote go-oracle-definition) "rf" (quote go-oracle-freevars) "rg" (quote go-oracle-callgraph) "ri" (quote go-oracle-implements) "rp" (quote go-oracle-pointsto) "rr" (quote go-oracle-referrers) "rs" (quote go-oracle-callstack) "rt" (quote go-oracle-describe)))))
  (let ((go-path (getenv "GOPATH"))) (if (not go-path) (spacemacs-buffer/warning "GOPATH variable not found, go-oracle configuration skipped.") (if (load-gopath-file go-path "/src/golang.org/x/tools/cmd/oracle/oracle.el") (progn (spacemacs/declare-prefix-for-mode (quote go-mode) "mr" "rename") (spacemacs/set-leader-keys-for-major-mode (quote go-mode) "ro" (quote go-oracle-set-scope) "r<" (quote go-oracle-callers) "r>" (quote go-oracle-callees) "rc" (quote go-oracle-peers) "rd" (quote go-oracle-definition) "rf" (quote go-oracle-freevars) "rg" (quote go-oracle-callgraph) "ri" (quote go-oracle-implements) "rp" (quote go-oracle-pointsto) "rr" (quote go-oracle-referrers) "rs" (quote go-oracle-callstack) "rt" (quote go-oracle-describe))))))
  go/init-go-oracle()
  funcall(go/init-go-oracle)
  (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 ...)) ((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 go-oracle go nil nil local t nil t nil nil])
  (cond ((eq (quote dotfile) (eieio-oref pkg (quote :owner))) (spacemacs-buffer/message (format "%S is configured in the dotfile." pkg-name))) (t (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))) ((not (cfgl-package-enabledp pkg)) (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)) (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)))))) (if (memq (eieio-oref pkg (quote :location)) (quote (local site built-in))) nil (configuration-layer//activate-package pkg-name)) (cond ((eq (quote dotfile) (eieio-oref pkg (quote :owner))) (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 ((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))) ((not (cfgl-package-enabledp pkg)) (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 ...) (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 ...))))) (if (memq (eieio-oref pkg (quote :location)) (quote (local site built-in))) nil (configuration-layer//activate-package pkg-name)) (cond ((eq (quote dotfile) (eieio-oref pkg (quote :owner))) (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 ((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))) ((not (cfgl-package-enabledp pkg)) (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) (eieio-oref pkg ...)) (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 ((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))) ((not (cfgl-package-enabledp pkg)) (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 ac-ispell auto-completion nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package ace-jump-helm-line spacemacs-helm 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-ui 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 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 nil 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-base nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package bookmark spacemacs-base nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package bracketed-paste spacemacs-editing nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package buffer-move spacemacs-ui nil nil elpa 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 clean-aindent-mode spacemacs-editing 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) (org markdown go emacs-lisp) elpa t 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-go go nil nil elpa t nil t 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 define-word spacemacs-language nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package deft deft 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 diminish spacemacs-base nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package doc-view spacemacs-ui nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package ediff spacemacs-base nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package eldoc spacemacs-base nil (emacs-lisp) elpa t nil nil nil nil] [eieio-class-tag--cfgl-package electric-indent-mode spacemacs-base nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package elisp-slime-nav emacs-lisp nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package emacs-lisp emacs-lisp nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package emoji-cheat-sheet-plus nil nil (org markdown) elpa t nil nil nil nil] [eieio-class-tag--cfgl-package esh-help shell nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package eshell shell nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package eshell-prompt-extras shell nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package eshell-z shell nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package eval-sexp-fu spacemacs-editing nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package evil spacemacs-base nil (emacs-lisp) elpa t nil nil nil nil] [eieio-class-tag--cfgl-package evil-anzu spacemacs-evil nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package evil-args spacemacs-evil nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package evil-ediff spacemacs-base nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package evil-escape spacemacs-base nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package evil-exchange spacemacs-evil nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package evil-iedit-state spacemacs-evil nil nil elpa t nil nil nil nil] ...))
  configuration-layer//configure-packages(([eieio-class-tag--cfgl-package ac-ispell auto-completion nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package ace-jump-helm-line spacemacs-helm 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-ui 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 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 nil 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-base nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package bind-map spacemacs-base nil nil elpa t pre nil nil nil] [eieio-class-tag--cfgl-package bookmark spacemacs-base nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package bracketed-paste spacemacs-editing nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package buffer-move spacemacs-ui nil nil elpa 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 clean-aindent-mode spacemacs-editing 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) (org markdown go emacs-lisp) elpa t 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-go go nil nil elpa t nil t 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 define-word spacemacs-language nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package deft deft 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 diminish spacemacs-base nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package doc-view spacemacs-ui nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package ediff spacemacs-base nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package eldoc spacemacs-base nil (emacs-lisp) elpa t nil nil nil nil] [eieio-class-tag--cfgl-package electric-indent-mode spacemacs-base nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package elisp-slime-nav emacs-lisp nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package emacs-lisp emacs-lisp nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package emoji-cheat-sheet-plus nil nil (org markdown) elpa t nil nil nil nil] [eieio-class-tag--cfgl-package esh-help shell nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package eshell shell nil nil built-in t nil nil nil nil] [eieio-class-tag--cfgl-package eshell-prompt-extras shell nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package eshell-z shell nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package eval-sexp-fu spacemacs-editing nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package evil spacemacs-base nil (emacs-lisp) elpa t nil nil nil nil] [eieio-class-tag--cfgl-package evil-anzu spacemacs-evil nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package evil-args spacemacs-evil nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package evil-ediff spacemacs-base nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package evil-escape spacemacs-base nil nil elpa t nil nil nil nil] [eieio-class-tag--cfgl-package evil-evilified-state spacemacs-base nil nil local t pre nil t nil] ...))
  (if no-install nil (configuration-layer//install-packages (configuration-layer/filter-objects configuration-layer--used-distant-packages (function (lambda (x) (not (eieio-oref x (quote :lazy-install))))))) (configuration-layer//configure-packages configuration-layer--packages) (if dotspacemacs-delete-orphan-packages (progn (configuration-layer/delete-orphan-packages configuration-layer--packages))))
  configuration-layer/sync()
  (progn (load-file buffer-file-name) (progn (if "Calling dotfile init..." (progn (spacemacs-buffer/message "Calling dotfile init..."))) (if (fboundp (quote dotspacemacs/init)) (progn (condition-case err (dotspacemacs/init) ((debug error) (configuration-layer//increment-error-count) (spacemacs-buffer/append (format "Error in %s: %s\n" ... ...) t)))))) (progn (if "Calling dotfile user init..." (progn (spacemacs-buffer/message "Calling dotfile user init..."))) (if (fboundp (quote dotspacemacs/user-init)) (progn (condition-case err (dotspacemacs/user-init) ((debug error) (configuration-layer//increment-error-count) (spacemacs-buffer/append (format "Error in %s: %s\n" ... ...) t)))))) (setq dotspacemacs-editing-style (dotspacemacs//read-editing-style-config dotspacemacs-editing-style)) (configuration-layer/sync) (if (member arg (quote ((4) (16)))) (message (concat "Done (`dotspacemacs/user-config' " "function has been skipped).")) (progn (if "Calling dotfile user config..." (progn (spacemacs-buffer/message "Calling dotfile user config..."))) (if (fboundp (quote dotspacemacs/user-config)) (progn (condition-case err (dotspacemacs/user-config) ((debug error) (configuration-layer//increment-error-count) (spacemacs-buffer/append ... t)))))) (message "Done.")) (if (configuration-layer/package-usedp (quote spaceline)) (progn (spacemacs//restore-powerline (current-buffer)))))
  (if tests-ok (progn (load-file buffer-file-name) (progn (if "Calling dotfile init..." (progn (spacemacs-buffer/message "Calling dotfile init..."))) (if (fboundp (quote dotspacemacs/init)) (progn (condition-case err (dotspacemacs/init) ((debug error) (configuration-layer//increment-error-count) (spacemacs-buffer/append ... t)))))) (progn (if "Calling dotfile user init..." (progn (spacemacs-buffer/message "Calling dotfile user init..."))) (if (fboundp (quote dotspacemacs/user-init)) (progn (condition-case err (dotspacemacs/user-init) ((debug error) (configuration-layer//increment-error-count) (spacemacs-buffer/append ... t)))))) (setq dotspacemacs-editing-style (dotspacemacs//read-editing-style-config dotspacemacs-editing-style)) (configuration-layer/sync) (if (member arg (quote ((4) (16)))) (message (concat "Done (`dotspacemacs/user-config' " "function has been skipped).")) (progn (if "Calling dotfile user config..." (progn (spacemacs-buffer/message "Calling dotfile user config..."))) (if (fboundp (quote dotspacemacs/user-config)) (progn (condition-case err (dotspacemacs/user-config) (... ... ...))))) (message "Done.")) (if (configuration-layer/package-usedp (quote spaceline)) (progn (spacemacs//restore-powerline (current-buffer))))) (switch-to-buffer-other-window dotspacemacs-test-results-buffer) (spacemacs-buffer/warning "Some tests failed, check `%s' buffer" dotspacemacs-test-results-buffer))
  (let ((tests-ok (or (equal arg (quote (16))) (dotspacemacs/test-dotfile t)))) (if tests-ok (progn (load-file buffer-file-name) (progn (if "Calling dotfile init..." (progn (spacemacs-buffer/message "Calling dotfile init..."))) (if (fboundp (quote dotspacemacs/init)) (progn (condition-case err (dotspacemacs/init) (... ... ...))))) (progn (if "Calling dotfile user init..." (progn (spacemacs-buffer/message "Calling dotfile user init..."))) (if (fboundp (quote dotspacemacs/user-init)) (progn (condition-case err (dotspacemacs/user-init) (... ... ...))))) (setq dotspacemacs-editing-style (dotspacemacs//read-editing-style-config dotspacemacs-editing-style)) (configuration-layer/sync) (if (member arg (quote ((4) (16)))) (message (concat "Done (`dotspacemacs/user-config' " "function has been skipped).")) (progn (if "Calling dotfile user config..." (progn (spacemacs-buffer/message "Calling dotfile user config..."))) (if (fboundp (quote dotspacemacs/user-config)) (progn (condition-case err ... ...)))) (message "Done.")) (if (configuration-layer/package-usedp (quote spaceline)) (progn (spacemacs//restore-powerline (current-buffer))))) (switch-to-buffer-other-window dotspacemacs-test-results-buffer) (spacemacs-buffer/warning "Some tests failed, check `%s' buffer" dotspacemacs-test-results-buffer)))
  (let ((dotspacemacs-loading-progress-bar nil)) (setq spacemacs-loading-string "") (save-buffer) (let ((tests-ok (or (equal arg (quote (16))) (dotspacemacs/test-dotfile t)))) (if tests-ok (progn (load-file buffer-file-name) (progn (if "Calling dotfile init..." (progn (spacemacs-buffer/message "Calling dotfile init..."))) (if (fboundp (quote dotspacemacs/init)) (progn (condition-case err ... ...)))) (progn (if "Calling dotfile user init..." (progn (spacemacs-buffer/message "Calling dotfile user init..."))) (if (fboundp (quote dotspacemacs/user-init)) (progn (condition-case err ... ...)))) (setq dotspacemacs-editing-style (dotspacemacs//read-editing-style-config dotspacemacs-editing-style)) (configuration-layer/sync) (if (member arg (quote (... ...))) (message (concat "Done (`dotspacemacs/user-config' " "function has been skipped).")) (progn (if "Calling dotfile user config..." (progn ...)) (if (fboundp ...) (progn ...))) (message "Done.")) (if (configuration-layer/package-usedp (quote spaceline)) (progn (spacemacs//restore-powerline (current-buffer))))) (switch-to-buffer-other-window dotspacemacs-test-results-buffer) (spacemacs-buffer/warning "Some tests failed, check `%s' buffer" dotspacemacs-test-results-buffer))))
  (save-current-buffer (set-buffer (find-file-noselect dotspacemacs-filepath)) (let ((dotspacemacs-loading-progress-bar nil)) (setq spacemacs-loading-string "") (save-buffer) (let ((tests-ok (or (equal arg (quote ...)) (dotspacemacs/test-dotfile t)))) (if tests-ok (progn (load-file buffer-file-name) (progn (if "Calling dotfile init..." (progn ...)) (if (fboundp ...) (progn ...))) (progn (if "Calling dotfile user init..." (progn ...)) (if (fboundp ...) (progn ...))) (setq dotspacemacs-editing-style (dotspacemacs//read-editing-style-config dotspacemacs-editing-style)) (configuration-layer/sync) (if (member arg (quote ...)) (message (concat "Done (`dotspacemacs/user-config' " "function has been skipped).")) (progn (if "Calling dotfile user config..." ...) (if ... ...)) (message "Done.")) (if (configuration-layer/package-usedp (quote spaceline)) (progn (spacemacs//restore-powerline ...)))) (switch-to-buffer-other-window dotspacemacs-test-results-buffer) (spacemacs-buffer/warning "Some tests failed, check `%s' buffer" dotspacemacs-test-results-buffer)))))
  (progn (save-current-buffer (set-buffer (find-file-noselect dotspacemacs-filepath)) (let ((dotspacemacs-loading-progress-bar nil)) (setq spacemacs-loading-string "") (save-buffer) (let ((tests-ok (or (equal arg ...) (dotspacemacs/test-dotfile t)))) (if tests-ok (progn (load-file buffer-file-name) (progn (if "Calling dotfile init..." ...) (if ... ...)) (progn (if "Calling dotfile user init..." ...) (if ... ...)) (setq dotspacemacs-editing-style (dotspacemacs//read-editing-style-config dotspacemacs-editing-style)) (configuration-layer/sync) (if (member arg ...) (message ...) (progn ... ...) (message "Done.")) (if (configuration-layer/package-usedp ...) (progn ...))) (switch-to-buffer-other-window dotspacemacs-test-results-buffer) (spacemacs-buffer/warning "Some tests failed, check `%s' buffer" dotspacemacs-test-results-buffer))))))
  (if (file-exists-p dotspacemacs-filepath) (progn (save-current-buffer (set-buffer (find-file-noselect dotspacemacs-filepath)) (let ((dotspacemacs-loading-progress-bar nil)) (setq spacemacs-loading-string "") (save-buffer) (let ((tests-ok (or ... ...))) (if tests-ok (progn (load-file buffer-file-name) (progn ... ...) (progn ... ...) (setq dotspacemacs-editing-style ...) (configuration-layer/sync) (if ... ... ... ...) (if ... ...)) (switch-to-buffer-other-window dotspacemacs-test-results-buffer) (spacemacs-buffer/warning "Some tests failed, check `%s' buffer" dotspacemacs-test-results-buffer)))))))
  dotspacemacs/sync-configuration-layers(nil)
  funcall-interactively(dotspacemacs/sync-configuration-layers nil)
  call-interactively(dotspacemacs/sync-configuration-layers nil nil)
  command-execute(dotspacemacs/sync-configuration-layers)

Expected behaviour: The go layer should be installed.

System Info

(spacemacs-helm auto-completion better-defaults deft emacs-lisp
                (geolocation :variables geolocation-enable-automatic-theme-changer t geolocation-enable-location-service t geolocation-enable-weather-forecast nil)
                git go markdown org osx
                (shell :variables shell-default-height 30 shell-default-position 'bottom)
                spell-checking syntax-checking version-control)

Backtrace

JAremko commented 8 years ago

Hm. I think I saw this error couple of times while debugging #5608 :confused:
Try setting dotspacemacs-enable-lazy-installation nil in .spacemacs file.

ghost commented 8 years ago

Yep. That worked. It's only needed to be changed during installtion/upgrade of this layer, I assume?

JAremko commented 8 years ago

@usharf It's not a solution, more like workaround. Spacemacs experiences ghostly bug. I think you shouldn't close this issue just yet.

If there's something strange in your neighborhood Who ya gonna call? @syl20bnr :wink:

ghost commented 8 years ago

Sure, leaving it open for @syl20bnr to have a look. 10x!

syl20bnr commented 8 years ago

Thank you for the report. Should be fixed in last commit.

I have the feeling that I got the lazy installation right this time :-) Not easy to plug in this feature since it is an afterthough.

JAremko commented 8 years ago

@syl20bnr with dotspacemacs-enable-lazy-installation 'unused all seems to work properly :heart:
Not sure about t ('all) I think it once opened another Emacs frame when I agreed to install a layer. But I can't reproduce.

JAremko commented 8 years ago

@syl20bnr Also I think that it might be a good idea to treat t as 'unused to help in transition because some people still have t in their .spacemacs files.

JAremko commented 8 years ago

@usharf I think now you can close it