ema2159 / centaur-tabs

Emacs plugin aiming to become an aesthetic, modern looking tabs plugin
GNU General Public License v3.0
727 stars 50 forks source link

Error during redisplay: (eval (centaur-tabs-line)) signaled (wrong-type-argument stringp (Git "~/project")) #188

Closed anildigital closed 1 year ago

anildigital commented 2 years ago

I see this when I do

M-x counsel-ag then pass "def load(, )" as value

Looks like sometimes in centaur-tabs-line fails. If this can be fixed.

Error during redisplay: (eval (centaur-tabs-line)) signaled (wrong-type-argument stringp (Git "~/project")) 

Thanks!

artemkovalyov commented 2 years ago

This issue also bothers me since a couple of days:

Error during redisplay: (eval (centaur-tabs-line)) signaled (wrong-type-argument stringp (Git "/umetra/work/
slackline commented 1 year ago

I've encountered similar with the following showing repeatedly (number of times varies)...

Error during redisplay: (eval (centaur-tabs-line)) signaled (void-function derived-major-mode) [16 times]
anildigital commented 1 year ago

I have disabled centaur-tabs till this issue is resolved.

GeorgesAlkhouri commented 1 year ago

Also happens to me on GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.16.0)

Yanhao commented 1 year ago

Maybe this will help image

anildigital commented 1 year ago

@Yanhao Seems it is working. I didn't see that annoying message yet. Thanks!

anildigital commented 1 year ago

@ema2159 Could you add the fix suggested by @Yanhao Thanks!

ema2159 commented 1 year ago

Hi! I am back. I will review this and push it soon. If I understand correctly this occurs because of recent changes in project.el, though this is for more recent versions of Emacs. I think though that using (nth 2 (project-current)) is not the best idea for backward compatibility reasons. Probably using (car (last (project-current)) is a better idea.

liar666 commented 11 months ago

Maybe this will help image

Couldn't you just publish the code rather than a picture? That would be lighter for the GH platform and easier for the readers/users to copy/apply the modification.