-
Notifications
You must be signed in to change notification settings - Fork 151
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
Error after updating to latest: "root-closed" icon is not loaded when using doom theme for treemacs #752
Comments
That's a new icon added recently. It's defined right here: https://github.com/Alexander-Miller/treemacs/blob/master/src/elisp/treemacs-icons.el#L261, so its value should be non-nil in treemacs buffers. I cannot reproduce this locally so let's start with the basics: reinstall treemacs and restart Emacs. If that doesn't help check if evaluating these lines does: (treemacs-create-icon :file "vsc/root-closed.png" :extensions (root-closed) :fallback "")
(treemacs-create-icon :file "vsc/root-open.png" :extensions (root-open) :fallback "") |
Thanks for the prompt response @Alexander-Miller. As you mention, the problem appears to be that the variable |
Uninstall and reinstall (with restarts) sadly did not help. I then ran the commands you supplied:
Seems like something is amiss in my machine with the creation of the default theme somehow... |
And this does not look to healthy, right?
|
What's the value of
icons-dir is a let-bound variable from the |
Yes, sorry, I'm very basic at elisp :-) but however, I now think I got edebug working and I am debugging through the function and checking the values of the variables. Bear with me and I'll give you some more details. With regards to |
Aha, could it be that the doom theme does not have this icon? |
root-closed
icon is not loaded when using doom theme for treemacs
root-closed
icon is not loaded when using doom theme for treemacs
On the plus side, may I just say, these new icons look very swanky :-) great job, it looks very nice! I think I'll remove the doom theme altogether in favour of the default! :-) |
Yes, that's the problem. The change needs to be reported upstream. I hadn't considered that other themes would need to know about the icon, so there's no fallback. But even if there was, the basic "root" icon is now obsolete, so I would want to remove the fallback eventually. So this update inconvenience would only be postponed not solved. Might as well get if over with sooner instead of later. I'll go report this upstream with doom. If you do decide to keep using doom in the meatime here's a workaround: (-let [root (ht-get (treemacs-theme->gui-icons treemacs--current-theme) 'root)]
(treemacs-modify-theme "doom-atom"
:config
(progn
(treemacs-create-icon :icon root :extensions (root-closed) :fallback "")
(treemacs-create-icon :icon root :extensions (root-open) :fallback "")))) |
Actually, your default theme looks far cooler so I'm now sticking to that :-D Thanks very much for all your help and for the very quick turnaround. I'll close the ticket as I am now a happy customer, but feel free to reopen if as required. |
Hi treemacs developers,
thanks very much for a great package. This morning I updated my packages to latest, getting the following versions:
My emacs version is the standard one on Debian testing:
After the update, when I try to start treemacs I get:
Turning on debug on errors, I see (with
PATH_TO_PROJECTS
replacing the actual paths for brevity):I tried debugging and the problem appears to be coming from this line:
I will continue to investigate, but any ideas on what could be causing this are appreciated.
Many thanks for your time.
The text was updated successfully, but these errors were encountered: