Skip to content

Invalid face box when starting in debug mode #3596

Closed
@Panadestein

Description

@Panadestein

Hello, after updating to the latest version of cider, I get an error when starting Emacs. I am using straight.el, and the latest comit from master.

Expected behavior

I expect Emacs and Cider to initialize without errors.

Actual behavior

This is the backtrace:

Debugger entered--Lisp error: (error "Invalid face box" :line-width -1 :color base5)
  set-face-attribute(cider-result-overlay-face #<frame *scratch* - GNU Emacs at cyrus 0xe51720> :background "#23272e" :box (:line-width -1 :color base5))
  face-spec-set-2(cider-result-overlay-face #<frame *scratch* - GNU Emacs at cyrus 0xe51720> (:background "#23272e" :box (:line-width -1 :color base5)))
  face-spec-recalc(cider-result-overlay-face #<frame *scratch* - GNU Emacs at cyrus 0xe51720>)
  face-spec-set(cider-result-overlay-face ((((class color) (background light)) :background "grey90" :box (:line-width -1 :color "yellow")) (((class color) (background dark)) :background "grey10" :box (:line-width -1 :color "black"))) face-defface-spec)
  custom-declare-face(cider-result-overlay-face ((((class color) (background light)) :background "grey90" :box (:line-width -1 :color "yellow")) (((class color) (background dark)) :background "grey10" :box (:line-width -1 :color "black"))) "Face used to display evaluation results at the end of line.\nIf `cider-overlays-use-font-lock' is non-nil, this face is\napplied with lower priority than the syntax highlighting." :group cider :package-version (cider "0.9.1"))
  load-with-code-conversion("/home/loren/.emacs.d/straight/build/cider/cider-overlays.el" "/home/loren/.emacs.d/straight/build/cider/cider-overlays.el" nil t)
  require(cider-overlays)
  load-with-code-conversion("/home/loren/.emacs.d/straight/build/cider/cider-test.el" "/home/loren/.emacs.d/straight/build/cider/cider-test.el" nil t)
  require(cider-test)
  load-with-code-conversion("/home/loren/.emacs.d/straight/build/cider/cider-repl.el" "/home/loren/.emacs.d/straight/build/cider/cider-repl.el" nil t)
  require(cider-repl)
  load-with-code-conversion("/home/loren/.emacs.d/straight/build/cider/cider.el" "/home/loren/.emacs.d/straight/build/cider/cider.el" t t)
  require(cider nil t)
  (not (require 'cider nil t))
  (if (not (require 'cider nil t)) (display-warning 'use-package (format "Cannot load %s" 'cider) :error) (condition-case err (progn (progn (setq nrepl-log-messages t) (setq cider-font-lock-dynamically '(macro core function var)) (setq cider-overlays-use-font-lock t)) t) ((debug error) (funcall use-package--warning80 :config err))))
  (condition-case err (if (not (require 'cider nil t)) (display-warning 'use-package (format "Cannot load %s" 'cider) :error) (condition-case err (progn (progn (setq nrepl-log-messages t) (setq cider-font-lock-dynamically '(macro core function var)) (setq cider-overlays-use-font-lock t)) t) ((debug error) (funcall use-package--warning80 :config err)))) ((debug error) (funcall use-package--warning80 :catch err)))
  load-with-code-conversion("/home/loren/.emacs.d/init.el" "/home/loren/.emacs.d/init.el" t t)
  load("/home/loren/.emacs.d/init" noerror nomessage)
  startup--load-user-init-file(#f(compiled-function () #<bytecode -0x44b8bda67495314>) #f(compiled-function () #<bytecode -0x1f3c61addc086335>) t)
  command-line()
  normal-top-level()

Steps to reproduce the problem

  1. Run emacs --debug-init
  2. The error hits you

Environment & Version information

CIDER version information

;; CIDER 1.13.0-snapshot (package: 1.13.0-snapshot), nREPL 1.0.0
;; Clojure 1.11.1, Java 17.0.7

Lein / Clojure CLI version

Clojure CLI version 1.11.1.1413

Emacs version

GNU Emacs 30.0.50

Operating system

NixOS unstable flake

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions