Open idhowardgj94 opened 1 year ago
when I delete lsp-treemacs related use-package, the error gone. maybe it's some error related to lsp-treemacs
I get this same error after reinstalling my doom emacs today. Occured on clang and pyright/pylsp language servers. I don't think it has anything to with the LSP's.
I have been trying to disable whatever command I can to disable lsp-treemacs and treemacs in my config, but it doesn't seem to work. And google/gpt don't tell me how to completely disable treemacs.
In general, the issue is caused by emacs build not supporting svg. We should handle it a bit more gracefully, but if you have the option just go and install a version supporting svg images.
@yyoncho, thanks for quick reply. Unfortunately, I don't. I am using my work's emacs version. I could compile from source, but my remote station doesn't have the dependencies for emacs 28.1. At least idk where they are to put them in my LD path. Interestingly, this error wasn't occurring before with the same emacs version. So it seems like something changed in one of the packages. As much as I love lsp-mode, I had to switch to eglot because nothing I tried would disable the error. I wish it were a bit easier to disable lsp-treemacs or treemacs in lsp-mode.
@saltsucker FYI, I use straight.el to manage my package, it won't load package if you comment out the package you don't want to load. So I just comment out tree macs related in my init.el, then error gone.
But I compile eMacs which support svg by now.
It's turn out that emacs version of gnu emacs seems to have other problems, so I think maybe downgrade treemacs version should work. But I haven't dig into this yet.
Sorry, It's seems a mistake. I install a version without svg support, and this error occur even if I rm all treemacs related package.
ok find out that dap-mode may use treemacs, which cause the error disable dap-mode and error gone.
@saltsucker FYI, I use straight.el to manage my package, it won't load package if you comment out the package you don't want to load. So I just comment out tree macs related in my init.el, then error gone.
But I compile eMacs which support svg by now.
It's turn out that emacs version of gnu emacs seems to have other problems, so I think maybe downgrade treemacs version should work. But I haven't dig into this yet.
ok find out that dap-mode may use treemacs, which cause the error disable dap-mode and error gone.
Yes, I use doom and you can easily not install it by commenting it out in the init.el
. That's a good catch with the dap-mode
. I forgot that is related to lsp.
Confirming that I have the same error with latest 28.2 build of Emacs from the https://emacsformacosx.com/ package, which is built with librsvg. Error seems to trace to treemacs
Found the workaround: https://github.com/Alexander-Miller/treemacs/issues/1017#issuecomment-1515602288
; add below line to init.el
(add-to-list 'image-types 'svg)
@idhowardgj94
@kmgolden many thx, you save my day... days
@kmgolden worked for me. Thanks!
In my case, png
wasn't in my image-types
list. What could cause this?
EDIT: After looking at the GNU emacs manual, I saw that it required libpng
to be installed. This did not fix the issue.
Thank you for the bug report
lsp-mode
related packages.M-x lsp-start-plain
Bug description
I follow the installation guide except I use straight as package manager.
everything work smooth , untill when I want to open lsp-mode via
M-x lsp-mode
or install a new language server via ~M-x lsp-install-serverit give me
Invalid Image type: svg.`Steps to reproduce
my lsp-mode related init file
Expected behavior
work as normal.
Which Language Server did you use?
javascript
OS
Linux
Error callstack
Anything else?
No response