Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid face box when starting in debug mode #3596

Open
Panadestein opened this issue Dec 6, 2023 · 1 comment
Open

Invalid face box when starting in debug mode #3596

Panadestein opened this issue Dec 6, 2023 · 1 comment

Comments

@Panadestein
Copy link

Panadestein commented Dec 6, 2023

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

@vemv
Copy link
Member

vemv commented Dec 6, 2023

Thanks for the report!

Have you tried with Emacs 29?

(make sure to remove .elc files after switching versions)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants