ITADN

eldoc signatures still not working in Java

#481Opensdhoward 创建于 2024-06-24
S
sdhowardcommented
**Describe the bug** I have Emacs 29.3 on MacOS, and lsp-java 20240524.2207 installed from Melpa. Within the past year, perhaps in an older Emacs or an older lsp-mode, the type signature of the Java variable or method would appear, in the fixed-pitch font, in the minibuffer, when the cursor was over the function name. There was no mouse hovering or UI involved. In fact, I still have this behavior in lsp-mode for Golang variables and functions. A screenshot is attached. If I set `lsp-eldoc-enable-hover` to `nil`, the behavior in Golang mode becomes disabled. So I think this feature is related to eldoc. I read one recent [bug report](https://github.com/emacs-lsp/lsp-java/issues/476) and I installed the fixed version that was released and it's not resolving my issue. Please help to point out which setting re-enables this, or whether a regression has appeared. Thanks. **To Reproduce** The simple init.el that I use to reproduce this is: ``` (require 'package) (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) (package-initialize) (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(package-selected-packages '(go-mode lsp-java))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) ``` **Screenshots** <img width="241" alt="Screenshot 2024-06-23 at 00 39 28" src="https://github.com/emacs-lsp/lsp-java/assets/2431708/36184e90-7387-4158-a809-d6c05fed5fa5"> ^ the signatures appear in go-mode but not java-mode
2 条评论