spacemacs icon indicating copy to clipboard operation
spacemacs copied to clipboard

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

Open or opened this issue 5 years ago • 58 comments

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:

  • Start Emacs

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

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

System Info :computer:

  • OS: darwin
  • Emacs: 27.0.50 (master branch, commit: b87c874aa1016939ccbee4cd3bd1384726cb2220)
  • Spacemacs: 0.300.0
  • Spacemacs branch: develop (rev. 48447a6f1)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: ivy
  • Layers:
(typescript rust finance vimscript html sql csv ivy
            (auto-completion :variables auto-completion-return-key-behavior nil auto-completion-tab-key-behavior 'complete)
            better-defaults csharp emacs-lisp git markdown
            (org :variables org-enable-bootstrap-support t)
            (shell :variables shell-default-term-shell "/bin/zsh" shell-default-height 30 shell-default-position 'bottom)
            spell-checking syntax-checking
            (gtags :variables gtags-enable-by-default t)
            javascript ruby
            (colors :variables colors-enable-rainbow-mode t)
            python search-engine xkcd selectric yaml spacemail c-c++ speed-reading search-engine java kotlin
            (go :variables go-use-gometalinter t go-tab-width 4)
            quipmacs)
  • System configuration features: RSVG IMAGEMAGICK GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS THREADS JSON LCMS2 GMP

or avatar Nov 12 '18 10:11 or

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

uberjay avatar Nov 19 '18 21:11 uberjay

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

sdwolfz avatar Jan 03 '19 14:01 sdwolfz

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

or avatar Jan 03 '19 15:01 or

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

quicknir avatar Apr 11 '19 15:04 quicknir

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()

igorojas avatar Apr 11 '19 17:04 igorojas

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.

thanhvg avatar Apr 11 '19 20:04 thanhvg

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)))

igorojas avatar Apr 12 '19 20:04 igorojas

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 avatar Apr 17 '19 18:04 deech

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.

deech avatar Apr 18 '19 14:04 deech

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.

igorojas avatar Apr 26 '19 16:04 igorojas

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).

quicknir avatar May 06 '19 18:05 quicknir

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

duianto avatar May 06 '19 18:05 duianto

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.

quicknir avatar May 06 '19 19:05 quicknir

@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).

duianto avatar May 06 '19 19:05 duianto

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)?

d12frosted avatar May 07 '19 06:05 d12frosted

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'

duianto avatar May 07 '19 10:05 duianto

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)

d12frosted avatar May 07 '19 10:05 d12frosted

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 avatar May 12 '19 16:05 syl20bnr

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 avatar May 12 '19 16:05 syl20bnr

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

syl20bnr avatar May 12 '19 16:05 syl20bnr

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.

Zlopez avatar Jul 09 '19 08:07 Zlopez

@Zlopez Could you post the results of:

  • M-: (emacs-version)
  • M-: (gnutls-available-p)
  • C-h v system-configuration-options

duianto avatar Jul 09 '19 09:07 duianto

@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'"

Zlopez avatar Jul 09 '19 10:07 Zlopez

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

duianto avatar Jul 09 '19 11:07 duianto

@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)

Zlopez avatar Jul 09 '19 11:07 Zlopez

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.

karlicoss avatar Sep 08 '19 09:09 karlicoss

@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 ?

syl20bnr avatar Sep 09 '19 03:09 syl20bnr

@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.

karlicoss avatar Sep 09 '19 23:09 karlicoss

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. :)

or avatar Sep 10 '19 06:09 or

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.

uberjay avatar Dec 06 '19 22:12 uberjay