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

Layouts loading from file failing again #10981

Closed robbyoconnor closed 6 years ago

robbyoconnor commented 6 years ago

Description :octocat:

Loading of layouts fails

Reproduction guide :beetle:

Observed behaviour: :eyes: :broken_heart: Error seen in backtrace below

Expected behaviour: :heart: :smile:

Loads things correctly.

System Info :computer:

Backtrace :paw_prints:

Debugger entered--Lisp error: (wrong-number-of-arguments (lambda nil "Assure the mode-line is loaded before restoring the layouts." (advice-remove 'persp-load-state-from-file 'spacemacs//layout-wait-for-modeline) (if (and (configuration-layer/package-used-p 'spaceline) (memq (spacemacs/get-mode-line-theme-name) '(spacemacs all-the-icons custom))) (progn (require 'spaceline-config)))) 1)
  spacemacs//layout-wait-for-modeline("/home/rob/.emacs.d/.cache/layouts/lh-openmrs")
  apply(spacemacs//layout-wait-for-modeline "/home/rob/.emacs.d/.cache/layouts/lh-openmrs")
  persp-load-state-from-file("/home/rob/.emacs.d/.cache/layouts/lh-openmrs")
  funcall-interactively(persp-load-state-from-file "/home/rob/.emacs.d/.cache/layouts/lh-openmrs")
  call-interactively(persp-load-state-from-file)
  hydra--call-interactively-remap-maybe(persp-load-state-from-file)
  (progn (setq this-command 'persp-load-state-from-file) (hydra--call-interactively-remap-maybe #'persp-load-state-from-file))
  spacemacs
robbyoconnor commented 6 years ago

Dupe of #10979 -- sorry.