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

Emacs fails to start with error "Symbol's value as variable is void: \213" #11585

Closed or closed 1 year ago

or commented 5 years ago

Description :octocat:

Spacemacs fails starting with:

Warning (initialization): An error occurred while loading ‘<path>/.emacs.d/init.el’:

Symbol's value as variable is void: \213

The steps in https://github.com/syl20bnr/spacemacs/issues/6975 didn't resolve the issue for me. After deleting elpa and restarting the error already happens before any attempts to reinstall the packages.

I've also deleted all *.elc files in the Emacs working copy, rebuilt it entirely, the error persists.

If I comment out the line (setq load-prefer-newer t) introduced in https://github.com/syl20bnr/spacemacs/commit/5d4b80bbad45e8124b68da94ba3fd72a4c910771, then Emacs starts properly.

The same happens when I do a fresh install of spacemacs with a new .spacemacs.

Reproduction guide :beetle:

Observed behaviour: :eyes: :broken_heart: Startup fails with the error above.

Expected behaviour: :heart: :smile: Emacs starts successfully.

System Info :computer:

uberjay commented 5 years ago

I'm seeing this as well; develop branch has been broken for me since the introduction of load-prefer-newer (5d4b80bbad45e8124b68da94ba3fd72a4c910771).

Emacs 27 build from master branch in macOS; emacs-version reported is:

GNU Emacs 27.0.50 (build 6, x86_64-apple-darwin18.0.0, NS appkit-1671.00 Version 10.14 (Build 18A391)) of 2018-10-23

sdwolfz commented 5 years ago

Try starting emacs with --debug-init and post a stacktrace.

or commented 5 years ago

I tried that, but there was no stacktrace. It's the same output. I ran it like this:

/Applications/Emacs.app/Contents/MacOS/Emacs --debug-init
quicknir commented 5 years ago

Same here. I'm on Ubuntu, helm completion, emacs 26. Any resolution?

igorojas commented 5 years ago

Same error here.

OS: Linux (Ubuntu 16.04) Emacs: 26.1, release version (built locally) Spacemacs: 0.300.0 Spacemacs branch: develop (commit f8d40a4) Graphic display: t Distribution: spacemacs Editing style: emacs Completion: auto-completion Layers: c-c++ (backend lsp-cquery, cquery master commit 70c755b )

This is my stack trace:

 Debugger entered--Lisp error: (void-variable \213)
  eval-buffer(#<buffer  *load*-96729> nil "/home/igor/local/share/emacs/26.1/lisp/progmodes/cc-vars.el.gz" nil t)  ; Reading at buffer position 3
  load-with-code-conversion("/home/igor/local/share/emacs/26.1/lisp/progmodes/cc-vars.el.gz" "/home/igor/local/share/emacs/26.1/lisp/progmodes/cc-vars.el.gz" nil t)
  require(cc-vars)
  byte-code("\300\301!\204\015\0\302\301\303\304B\"\210\305\306!\210\305\307!\210\305\310!\210\305\311!\210\305\312!\210\305\313!\210\305\314!\210\305\315!\210\305\316!\210\305\317!\207" [fboundp declare-function defalias macro #f(compiled-function (&rest _r) #<bytecode 0x1ab5171>) require cc-defs cc-vars cc-engine cc-styles cc-cmds cc-align cc-menus cc-guess easymenu cc-fonts] 4)
  require(cc-mode)
  eval-buffer(#<buffer  *load*-598483> nil "/home/igor/.emacs.d/elpa/26.1/develop/cquery-20190118.542/cquery-common.el" nil t)  ; Reading at buffer position 1169
  load-with-code-conversion("/home/igor/.emacs.d/elpa/26.1/develop/cquery-20190118.542/cquery-common.el" "/home/igor/.emacs.d/elpa/26.1/develop/cquery-20190118.542/cquery-common.el" nil t)
  require(cquery-common)
  eval-buffer(#<buffer  *load*-400597> nil "/home/igor/.emacs.d/elpa/26.1/develop/cquery-20190118.542/cquery.el" nil t)  ; Reading at buffer position 1536
  load-with-code-conversion("/home/igor/.emacs.d/elpa/26.1/develop/cquery-20190118.542/cquery.el" "/home/igor/.emacs.d/elpa/26.1/develop/cquery-20190118.542/cquery.el" t t)
  require(cquery nil t)
  (not (require 'cquery nil t))
  (if (not (require 'cquery nil t)) (display-warning 'use-package (format "Cannot load %s" 'cquery) :error) (let ((now (current-time))) (message "%s..." "Configuring package cquery") (prog1 (condition-case-unless-debug err (progn (when (run-hook-with-args-until-failure 'use-package--cquery--pre-config-hook) (spacemacs//c-c++-lsp-config) (run-hooks 'use-package--cquery--post-config-hook)) t) (error (funcall use-package--warning33 :config err))) (let ((elapsed (float-time (time-subtract (current-time) now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Configuring package cquery" elapsed) (message "%s...done" "Configuring package cquery"))))))
  (prog1 (if (not (require 'cquery nil t)) (display-warning 'use-package (format "Cannot load %s" 'cquery) :error) (let ((now (current-time))) (message "%s..." "Configuring package cquery") (prog1 (condition-case-unless-debug err (progn (when (run-hook-with-args-until-failure 'use-package--cquery--pre-config-hook) (spacemacs//c-c++-lsp-config) (run-hooks 'use-package--cquery--post-config-hook)) t) (error (funcall use-package--warning33 :config err))) (let ((elapsed (float-time (time-subtract (current-time) now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Configuring package cquery" elapsed) (message "%s...done" "Configuring package cquery")))))) (let ((elapsed (float-time (time-subtract (current-time) now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Loading package cquery" elapsed) (message "%s...done" "Loading package cquery"))))
  (let ((now (current-time))) (message "%s..." "Loading package cquery") (prog1 (if (not (require 'cquery nil t)) (display-warning 'use-package (format "Cannot load %s" 'cquery) :error) (let ((now (current-time))) (message "%s..." "Configuring package cquery") (prog1 (condition-case-unless-debug err (progn (when (run-hook-with-args-until-failure 'use-package--cquery--pre-config-hook) (spacemacs//c-c++-lsp-config) (run-hooks 'use-package--cquery--post-config-hook)) t) (error (funcall use-package--warning33 :config err))) (let ((elapsed (float-time (time-subtract (current-time) now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Configuring package cquery" elapsed) (message "%s...done" "Configuring package cquery")))))) (let ((elapsed (float-time (time-subtract (current-time) now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Loading package cquery" elapsed) (message "%s...done" "Loading package cquery")))))
  (progn (condition-case-unless-debug err (when (run-hook-with-args-until-failure 'use-package--cquery--pre-init-hook) (run-hooks 'use-package--cquery--post-init-hook)) (error (funcall use-package--warning33 :init err))) (let ((now (current-time))) (message "%s..." "Loading package cquery") (prog1 (if (not (require 'cquery nil t)) (display-warning 'use-package (format "Cannot load %s" 'cquery) :error) (let ((now (current-time))) (message "%s..." "Configuring package cquery") (prog1 (condition-case-unless-debug err (progn (when (run-hook-with-args-until-failure 'use-package--cquery--pre-config-hook) (spacemacs//c-c++-lsp-config) (run-hooks 'use-package--cquery--post-config-hook)) t) (error (funcall use-package--warning33 :config err))) (let ((elapsed (float-time (time-subtract (current-time) now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Configuring package cquery" elapsed) (message "%s...done" "Configuring package cquery")))))) (let ((elapsed (float-time (time-subtract (current-time) now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Loading package cquery" elapsed) (message "%s...done" "Loading package cquery"))))) (add-hook 'c-mode-hook (function (lambda nil (if (memql (function company-lsp) company-backends) (with-no-warnings company-backends) (setq company-backends (cons (function company-lsp) company-backends))) (require 'cquery) (remhash 'clangd lsp-clients) (lsp)))) (add-hook 'c++-mode-hook (function (lambda nil (if (memql (function company-lsp) company-backends) (with-no-warnings company-backends) (setq company-backends (cons (function company-lsp) company-backends))) (require 'cquery) (remhash 'clangd lsp-clients) (lsp)))))
  (condition-case err (progn (condition-case-unless-debug err (when (run-hook-with-args-until-failure 'use-package--cquery--pre-init-hook) (run-hooks 'use-package--cquery--post-init-hook)) (error (funcall use-package--warning33 :init err))) (let ((now (current-time))) (message "%s..." "Loading package cquery") (prog1 (if (not (require 'cquery nil t)) (display-warning 'use-package (format "Cannot load %s" 'cquery) :error) (let ((now (current-time))) (message "%s..." "Configuring package cquery") (prog1 (condition-case-unless-debug err (progn (when (run-hook-with-args-until-failure 'use-package--cquery--pre-config-hook) (spacemacs//c-c++-lsp-config) (run-hooks 'use-package--cquery--post-config-hook)) t) (error (funcall use-package--warning33 :config err))) (let ((elapsed (float-time (time-subtract (current-time) now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Configuring package cquery" elapsed) (message "%s...done" "Configuring package cquery")))))) (let ((elapsed (float-time (time-subtract (current-time) now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Loading package cquery" elapsed) (message "%s...done" "Loading package cquery"))))) (add-hook 'c-mode-hook (function (lambda nil (if (memql (function company-lsp) company-backends) (with-no-warnings company-backends) (setq company-backends (cons (function company-lsp) company-backends))) (require 'cquery) (remhash 'clangd lsp-clients) (lsp)))) (add-hook 'c++-mode-hook (function (lambda nil (if (memql (function company-lsp) company-backends) (with-no-warnings company-backends) (setq company-backends (cons (function company-lsp) company-backends))) (require 'cquery) (remhash 'clangd lsp-clients) (lsp))))) ((debug error) (funcall use-package--warning33 :catch err)))
  (condition-case-unless-debug err (progn (condition-case-unless-debug err (when (run-hook-with-args-until-failure 'use-package--cquery--pre-init-hook) (run-hooks 'use-package--cquery--post-init-hook)) (error (funcall use-package--warning33 :init err))) (let ((now (current-time))) (message "%s..." "Loading package cquery") (prog1 (if (not (require 'cquery nil t)) (display-warning 'use-package (format "Cannot load %s" 'cquery) :error) (let ((now (current-time))) (message "%s..." "Configuring package cquery") (prog1 (condition-case-unless-debug err (progn (when (run-hook-with-args-until-failure 'use-package--cquery--pre-config-hook) (spacemacs//c-c++-lsp-config) (run-hooks 'use-package--cquery--post-config-hook)) t) (error (funcall use-package--warning33 :config err))) (let ((elapsed (float-time (time-subtract (current-time) now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Configuring package cquery" elapsed) (message "%s...done" "Configuring package cquery")))))) (let ((elapsed (float-time (time-subtract (current-time) now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Loading package cquery" elapsed) (message "%s...done" "Loading package cquery"))))) (add-hook 'c-mode-hook (function (lambda nil (if (memql (function company-lsp) company-backends) (with-no-warnings company-backends) (setq company-backends (cons (function company-lsp) company-backends))) (require 'cquery) (remhash 'clangd lsp-clients) (lsp)))) (add-hook 'c++-mode-hook (function (lambda nil (if (memql (function company-lsp) company-backends) (with-no-warnings company-backends) (setq company-backends (cons (function company-lsp) company-backends))) (require 'cquery) (remhash 'clangd lsp-clients) (lsp))))) (error (funcall use-package--warning33 :catch err)))
  (progn (defvar use-package--warning33 (function (lambda (keyword err) (let ((msg (format "%s/%s: %s" 'cquery keyword (error-message-string err)))) (display-warning 'use-package msg :error))))) (condition-case-unless-debug err (progn (condition-case-unless-debug err (when (run-hook-with-args-until-failure 'use-package--cquery--pre-init-hook) (run-hooks 'use-package--cquery--post-init-hook)) (error (funcall use-package--warning33 :init err))) (let ((now (current-time))) (message "%s..." "Loading package cquery") (prog1 (if (not (require 'cquery nil t)) (display-warning 'use-package (format "Cannot load %s" 'cquery) :error) (let ((now (current-time))) (message "%s..." "Configuring package cquery") (prog1 (condition-case-unless-debug err (progn (when (run-hook-with-args-until-failure 'use-package--cquery--pre-config-hook) (spacemacs//c-c++-lsp-config) (run-hooks 'use-package--cquery--post-config-hook)) t) (error (funcall use-package--warning33 :config err))) (let ((elapsed (float-time (time-subtract (current-time) now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Configuring package cquery" elapsed) (message "%s...done" "Configuring package cquery")))))) (let ((elapsed (float-time (time-subtract (current-time) now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Loading package cquery" elapsed) (message "%s...done" "Loading package cquery"))))) (add-hook 'c-mode-hook (function (lambda nil (if (memql (function company-lsp) company-backends) (with-no-warnings company-backends) (setq company-backends (cons (function company-lsp) company-backends))) (require 'cquery) (remhash 'clangd lsp-clients) (lsp)))) (add-hook 'c++-mode-hook (function (lambda nil (if (memql (function company-lsp) company-backends) (with-no-warnings company-backends) (setq company-backends (cons (function company-lsp) company-backends))) (require 'cquery) (remhash 'clangd lsp-clients) (lsp))))) (error (funcall use-package--warning33 :catch err))))
  (if (eq c-c++-backend 'lsp-cquery) (progn (defvar use-package--warning33 (function (lambda (keyword err) (let ((msg (format "%s/%s: %s" 'cquery keyword (error-message-string err)))) (display-warning 'use-package msg :error))))) (condition-case-unless-debug err (progn (condition-case-unless-debug err (when (run-hook-with-args-until-failure 'use-package--cquery--pre-init-hook) (run-hooks 'use-package--cquery--post-init-hook)) (error (funcall use-package--warning33 :init err))) (let ((now (current-time))) (message "%s..." "Loading package cquery") (prog1 (if (not (require 'cquery nil t)) (display-warning 'use-package (format "Cannot load %s" 'cquery) :error) (let ((now (current-time))) (message "%s..." "Configuring package cquery") (prog1 (condition-case-unless-debug err (progn (when (run-hook-with-args-until-failure 'use-package--cquery--pre-config-hook) (spacemacs//c-c++-lsp-config) (run-hooks 'use-package--cquery--post-config-hook)) t) (error (funcall use-package--warning33 :config err))) (let ((elapsed (float-time (time-subtract (current-time) now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Configuring package cquery" elapsed) (message "%s...done" "Configuring package cquery")))))) (let ((elapsed (float-time (time-subtract (current-time) now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Loading package cquery" elapsed) (message "%s...done" "Loading package cquery"))))) (add-hook 'c-mode-hook (function (lambda nil (if (memql (function company-lsp) company-backends) (with-no-warnings company-backends) (setq company-backends (cons (function company-lsp) company-backends))) (require 'cquery) (remhash 'clangd lsp-clients) (lsp)))) (add-hook 'c++-mode-hook (function (lambda nil (if (memql (function company-lsp) company-backends) (with-no-warnings company-backends) (setq company-backends (cons (function company-lsp) company-backends))) (require 'cquery) (remhash 'clangd lsp-clients) (lsp))))) (error (funcall use-package--warning33 :catch err)))))
  (when (eq c-c++-backend 'lsp-cquery) (defvar use-package--warning33 (function (lambda (keyword err) (let ((msg (format "%s/%s: %s" 'cquery keyword (error-message-string err)))) (display-warning 'use-package msg :error))))) (condition-case-unless-debug err (progn (condition-case-unless-debug err (when (run-hook-with-args-until-failure 'use-package--cquery--pre-init-hook) (run-hooks 'use-package--cquery--post-init-hook)) (error (funcall use-package--warning33 :init err))) (let ((now (current-time))) (message "%s..." "Loading package cquery") (prog1 (if (not (require 'cquery nil t)) (display-warning 'use-package (format "Cannot load %s" 'cquery) :error) (let ((now (current-time))) (message "%s..." "Configuring package cquery") (prog1 (condition-case-unless-debug err (progn (when (run-hook-with-args-until-failure 'use-package--cquery--pre-config-hook) (spacemacs//c-c++-lsp-config) (run-hooks 'use-package--cquery--post-config-hook)) t) (error (funcall use-package--warning33 :config err))) (let ((elapsed (float-time (time-subtract (current-time) now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Configuring package cquery" elapsed) (message "%s...done" "Configuring package cquery")))))) (let ((elapsed (float-time (time-subtract (current-time) now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Loading package cquery" elapsed) (message "%s...done" "Loading package cquery"))))) (add-hook 'c-mode-hook (function (lambda nil (if (memql (function company-lsp) company-backends) (with-no-warnings company-backends) (setq company-backends (cons (function company-lsp) company-backends))) (require 'cquery) (remhash 'clangd lsp-clients) (lsp)))) (add-hook 'c++-mode-hook (function (lambda nil (if (memql (function company-lsp) company-backends) (with-no-warnings company-backends) (setq company-backends (cons (function company-lsp) company-backends))) (require 'cquery) (remhash 'clangd lsp-clients) (lsp))))) (error (funcall use-package--warning33 :catch err))))
  (use-package cquery :if (eq c-c++-backend 'lsp-cquery) :config (spacemacs//c-c++-lsp-config) :hook ((c-mode c++-mode) lambda nil (if (memql (function company-lsp) company-backends) (with-no-warnings company-backends) (setq company-backends (cons (function company-lsp) company-backends))) (require 'cquery) (remhash 'clangd lsp-clients) (lsp)))
  c-c++/init-cquery()
  funcall(c-c++/init-cquery)
  (let* ((pkg-name (eieio-oref pkg ':name)) (owner (car (eieio-oref pkg ':owners)))) (spacemacs-buffer/message (format "%S -> init (%S)..." pkg-name owner)) (funcall (intern (format "%S/init-%S" owner pkg-name))))
  configuration-layer//configure-package(#<cfgl-package cfgl-package>)
  mapc(configuration-layer//configure-package (#<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package> #<cfgl-package cfgl-package>))
  (let (packages-to-configure) (let ((--dolist-tail-- packages) pkg-name) (while --dolist-tail-- (setq pkg-name (car --dolist-tail--)) (let ((pkg (configuration-layer/get-package pkg-name))) (cond ((eieio-oref pkg ':lazy-install) (spacemacs-buffer/message (format "%S ignored since it can be lazily installed." pkg-name))) ((and (eieio-oref pkg ':excluded) (not (eieio-oref pkg ':protected))) (spacemacs-buffer/message (format "%S ignored since it has been excluded." pkg-name))) ((null (eieio-oref pkg ':owners)) (spacemacs-buffer/message (format "%S ignored since it has no owner layer." pkg-name))) ((not (configuration-layer//package-reqs-used-p pkg)) (spacemacs-buffer/message (format (concat "%S is ignored since it has dependencies " "that are not used.") pkg-name))) ((not (cfgl-package-enabled-p pkg)) (spacemacs-buffer/message (format "%S is disabled." pkg-name))) (t (let ((dir (configuration-layer/get-location-directory pkg-name (eieio-oref pkg ':location) (car (eieio-oref pkg ':owners))))) (if dir (progn (add-to-list 'load-path dir)))) (if (memq (eieio-oref pkg ':location) '(local site built-in)) nil (configuration-layer//activate-package pkg-name)) (cond ((eq 'dotfile (car (eieio-oref pkg ':owners))) (spacemacs-buffer/message (format "%S is configured in the dotfile." pkg-name))) (t (setq packages-to-configure (cons pkg packages-to-configure)) (configuration-layer//pre-configure-package pkg)))))) (setq --dolist-tail-- (cdr --dolist-tail--)))) (setq packages-to-configure (reverse packages-to-configure)) (mapc 'configuration-layer//configure-package packages-to-configure) (mapc 'configuration-layer//post-configure-package packages-to-configure))
  configuration-layer//configure-packages-2((abbrev ac-ispell ace-jump-helm-line ace-link ace-window add-node-modules-path aggressive-indent anaconda-mode ansi-colors archive-mode auto-compile auto-complete auto-dictionary auto-highlight-symbol auto-yasnippet avy bookmark bracketed-paste cc-mode ccls centered-cursor-mode clang-format clean-aindent-mode column-enforce-mode company company-anaconda company-c-headers company-lsp company-quickhelp company-rtags company-statistics company-tern compile conf-mode counsel-projectile cquery cython-mode debug default-helm-config default-ivy-config default-org-config define-word desktop dired dired-x disaster display-line-numbers doc-view doom-modeline dos dumb-jump edebug ediff editorconfig eldoc electric-indent-mode elisp-slime-nav emacs-lisp eval-sexp-fu evil-anzu evil-args evil-cleverparens evil-ediff evil-escape evil-exchange evil-goggles evil-iedit-state evil-indent-plus evil-lion evil-lisp-state evil-magit evil-matchit evil-mc evil-nerd-commenter evil-numbers evil-org evil-surround evil-textobj-line evil-tutor evil-unimpaired evil-visual-mark-mode evil-visualstar expand-region eyebrowse fancy-battery fill-column-indicator flx-ido flycheck flycheck-pos-tip flycheck-rtags flyspell flyspell-correct flyspell-correct-helm flyspell-correct-ivy flyspell-correct-popup flyspell-popup fuzzy gdb-mi git-commit git-link git-messenger git-timemachine gitattributes-mode gitconfig-mode gitignore-mode gitignore-templates gnuplot golden-ratio google-c-style google-translate grep helm helm-ag helm-c-yasnippet helm-company helm-descbinds helm-flx helm-git-grep helm-gitignore helm-make helm-mode-manager helm-org-rifle helm-projectile helm-purpose helm-pydoc helm-rtags helm-spacemacs-faq helm-spacemacs-help helm-swoop helm-themes helm-xref help-fns+ hexl hi-lock hide-comnt highlight-indentation highlight-numbers highlight-parentheses hippie-exp hl-todo hs-minor-mode htmlize hungry-delete ido ido-vertical-mode ielm image-mode imenu import-js importmagic indent-guide info+ js-doc js2-mode js2-refactor json-mode json-navigator json-reformat json-snatcher link-hint linum linum-relative live-py-mode livid-mode lorem-ipsum lsp-mode lsp-ui macrostep magit magit-gitflow magit-svn move-text nameless nose ob occur-mode open-junk-file org org-agenda org-brain org-bullets org-download org-expiry org-journal org-mime org-pomodoro org-present org-projectile org-re-reveal org-sticky-header org-trello orgit origami overseer ox-epub ox-gfm ox-hugo ox-twbs package-menu page-break-lines paradox password-generator persp-mode pip-requirements pipenv pippel plantuml-mode popup popwin powershell prettier-js process-menu projectile py-isort pyenv-mode pylookup pytest python pyvenv rainbow-delimiters recentf request restart-emacs rtags savehist saveplace skewer-mode smartparens smeargle smooth-scrolling space-doc spaceline spaceline-all-the-icons spacemacs-purpose-popwin spacemacs-theme spacemacs-whitespace-cleanup string-inflection subword symon tar-mode tern toc-org transient treemacs treemacs-evil treemacs-projectile undo-tree uniquify url uuidgen vi-tilde-fringe vim-powerline visual-line-mode volatile-highlights web-beautify whitespace window-purpose winner winum writeroom-mode ws-butler yapfify yasnippet yasnippet-snippets zone zoom-frm))
  configuration-layer//configure-packages((abbrev ac-ispell ace-jump-helm-line ace-link ace-window add-node-modules-path aggressive-indent anaconda-mode ansi-colors archive-mode async auto-compile auto-complete auto-dictionary auto-highlight-symbol auto-yasnippet avy bind-key bind-map bookmark bracketed-paste cc-mode ccls centered-cursor-mode clang-format clean-aindent-mode column-enforce-mode company company-anaconda company-c-headers company-lsp company-quickhelp company-rtags company-statistics company-tern compile conf-mode counsel-projectile cquery cython-mode debug default-helm-config default-ivy-config default-org-config define-word desktop diminish dired dired-x disaster display-line-numbers doc-view doom-modeline dos dotenv-mode dumb-jump edebug ediff editorconfig eldoc electric-indent-mode elisp-slime-nav emacs-lisp eval-sexp-fu evil evil-anzu evil-args evil-cleverparens evil-ediff evil-escape evil-evilified-state evil-exchange evil-goggles evil-iedit-state evil-indent-plus evil-lion evil-lisp-state evil-magit evil-matchit evil-mc evil-nerd-commenter evil-numbers evil-org evil-surround evil-textobj-line evil-tutor evil-unimpaired evil-visual-mark-mode evil-visualstar expand-region eyebrowse fancy-battery fill-column-indicator flx-ido flycheck flycheck-pos-tip flycheck-rtags flyspell flyspell-correct flyspell-correct-helm flyspell-correct-ivy flyspell-correct-popup flyspell-popup font-lock+ fuzzy gdb-mi git-commit git-link git-messenger git-timemachine gitattributes-mode gitconfig-mode gitignore-mode gitignore-templates gnuplot golden-ratio google-c-style google-translate grep helm helm-ag helm-c-yasnippet helm-company helm-descbinds helm-flx helm-git-grep helm-gitignore helm-make helm-mode-manager helm-org-rifle helm-projectile helm-purpose helm-pydoc helm-rtags helm-spacemacs-faq helm-spacemacs-help helm-swoop helm-themes helm-xref help-fns+ hexl hi-lock hide-comnt highlight-indentation highlight-numbers highlight-parentheses hippie-exp hl-todo holy-mode hs-minor-mode htmlize hungry-delete hybrid-mode hydra ido ido-vertical-mode ielm image-mode imenu import-js importmagic indent-guide info+ js-doc js2-mode js2-refactor json-mode json-navigator json-reformat json-snatcher link-hint linum linum-relative live-py-mode livid-mode lorem-ipsum lsp-mode lsp-ui macrostep magit magit-gitflow magit-svn move-text nameless nose ob occur-mode open-junk-file org org-agenda org-brain org-bullets org-download org-expiry org-journal org-mime org-plus-contrib org-pomodoro org-present org-projectile org-re-reveal org-sticky-header org-trello orgit origami overseer ox-epub ox-gfm ox-hugo ox-twbs package-menu page-break-lines paradox password-generator pcre2el persp-mode pip-requirements pipenv pippel plantuml-mode popup popwin powershell prettier-js process-menu projectile py-isort pyenv-mode pylookup pytest python pyvenv rainbow-delimiters recentf request restart-emacs rtags savehist saveplace skewer-mode smartparens smeargle smooth-scrolling space-doc spaceline spaceline-all-the-icons spacemacs-purpose-popwin spacemacs-theme spacemacs-whitespace-cleanup string-inflection subword symon tar-mode tern toc-org transient treemacs treemacs-evil treemacs-projectile undo-tree uniquify url use-package uuidgen vi-tilde-fringe vim-powerline visual-line-mode volatile-highlights web-beautify which-key whitespace window-purpose winner winum writeroom-mode ws-butler yapfify yasnippet yasnippet-snippets zone zoom-frm))
  configuration-layer//load()
  (cond (changed-since-last-dump-p (configuration-layer//load) (if (spacemacs/emacs-with-pdumper-set-p) (progn (configuration-layer/message "Layer list has changed since last dump.") (configuration-layer//dump-emacs)))) (spacemacs-force-dump (configuration-layer//load) (if (spacemacs/emacs-with-pdumper-set-p) (progn (configuration-layer/message (concat "--force-dump passed on the command line, " "forcing a redump.")) (configuration-layer//dump-emacs)))) ((spacemacs-is-dumping-p) (configuration-layer//load) (configuration-layer/message "Dumping Emacs...")) ((and (spacemacs/emacs-with-pdumper-set-p) (spacemacs-run-from-dump-p)) (configuration-layer/message "Running from a dumped file. Skipping the loading process!")) (t (configuration-layer//load) (if (spacemacs/emacs-with-pdumper-set-p) (progn (configuration-layer/message (concat "Layer list has not changed since last time. " "Skipping dumping process!"))))))
  configuration-layer/load()
  (let ((file-name-handler-alist nil)) (require 'core-spacemacs) (if (eq 'dumping spacemacs-dump-mode) nil (if (boundp 'load-path-backup) (progn (setq load-path load-path-backup)))) (configuration-layer/load-lock-file) (spacemacs/init) (configuration-layer/stable-elpa-download-tarball) (configuration-layer/load) (spacemacs-buffer/display-startup-note) (spacemacs/setup-startup-hook) (if (eq 'dumping spacemacs-dump-mode) nil (global-font-lock-mode) (global-undo-tree-mode t) (winner-mode t)) (if (and dotspacemacs-enable-server (not (spacemacs-is-dumping-p))) (progn (require 'server) (if dotspacemacs-server-socket-dir (progn (setq server-socket-dir dotspacemacs-server-socket-dir))) (if (server-running-p) nil (message "Starting a server...") (server-start)))) (if (eq 'dumping spacemacs-dump-mode) (progn (setq load-path-backup load-path) (global-undo-tree-mode -1) (setq spacemacs-dump-mode 'dumped) (garbage-collect))))
  (if (not (version<= spacemacs-emacs-min-version emacs-version)) (error (concat "Your version of Emacs (%s) is too old. " "Spacemacs requires Emacs version %s or above.") emacs-version spacemacs-emacs-min-version) (let ((file-name-handler-alist nil)) (require 'core-spacemacs) (if (eq 'dumping spacemacs-dump-mode) nil (if (boundp 'load-path-backup) (progn (setq load-path load-path-backup)))) (configuration-layer/load-lock-file) (spacemacs/init) (configuration-layer/stable-elpa-download-tarball) (configuration-layer/load) (spacemacs-buffer/display-startup-note) (spacemacs/setup-startup-hook) (if (eq 'dumping spacemacs-dump-mode) nil (global-font-lock-mode) (global-undo-tree-mode t) (winner-mode t)) (if (and dotspacemacs-enable-server (not (spacemacs-is-dumping-p))) (progn (require 'server) (if dotspacemacs-server-socket-dir (progn (setq server-socket-dir dotspacemacs-server-socket-dir))) (if (server-running-p) nil (message "Starting a server...") (server-start)))) (if (eq 'dumping spacemacs-dump-mode) (progn (setq load-path-backup load-path) (global-undo-tree-mode -1) (setq spacemacs-dump-mode 'dumped) (garbage-collect)))))
  eval-buffer(#<buffer  *load*> nil "/home/igor/.emacs.d/init.el" nil t)  ; Reading at buffer position 2288
  load-with-code-conversion("/home/igor/.emacs.d/init.el" "/home/igor/.emacs.d/init.el" t t)
  load("/home/igor/.emacs.d/init" t t)
  #f(compiled-function () #<bytecode 0x254535>)()
  command-line()
  normal-top-level()
thanhvg commented 5 years ago

Really? If this bug is real then Spacemacs would have no new users since last November because no one actually uses the outdated master branch.

I want to try to reproduce this bug but I'm scared.

igorojas commented 5 years ago

I cloned the repo on a clean .emacs.d, moved the dotfiles to a backup location and started from scratch as to have a "reproducible" environment.

I only enabled these layers:

 dotspacemacs-configuration-layers
   '(
     ;; ----------------------------------------------------------------
     ;; Example of useful layers you may want to use right away.
     ;; Uncomment some layer names and press `SPC f e R' (Vim style) or
     ;; `M-m f e R' (Emacs style) to install them.
     ;; ----------------------------------------------------------------
     helm
     auto-completion
     ;; better-defaults
     emacs-lisp
     ;; git
     ;; markdown
     multiple-cursors
     treemacs
     ;; org
     ;; (shell :variables
     ;;        shell-default-height 30
     ;;        shell-default-position 'bottom)
     ;; spell-checking
     ;; syntax-checking
     ;; version-control
     (c-c++ :variables
            c-c++-backend 'lsp-cquery
            c-c++-lsp-executable "/home/igor/local/bin/cquery"
            c-c++-lsp-cache-dir ".cache"
            c-c++-lsp-sem-highlight-rainbow t)
     )

And added this to dotspacemacs/user-config:

  (setq cquery-extra-args '("--log-file=/tmp/cq.log"))
  (setq cquery-extra-init-params '(:index (:comments 2) :cacheFormat "msgpack" :completion (:detailedLabel t)))
deech commented 5 years ago

As of 2 hours ago this is happening to me as well. Stock configuration and a fresh clone I can't get OSX to give me a stack trace.

deech commented 5 years ago

This is now solved for me. The problem was that I had compiled emacs from source without gnutls, in emacs 26 and above it is required and setting dotspacemacs-elpa-https nil does not work. In the end I ditched my self compiled emacs and went with brew cask install emacs which seems to be working fine so far.

igorojas commented 5 years ago

I got the emacs-26 .deb files from launchpad.net and installed that version. I still get that same error. Not sure where to look next.

quicknir commented 5 years ago

I'm pretty concerned that a completely breaking bug is just sitting here for so long, reproduced on fresh installs, without comment. I realize it's not trivial to fix but can we at least start by reverting the commit in question? Does the commit actually provide benefits that are so large that it compensates for breaking multiple people's spacemacs completely, inexplicably?

IMHO this should be reverted for now until the problem can be determined. This would allow a bunch of people to update their spacemacs without forking. If someone who understands the issues or was involved in the change has trouble reproducing, I'd be happy to work with them to try to verify the problem/fix (and I"m sure other people here would be as well).

duianto commented 5 years ago

This seems to be the PR for the commit in question: set load-prefer-newer to t #11460

The PR message states that it fixes four org related issues:

Fixes (frustration of) the following issues:

10199

6296

8414

7641

quicknir commented 5 years ago

one of these is running code in org, the other 2 are org export related. While I appreciate these are significant for some people, in the grand scheme of things this is a niche feature in a specific major mode, and isn't anywhere near as severe as simply being unable to run spacemacs. 8414 is a more serious issue. Can we verify that this commit is still needed to fix it? There are multiple commits referenced in #8414 so maybe some of the others fix this issue without the commit at hand.

duianto commented 5 years ago

@d12frosted Have you run into this issue? Or do you know if the commit https://github.com/syl20bnr/spacemacs/commit/5d4b80bbad45e8124b68da94ba3fd72a4c910771 can be reverted or worked around, it seems to solve this really bad issue?

I haven't run into the issue myself in either Windows 10 or Ubuntu 18.04.02 (virtualbox client).

d12frosted commented 5 years ago

Interesting, I've never faced this error before.

Reverting 5d4b80b is not a good solution IMHO, as you will return back frustration and issues related to some old elc being loaded.

On the other hand it's really interesting that not forcing to load newest elc files fixes the issue on the clean install.

Also @deech mentioned that the issue was fixed by different configuration of Emacs installation. Or just playing around with dotspacemacs-elpa-https value. Can someone please try to either set dotspacemacs-elpa-https to nil or install Emacs with gnutls support (emacs-plus installs with gnutls by default)?

duianto commented 5 years ago

Oh yeah, I read deech's comment when it was posted about gnutls support in Emacs and thought that it might be why the issue isn't occurring for me.

Windows 10 Version 1803 with Emacs 26.1:

(gnutls-available-p):

(ClientHello\ Padding Session\ Ticket Extended\ Master\ Secret Encrypt-then-MAC ClientHello\ Padding ALPN Heartbeat SRTP Signature\ Algorithms SRP Supported\ ECC\ Point\ Formats Negotiated\ Groups OCSP\ Status\ Request Maximum\ Record\ Size Server\ Name\ Indication macs AEAD-ciphers ciphers digests gnutls3 gnutls)

emacs-version: GNU Emacs 26.2 (build 1, x86_64-w64-mingw32) of 2019-04-13

system-configuration-options:

--without-dbus --host=x86_64-w64-mingw32 --without-compress-install 'CFLAGS=-O2 -static -g3'

Ubuntu 18.04.02 with Emacs 27.0.50:

(gnutls-available-p):

(ClientHello\ Padding Session\ Ticket Extended\ Master\ Secret Encrypt-then-MAC ClientHello\ Padding ALPN Heartbeat SRTP Signature\ Algorithms SRP Supported\ ECC\ Point\ Formats Supported\ curves Certificate\ Type OCSP\ Status\ Request Maximum\ Record\ Size Server\ Name\ Indication macs AEAD-ciphers ciphers digests gnutls3 gnutls)

emacs-version: GNU Emacs 27.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2019-05-03

system-configuration-options:

--build=x86_64-linux-gnu --prefix=/usr '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' --sysconfdir=/etc --localstatedir=/var --disable-silent-rules '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' --disable-maintainer-mode --disable-dependency-tracking --prefix=/usr --sharedstatedir=/var/lib --program-suffix=-snapshot --with-modules=yes --with-x=yes --with-x-toolkit=gtk3 --with-xwidgets=yes 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs-snapshot-ayUge2/emacs-snapshot-96932=. -fstack-protector-strong -Wformat -Werror=format-security' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'
d12frosted commented 5 years ago

This is how it looks for me on Arch Linux with Emacs 27.0.50:

(ClientHello\ Padding Key\ Share Post\ Handshake\ Auth PSK\ Key\ Exchange\ Modes Cookie Supported\ Versions Early\ Data Pre\ Shared\ Key Session\ Ticket Record\ Size\ Limit Extended\ Master\ Secret Encrypt-then-MAC ClientHello\ Padding Server\ Certificate\ Type Client\ Certificate\ Type ALPN Heartbeat SRTP Signature\ Algorithms SRP Supported\ EC\ Point\ Formats Supported\ Groups OCSP\ Status\ Request Maximum\ Record\ Size Server\ Name\ Indication macs AEAD-ciphers ciphers digests gnutls3 gnutls)
syl20bnr commented 5 years ago

I agree we should not revert the setting to load newer .elc files. We need to find the cause with this option enabled.

I remark that there is almost no description of the context when the error happened. People with the error, do you remember what you did before the error started to happen ? We need as much info as possible about the context in the hope to find correlations. Any bit of information will be useful especially your accurate Emacs build info, how you installed it and on which OS.

My (emacs-version) from a built installed with homebrew and emacs-plus tap using HEAD:

GNU Emacs 27.0.50 (build 1, x86_64-apple-darwin18.2.0, NS appkit-1671.20 Version 10.14.3 (Build 18D109)) of 2019-03-31

Evaluation of (gnutls-available-p):

(ClientHello\ Padding Key\ Share Post\ Handshake\ Auth PSK\ Key\ Exchange\ Modes Cookie Supported\ Versions Early\ Data Pre\ Shared\ Key Session\ Ticket Record\ Size\ Limit Extended\ Master\ Secret Encrypt-then-MAC ClientHello\ Padding Server\ Certificate\ Type Client\ Certificate\ Type ALPN SRTP Signature\ Algorithms SRP Supported\ EC\ Point\ Formats Supported\ Groups OCSP\ Status\ Request Maximum\ Record\ Size Server\ Name\ Indication macs AEAD-ciphers ciphers digests gnutls3 gnutls)
syl20bnr commented 5 years ago

Also important the value of the variable system-configuration-options.

Here is mine:

--disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-plus/HEAD-b619777/share/info/emacs --prefix=/usr/local/Cellar/emacs-plus/HEAD-b619777 --with-xml2 --with-dbus --with-gnutls --with-imagemagick --with-modules --with-rsvg --with-ns --disable-ns-self-contained
syl20bnr commented 5 years ago

Last spam of the day :-) I don't encounter this error on my system.

Zlopez commented 5 years ago

I'm now hitting this issue with emacs in flatpak. It worked fine with master branch, but started to appear after switching to develop branch.

I even tried @d12frosted advice to revert to specific commit and even this didn't help to me.

duianto commented 5 years ago

@Zlopez Could you post the results of:

Zlopez commented 5 years ago

@Zlopez Could you post the results of:

* `M-:` `(emacs-version)`

"26.2"

* `M-:` `(gnutls-available-p)`
Debugger entered--Lisp error: (void-variable gnutls-available-p)
eval(gnutls-available-p nil)
eval-expression(gnutls-available-p nil nil 127)
funcall-interactively(eval-expression gnutls-available-p nil nil 127)
call-interactively(eval-expression nil nil)
command-execute(eval-expression)
* `C-h v` `system-configuration-options`
system-configuration-options is a variable defined in ‘C source code’.
Its value is
"--prefix=/app 'CFLAGS=-march=x86-64 -mtune=generic -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' 'LDFLAGS=-L/app/lib -Wl,-z,relro,-z,now -Wl,--as-needed'"
duianto commented 5 years ago

Could you post the full result of (emacs-version). It also shows which OS your on and possibly how old your build is. This is what it says for me:

"GNU Emacs 26.2 (build 1, x86_64-w64-mingw32)
 of 2019-04-13"

Did you forget the parentheses around gnutls-available-p? The manual says that it returns nil if gnutls isn't available. https://www.gnu.org/software/emacs/manual/html_node/emacs-gnutls/Help-For-Users.html

Zlopez commented 5 years ago

@duianto Yes, you are right I forgot the parantheses: (emacs-version):

"GNU Emacs 26.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5)
 of 2019-04-13"

(gnutls-available-p):

(ClientHello\ Padding Key\ Share Post\ Handshake\ Auth PSK\ Key\ Exchange\ Modes Cookie Supported\ Versions Early\ Data Pre\ Shared\ Key Session\ Ticket Record\ Size\ Limit Extended\ Master\ Secret Encrypt-then-MAC ClientHello\ Padding Server\ Certificate\ Type Client\ Certificate\ Type ALPN Heartbeat SRTP Signature\ Algorithms SRP Supported\ EC\ Point\ Formats Supported\ Groups OCSP\ Status\ Request Maximum\ Record\ Size Server\ Name\ Indication macs AEAD-ciphers ciphers digests gnutls3 gnutls)
karlicoss commented 5 years ago

Easy way to reproduce:

docker run -it silex/emacs:master-alpine sh -c 'apk add git; git clone https://github.com/syl20bnr/spacemacs.git -b develop ~/.config/emacs; emacs' -- results in same error on startup

With reverted 5d4b80, it works fine.

docker run -it silex/emacs:master-alpine sh -c 'apk add git; git clone https://github.com/syl20bnr/spacemacs.git -b develop ~/.config/emacs; cd ~/.config/emacs; git revert 5d4b80; emacs'

Configuration variables on that container:

~ # (emacs-version)
GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-musl, GTK+ Version 3.24.1)
 of 2019-09-06
~ # (gnutls-available-p)
(ClientHello\ Padding Key\ Share Post\ Handshake\ Auth PSK\ Key\ Exchange\ Modes Cookie Supported\ Versions Early\ Data Pre\ Shared\ Key Session\ Ticket Record\ Size\ Limit Extended\ Master\ Secret Encrypt-then-MAC ClientHello\ Padding Server\ Certifica\
te\ Type Client\ Certificate\ Type ALPN Heartbeat SRTP Signature\ Algorithms SRP Supported\ EC\ Point\ Formats Supported\ Groups OCSP\ Status\ Request Maximum\ Record\ Size Server\ Name\ Indication macs AEAD-ciphers ciphers digests gnutls3 gnutls)
~ # (message system-configuration-options)
--with-modules

Here's the docker container template if it helps debug missing libraries or something.

syl20bnr commented 5 years ago

@karlicoss Only --with-modules for config options is weird unless GnuTLS is automatically picked up at build time. The runtime seems to have gnutls although --with-gnutls was not specified explicitly.

With reverted 5d4b80, it works fine.

How did you find this work-around ? :-) Were you able to install additional packages without any error after the successful launch of Emacs ?

karlicoss commented 5 years ago

@syl20bnr the workaround/commit was mentioned by @or in the issue description, so I just tried it!

Just tried editing config, uncommenting some layers and reloading emacs, seems ok, at least no error messages.

or commented 5 years ago

I think I either used git bisect or simply guessed it, because at the time it was one of the recent commits that had to do with loading files. git bisect is much l33ter, tho, so let's go with that. :)

uberjay commented 4 years ago

FWIW, after months of running with commit 5d4b80 reverted to work around this issue, I tried running the stock develop branch and it's fine! In the meantime, I've upgraded emacs (and spacemacs) a number of times. It's been so long that I'd nearly forgotten about this issue.

(emacs-version)
"GNU Emacs 27.0.50 (build 7, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G1012))
 of 2019-12-06"

(gnutls-available-p)
(ClientHello\ Padding Key\ Share Post\ Handshake\ Auth PSK\ Key\ Exchange\ Modes Cookie Supported\ Versions Early\ Data Pre\ Shared\ Key Session\ Ticket Record\ Size\ Limit Extended\ Master\ Secret Encrypt-then-MAC ClientHello\ Padding Server\ Certificate\ Type Client\ Certificate\ Type ALPN SRTP Signature\ Algorithms SRP Supported\ EC\ Point\ Formats Supported\ Groups OCSP\ Status\ Request Maximum\ Record\ Size Server\ Name\ Indication macs AEAD-ciphers ciphers digests gnutls3 gnutls)

(system-configuration-options)
--with-ns --with-gnutls --with-imagemagick --with-rsvg --with-mailutils --with-xml2 PKG_CONFIG_PATH=/usr/local/opt/libxml2/lib/pkgconfig

I had previously independently discovered this workaround; one time after pulling new spacemacs changes my emacs wouldn't start up anymore. I checked out each recent commit to see what had happened, and discovered the load-prefer-newer introduced the startup failure. Turning it off didn't seem to have any observable downsides, but not needing custom changes in my spacemacs repo anymore is pretty nice. :)

EDIT: to be clear, I have no idea why it may have started working, but would be happy to debug this further if anyone has some ideas on where to look.

fridim commented 4 years ago

FWIW, after months of running with commit 5d4b80 reverted to work around this issue, I tried running the stock develop branch and it's fine! In the meantime, I've upgraded emacs (and spacemacs) a number of times. It's been so long that I'd nearly forgotten about this issue.

Not the case here. I still have the issue with latest develop branch

Reverting 5d4b80 in develop works for me too. (release-0.200.13.x works fine)

emacs 26.2 on alpine linux
jjazar commented 3 years ago

I'm now getting "Symbol's value as variable is void: the"out of the blue after just restarting a few times while configging. I undid all changes and this persisted. Very strange.

duianto commented 3 years ago

It seems like there is a stray "the" somewhere.

Check if one of the .spacemacs variable comment lines, starting with ;; the have been uncommented.

There seems to be 7 in the develop branch template: https://github.com/syl20bnr/spacemacs/blob/develop/core/templates/.spacemacs.template

and 8 in the master branch template: https://github.com/syl20bnr/spacemacs/blob/master/core/templates/.spacemacs.template

zabereer commented 3 years ago

I just hit this exact problem (as in description) after installing archlinux docker image and installing emacs 27.1 and git cloned spacemacs. This only seems to happen when running emacs as the container root user, not as any other user. Unfortunately --debug-init does not help at all. I hope this info might help.

jjazar commented 3 years ago

I don't know what it is exactly I did, but a line was somehow uncommented/duplicated without comments. Going through the config line by line and deleting it fixed. Weird.

adeverteuil commented 3 years ago

Quoting @Zlopez :

I'm now hitting this issue with emacs in flatpak. It worked fine with master branch, but started to appear after switching to develop branch.

I even tried @d12frosted advice to revert to specific commit and even this didn't help to me.

I'm on Fedora 33. I installed Emacs from the Gnome Software Manager and the Flatpak package was installed. I encountered the problem when starting Spacemacs on the develop branch but not on the master branch.

Then I installed emacs using dnf (from the Fedora official YUM repository) and it works both on develop and master branches of Spacemacs.

In both cases, the Emacs version was 27.1.

a-schaefers commented 3 years ago

I hit this bug when using flatpak emacs on the develop branch with a fresh spacemacs.

lebensterben commented 3 years ago

I recommend everyone to build Emacs from source.

Around Aug 20, I hit the bug with the Emacs from the distro, but Flatpak Emacs worked...

GeorgesAlkhouri commented 3 years ago

Just as an addition. I first encountered this error today when tried to start spacemacs with an emacs build from build-emacs-for-macos. Build command was ./build-emacs-for-macos --native-comp It was also possible to work around this error by commenting out the mentioned line of code (setq load-prefer-newer t).

Emacs Version:

"GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin20.3.0, NS appkit-2022.30 Version 11.2.3 (Build 20D91))
 of 2021-05-02"

gnutls-available-p:

(ClientHello\ Padding Key\ Share Post\ Handshake\ Auth PSK\ Key\ Exchange\ Modes Cookie Supported\ Versions Early\ Data Pre\ Shared\ Key Session\ Ticket Record\ Size\ Limit Extended\ Master\ Secret Encrypt-then-MAC ClientHello\ Padding Server\ Certificate\ Type Client\ Certificate\ Type ALPN SRTP Signature\ Algorithms SRP Supported\ EC\ Point\ Formats Supported\ Groups OCSP\ Status\ Request Maximum\ Record\ Size Server\ Name\ Indication macs AEAD-ciphers ciphers digests gnutls3 gnutls)

system-configuration-options:

--with-ns --with-modules '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-xwidgets --with-native-compilation --without-rsvg 'CFLAGS=-I/usr/local/opt/gcc/include -I/usr/local/opt/libgccjit/include -O2 -march=native' 'LDFLAGS=-L/usr/local/opt/gcc/lib/gcc/10 -L/usr/local/opt/gcc/lib/gcc/10/gcc/x86_64-apple-darwin20/10.2.0 -L/usr/local/opt/libgccjit/lib/gcc/10 -I/usr/local/opt/gcc/include -I/usr/local/opt/libgccjit/include'
lebensterben commented 3 years ago

I will take a look.

kidpollo commented 3 years ago

I also used build-emacs-for-macos as @GeorgesAlkhouri here and had to comment that load-prefer-newer line to get emacs to load.

Emacs Version:

"GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin20.5.0, NS appkit-2022.50 Version 11.4 (Build 20F71))
 of 2021-07-12"

gnutls-available-p:

(ClientHello\ Padding Key\ Share Post\ Handshake\ Auth PSK\ Key\ Exchange\ Modes Cookie Supported\ Versions Early\ Data Pre\ Shared\ Key Session\ Ticket Record\ Size\ Limit Extended\ Master\ Secret Encrypt-then-MAC ClientHello\ Padding Server\ Certificate\ Type Client\ Certificate\ Type ALPN SRTP Signature\ Algorithms SRP Supported\ EC\ Point\ Formats Supported\ Groups OCSP\ Status\ Request Maximum\ Record\ Size Server\ Name\ Indication macs AEAD-ciphers ciphers digests gnutls3 gnutls)

system-configuration-options:

"--with-ns --with-modules '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-xwidgets --with-native-compilation 'CFLAGS=-I/usr/local/opt/gcc/include -I/usr/local/opt/libgccjit/include -O2' 'LDFLAGS=-L/usr/local/opt/gcc/lib/gcc/11 -L/usr/local/opt/gcc/lib/gcc/11/gcc/x86_64-apple-darwin20/11.1.0 -L/usr/local/opt/libgccjit/lib/gcc/11 -I/usr/local/opt/gcc/include -I/usr/local/opt/libgccjit/include'"
stradicat commented 3 years ago

I've found that in Ubuntu derivatives, whilst using the latest develop branch, this only happens with Emacs installed from flatpak, which is the only out-of-the-box, system-approved alternative in Elementary OS 6. The kelleyk PPA only holds Emacs 27.1, not the last version yet, and after manually installing snapd and then installing Emacs, the error does not appear.

lebensterben commented 3 years ago

Previously the emacs from my system official repository had this issue on and off a few times. I built emacs with exact same options but the problem doesn't appear.

Also, sometimes flatpak emacs works fine, sometimes not.

In summary:


I've deleted two comments of 'same here'. Please don't make new comment unless it brings more information to the underlying issue.

thecocoa commented 3 years ago

I'm getting this error after compiling emacs 28 from scratch using emacsformacosx GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin20.6.0, NS appkit-2022.60 Version 11.5.2 (Build 20G95)) of 2021-09-12

After commenting out lines in the ~/.emacs.d/init.el, I see the error present itself with the line starting with: (configuration-layer/load)

If I comment this line, spacemacs doesn't completely load, but the \213 error is not present.

emacs -Q loads fine emacs --debug-init does NOT provide a backtrace, just the following:

Warning (initialization): An error occurred while loading ‘/Users/bobrien/.emacs.d/init.el’:

Symbol's value as variable is void: ‹

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. Disable showing Disable logging
raphael-costa commented 2 years ago

From @lebensterben and @syl20bnr response it should be safe to assume Spacemacs developers don't care if the problem doesn't happen to them. Losing users entirely is better than some small frustration for a subsection of dedicated users.

I'm running into the same issue, there is no need to recompile or anything, all you guys have to do it vi ~/.emacs.d/layers/+spacemacs/spacemacs-defaults/config.el and comment the last line. Do it every time spacemacs updates, or more professionally by using git revert but this makes the update process more complicated. Sadly I can't figure out how to fix this from ~/.spacemacs, just pasting the code and setting to nil doesn't work anywhere I try, either way I leave my spacemacs update frozen for months since develop breaks things all the time for no reason and stable has been abandoned by @syl20bnr for years now.

This is no upstream issue, stop making excuses. You're just reluctant to revert a broken commit.

anisoptera commented 2 years ago
  • A confirmed solution is to build emacs yourself.

I am currently experiencing this issue on a self-built emacs 29.1 (latest master). My configuration line: ./configure --with-native-compilation --with-json --with-modules --with-harfbuzz --with-compress-install \ --with-threads --with-included-regex --with-x-toolkit=lucid --with-zlib --with-jpeg --with-png --with-imagemagick --with-tiff --with-xpm --with-gnutls \ --with-xft --with-xml2 --with-mailutils --with-pgtk

on WSL2 Ubuntu20.04 LTS.

Reverting the commit in question does not help. This occurs on a fresh checkout of develop branch, with no additional configuration.

I tried removing --with-native-compilation from this list with no help (saw a couple of other people with this option having the problem so gave it a shot)

Edit: Turns out this isn't unique to spacemacs and just evil alone can trigger it for me (Doom had at least two instances of it). So my issue is definitely local :)

lebensterben commented 2 years ago

From @lebensterben and @syl20bnr response it should be safe to assume Spacemacs developers don't care if the problem doesn't happen to them. Losing users entirely is better than some small frustration for a subsection of dedicated users.

I'm running into the same issue, there is no need to recompile or anything, all you guys have to do it vi ~/.emacs.d/layers/+spacemacs/spacemacs-defaults/config.el and comment the last line. Do it every time spacemacs updates, or more professionally by using git revert but this makes the update process more complicated. Sadly I can't figure out how to fix this from ~/.spacemacs, just pasting the code and setting to nil doesn't work anywhere I try, either way I leave my spacemacs update frozen for months since develop breaks things all the time for no reason and stable has been abandoned by @syl20bnr for years now.

This is no upstream issue, stop making excuses. You're just reluctant to revert a broken commit.

An outburst of your emotion does not make your point more evident. In the contrast, it merely manifests your pathetic attempt to arouse people's attention due to your frustration of your own inability.

It hilarious to see someone instructing others on a solution without first understanding the cause of the bug. If you are thinking with anything more than your knees you'd know to search it online, which quickly points you to multiple reports with various Emacs versions, on various platforms, and without Spacemacs at all.

lebensterben commented 2 years ago

@anisoptera

Have you tried nuking your .emacs.d altogether?

anisoptera commented 2 years ago

@anisoptera

Have you tried nuking your .emacs.d altogether?

Yes, with a completely bare emacs it started fine.

I was able to fix the issue by installing some prebuilt 28 binary. The master branch of the emacs repo isn’t really super stable, I hit two commits that didn’t even successfully build. So it is probably that.

montchr commented 2 years ago

I am currently experiencing this issue on a self-built emacs 29.1 (latest master)

While I'm not a Spacemacs user, I encountered this issue for the first time after updating to a recent commit of Emacs 29 yesterday. This ticket was the only search engine result that appeared to address the issue directly.

Edit: Turns out this isn't unique to spacemacs and just evil alone can trigger it for me (Doom had at least two instances of it). So my issue is definitely local :)

Confirmed -- I'm using Doom too. The trace always pointed towards evil-collection being involved somehow.

In search of a fix, I also nuked my compiled files and $EMACSDIR but still encountered the same issue after rebuilding everything.

I install Emacs through a Nix configuration using https://github.com/nix-community/emacs-overlay and its emacsPgtkNativeComp package. emacs-overlay provides automated updates tracking upstream Emacs and related sources (e.g. MELPA) -- each commit maps to an upstream commit.

Last-Known Working

I reverted to this emacs-overlay commit in https://github.com/montchr/dotfield/commit/571d259faab376033d6ecdd5972479ffc222c88f

First-Known Broken

Note that the specific commits don't necessarily have any significance in themselves -- they'd be more useful in a git bisect operation (but I'm not about to go down that path because I like my Emacs in a working state).