Skip to content

Error during redisplay #3791

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

Closed
vinurs opened this issue Mar 19, 2025 · 2 comments · Fixed by #3809
Closed

Error during redisplay #3791

vinurs opened this issue Mar 19, 2025 · 2 comments · Fixed by #3809

Comments

@vinurs
Copy link

vinurs commented Mar 19, 2025

Expect Syntax highlighting works normally,

deps.edn.txt

But Syntax highlighting is not working properly.

Steps to reproduce the problem

cd .emacs.d
mkdir site-lisp; cd site-lisp
git clone https://github.com/clojure-emacs/clojure-ts-mode.git 
git clone https://github.com/clojure-emacs/parseclj.git
git clone https://github.com/clojure-emacs/parseedn.git
git clone https://github.com/Malabarba/spinner.el.git
git clone https://github.com/emacs-straight/queue.git
git clone https://github.com/vspinu/sesman.git
git clone https://github.com/jorgenschaefer/emacs-buttercup.git
git clone https://github.com/clojure-emacs/clojure-mode.git
git clone https://github.com/clojure-emacs/cider.git

and config the init.el

(add-to-list 'treesit-extra-load-path (expand-file-name "tree-sitter/" user-emacs-directory))

(add-to-list 'load-path "~/.emacs.d/site-lisp/clojure-ts-mode")
(add-to-list 'load-path "~/.emacs.d/site-lisp/parseedn")
(add-to-list 'load-path "~/.emacs.d/site-lisp/parseclj")
(add-to-list 'load-path "~/.emacs.d/site-lisp/spinner.el")
(add-to-list 'load-path "~/.emacs.d/site-lisp/queue")
(add-to-list 'load-path "~/.emacs.d/site-lisp/sesman")
(add-to-list 'load-path "~/.emacs.d/site-lisp/emacs-buttercup")
(add-to-list 'load-path "~/.emacs.d/site-lisp/clojure-mode")
(add-to-list 'load-path "~/.emacs.d/site-lisp/cider")
(require 'cider)
(require 'clojure-ts-mode)
(add-to-list 'auto-mode-alist '("\\.edn\\'" . clojure-ts-mode))
(add-hook 'clojure-ts-mode-hook #'cider-mode)

then open the deps.edn, if i uncomment the (add-hook 'clojure-ts-mode-hook #'cider-mode) it doesn't show ok

Image

Image

if i comment the (add-hook 'clojure-ts-mode-hook #'cider-mode) , it shows ok

Image

Environment & Version information

CIDER version information

the latest code in github

Emacs version

GNU Emacs 31.0.50 (build 1, aarch64-apple-darwin24.3.0, NS
appkit-2575.40 Version 15.3.2 (Build 24D81)) of 2025-03-17
Copyright (C) 2025 Free Software Foundation, Inc.

Operating system

macos 15.3.2 (24D81)

@hochata
Copy link

hochata commented Apr 10, 2025

I have the same problem. It only happens for clojure-ts-mode, clojure-mode works fine.

@rrudakov
Copy link
Contributor

I've found the problem, will open a PR with fix shortly.

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

Successfully merging a pull request may close this issue.

3 participants