我想在doom 里load eglot-java. 已经在init.el
里开启(lsp +eglot)
了
packages.el:
(package! eglot-java)
然后在config.el:
尝试了
(use-package! eglot-java
:hook (java-mode . eglot-java-mode)
)
打开一个java文件,然后出现如下问题:
Installing Eclipse JDT LSP server, please wait...
Downloading https://download.eclipse.org/jdtls/snapshots/jdt-language-server-latest.tar.gz
to /home/zhot/.config/emacs/.local/cache/share/eclipse.jdt.ls/jdt-language-server-latest.tar.gz.
Contacting host: download.eclipse.org:443
Wrote /home/zhot/.config/emacs/.local/cache/share/eclipse.jdt.ls/jdt-language-server-latest.tar.gz
Extracting Eclipse JDT LSP archive, please wait...
File mode specification error: (void-function tar-untar-buffer)
接着再require了一些包,虽然感觉这些肯定不需要
(use-package! eglot-java
:init
(require 'tar-mode)
(require 'xml)
:hook (java-mode . eglot-java-mode)
)
然后出现了新的问题 File mode specification error: (cl-assertion-failed (not enable-multibyte-characters))
我感觉是doom native comp或者是striaght的一些问题,但很奇怪,没法解决,有知道解决方法的吗?
谢谢!