Closed astenman closed 4 years ago
Probably the check if lsp-treemacs
is installed, is incorrect, I'll take a look later today, thanks for the report!
Probably the check if
lsp-treemacs
is installed,
we should fallback gracefully if lsp-treemacs is not installed.
Weird, that's already happening @yyoncho here, when returning nil, we just don't use the icon
@astenman are you sure that you don't have lsp-treemacs installed? Because the issue might be caused by your emacs compiled without png support.
Hello,
It seems that I have lsp-treemacs installed after all (although I do not use it). I have png-support compiled in. But also imagemagick, which might cause problems in this case.
Is it possible to force the use of all-the-icons instead of png?
Thank you for the good work!
Kind regards /Anders
On Tue, Jun 30, 2020 at 7:24 PM Ivan Yonchovski notifications@github.com wrote:
@astenman https://github.com/astenman are you sure that you don't have lsp-treemacs installed? Because the issue might be caused by your emacs compiled without png support.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/emacs-lsp/lsp-mode/issues/1858#issuecomment-651933944, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKNTBQTH45QQ4LWK7YZHUFLRZINTXANCNFSM4OMEBASQ .
Treemacs supports themes but AFAIK treemacs does not come with all-the-icons-theme OOTB. Doom emacs has such theme but we have to implement it in lsp-treemacs as well. There is this: https://github.com/emacs-lsp/lsp-treemacs/issues/18
Meanwhile, to diagnose the issue, can you check what are the paths when you do
(treemacs-get-icon-value (lsp-treemacs-symbol-kind->icon 6))
Also, are you using native compilation? I think that it was causing some issues with icon paths.
This does not fix the problem, but it's somehow related: https://github.com/emacs-lsp/lsp-mode/pull/1860
Recompiling emacs without ImageMagick solved the problem.
Sorry to resurrect an old issue, but this does still seem to be a problem. If lsp-treemacs
is not installed, icons don't appear.
For extra context, I'm on Doom, and adding (treemacs +lsp)
to my init.el
makes icons appear.
@fosskers we use lsp-treemacs if it is present. Then we fallback to all-the-icons. If you have installed all-the-icons make sure that you have installed the fonts as well. If neither is installed we don't display icons.
Hm, I'm on master
of lsp-mode
, lsp-ui
, and all-the-icons
, but the icons still don't appear. I removed lsp-treemacs
completely to be sure.
Have you installed all-the-icons fonts? @ericdallo - can you confirm that all-the-icons work on doom?
I have them installed both via all-the-icons-install-fonts
and via my package manager just in case.
I should say that all-the-icons
works fine elsewhere for providing icons (like in the modeline), but for some reason not in the lsp-ui
headerline.
@yyoncho I use all-the-icons on doom and it works pretty well with breadcrumb 🤔
@yyoncho I use all-the-icons on doom and it works pretty well with breadcrumb thinking
Do you have (treemacs +lsp)
on or off?
Then that's what does it. I have you have it off, the icons won't appear, even though there is supposed to be a fallback (see above).
I'm having the same problem. Installing lsp-treemacs fixes it, but it doesn't work with just all-the-icons
I've created a more specific issue for "icons showing but aren't all-the-icons": https://github.com/emacs-lsp/lsp-treemacs/issues/115
M-x all-the-icons-install-fonts
and restarting Emacs fixed it for me. Hope this helps.
That commands downloads the fonts successfully but my headerline is unfortunately still iconless.
Did you have eventual success?
Not here, no.
Funny enough, it doesn't even work for me if I have lsp-treemacs installed. I use emacs-mac with imagemagick (it doesn't work without it either) and I don't get them to show up at all. I tried unpinning lsp-treemacs as well as lsp-mode, still nothing. Running
(treemacs-get-icon-value (lsp-treemacs-symbol-kind->icon 6))
even shows something, so the problem is not with getting the icons.
Describe the bug Icons for headerline breadcrumb are missing if lsp-treemacs is not installed
To Reproduce Use latest lsp-mode without lsp-treemacs
Expected behavior Something else than the empty boxes should be shown
Which Language Server did you use PHP Intelephense
OS Windows 10