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

[BUG] smooth-scrolling error on startup #14377

Closed Novite5 closed 3 years ago

Novite5 commented 3 years ago

Description :octocat:

report error on startup

Reproduction guide :beetle:

Observed behaviour: :eyes: :broken_heart: Status line displays red color and report 1 error. In Messages buffer print out: (Spacemacs) Error in dotspacemacs/init: Wrong type argument: symbolp, 'dotspacemacs-smooth-scrolling

System Info :computer:

Backtrace :paw_prints:

Debugger entered--Lisp error: (wrong-type-argument symbolp 'dotspacemacs-smooth-scrolling)
  set-default('dotspacemacs-smooth-scrolling t)
  (progn (set-default 'dotspacemacs-enable-emacs-pdumper nil) (set-default 'dotspacemacs-emacs-pdumper-executable-file "emacs") (set-default 'dotspacemacs-emacs-dumper-dump-file (format "spacemacs-%s.pdmp" emacs-version)) (set-default 'dotspacemacs-elpa-https t) (set-default 'dotspacemacs-elpa-timeout 5) (set-default 'dotspacemacs-gc-cons '(100000000 0.1)) (set-default 'dotspacemacs-read-process-output-max (* 1024 1024)) (set-default 'dotspacemacs-use-spacelpa nil) (set-default 'dotspacemacs-verify-spacelpa-archives t) (set-default 'dotspacemacs-check-for-update nil) (set-default 'dotspacemacs-elpa-subdirectory 'emacs-version) (set-default 'dotspacemacs-editing-style 'vim) (set-default 'dotspacemacs-startup-buffer-show-version t) (set-default 'dotspacemacs-startup-banner 'official) (set-default 'dotspacemacs-startup-lists '((todos . 6) (agenda . 5) (recents-by-project 7 . 5))) (set-default 'dotspacemacs-startup-buffer-responsive t) (set-default 'dotspacemacs-new-empty-buffer-major-mode 'text-mode) (set-default 'dotspacemacs-scratch-mode 'text-mode) (set-default 'dotspacemacs-scratch-buffer-persistent nil) (set-default 'dotspacemacs-scratch-buffer-unkillable nil) (set-default 'dotspacemacs-initial-scratch-message nil) (set-default 'dotspacemacs-themes '(doom-nord doom-one)) (set-default 'dotspacemacs-mode-line-theme '(spacemacs :separator wave :separator-scale 1.5)) (set-default 'dotspacemacs-colorize-cursor-according-to-state t) (set-default 'dotspacemacs-default-font '("Source Code Pro" :size 10.0 :weight normal :width normal)) (set-default 'dotspacemacs-leader-key "SPC") (set-default 'dotspacemacs-emacs-command-key "SPC") (set-default 'dotspacemacs-ex-command-key ":") (set-default 'dotspacemacs-emacs-leader-key "M-m") (set-default 'dotspacemacs-major-mode-leader-key ",") (set-default 'dotspacemacs-major-mode-emacs-leader-key (if window-system "<M-return>" "C-M-m")) (set-default 'dotspacemacs-distinguish-gui-tab nil) (set-default 'dotspacemacs-default-layout-name "Default") (set-default 'dotspacemacs-display-default-layout nil) (set-default 'dotspacemacs-auto-resume-layouts t) (set-default 'dotspacemacs-auto-generate-layout-names nil) (set-default 'dotspacemacs-large-file-size 1) (set-default 'dotspacemacs-auto-save-file-location 'cache) (set-default 'dotspacemacs-max-rollback-slots 5) (set-default 'dotspacemacs-enable-paste-transient-state nil) (set-default 'dotspacemacs-which-key-delay 0.4) (set-default 'dotspacemacs-which-key-position 'bottom) (set-default 'dotspacemacs-switch-to-buffer-prefers-purpose nil) (set-default 'dotspacemacs-loading-progress-bar t) (set-default 'dotspacemacs-fullscreen-at-startup nil) (set-default 'dotspacemacs-fullscreen-use-non-native nil) (set-default 'dotspacemacs-maximized-at-startup t) (set-default 'dotspacemacs-undecorated-at-startup nil) (set-default 'dotspacemacs-active-transparency 90) ...)
  dotspacemacs/init()
  (condition-case err (dotspacemacs/init) ((debug error) (configuration-layer//increment-error-count) (spacemacs-buffer/append (format "Error in %s: %s\n" '"dotspacemacs/init" (error-message-string err)) t)))
  (progn (condition-case err (dotspacemacs/init) ((debug error) (configuration-layer//increment-error-count) (spacemacs-buffer/append (format "Error in %s: %s\n" '"dotspacemacs/init" (error-message-string err)) t))))
  (if (fboundp 'dotspacemacs/init) (progn (condition-case err (dotspacemacs/init) ((debug error) (configuration-layer//increment-error-count) (spacemacs-buffer/append (format "Error in %s: %s\n" '"dotspacemacs/init" (error-message-string err)) t)))))
  (progn (if "Calling dotfile init..." (progn (spacemacs-buffer/message "Calling dotfile init..."))) (if (fboundp 'dotspacemacs/init) (progn (condition-case err (dotspacemacs/init) ((debug error) (configuration-layer//increment-error-count) (spacemacs-buffer/append (format "Error in %s: %s\n" '"dotspacemacs/init" (error-message-string err)) t))))))
  spacemacs/init()
  (let ((file-name-handler-alist nil)) (require 'core-spacemacs) (spacemacs/dump-restore-load-path) (configuration-layer/load-lock-file) (spacemacs/init) (configuration-layer/stable-elpa-init) (configuration-layer/load) (spacemacs-buffer/display-startup-note) (spacemacs/setup-startup-hook) (spacemacs/dump-eval-delayed-functions) (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 (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) (spacemacs/dump-restore-load-path) (configuration-layer/load-lock-file) (spacemacs/init) (configuration-layer/stable-elpa-init) (configuration-layer/load) (spacemacs-buffer/display-startup-note) (spacemacs/setup-startup-hook) (spacemacs/dump-eval-delayed-functions) (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))))))
  eval-buffer(#<buffer  *load*> nil "/home/weber/.emacs.d/init.el" nil t)  ; Reading at buffer position 2531
  load-with-code-conversion("/home/weber/.emacs.d/init.el" "/home/weber/.emacs.d/init.el" t t)
  load("/home/weber/.emacs.d/init" noerror nomessage)
  startup--load-user-init-file(#f(compiled-function () #<bytecode 0x1577a59899d1>) #f(compiled-function () #<bytecode 0x1577a5985a29>) t)
  command-line()
  normal-top-level()
alexey0308 commented 3 years ago

Do you have ' before dotspacemacs-smooth-scrolling by any chance in the dotfile?

Novite5 commented 3 years ago

Do you have ' before dotspacemacs-smooth-scrolling by any chance in the dotfile?

No, but I set dotspacemacs-mode-line-unicode-symbols to 'display-graphic-p' following the comment. Is that wrong? I have tried changing the dotspacemacs-mode-line-unicode-symbols value to t, then the problem got fixed.

alexey0308 commented 3 years ago

just 'display-graphic-p without ' in the end should work (not 'display-graphic-p'), otherwise it affects the next variable, i.e. smooth-scrolling. See help on quoting.

Novite5 commented 3 years ago

just 'display-graphic-p without ' in the end should work (not 'display-graphic-p'), otherwise it affects the next variable, i.e. smooth-scrolling. See help on quoting.

Thank you very much.