eldoc signatures still not working in Java
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- emacs-lisp, java
- Domain
- developer-experience
Research direction
Start with the minimal init.el in the issue and compare eldoc behavior in java-mode with the working behavior in go-mode, including the lsp-eldoc-enable-hover setting. Done means Java variable or method signatures appear in the minibuffer under the reported Emacs 29.3 and lsp-java setup.
Written by the indexing model from the issue text.
Description
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 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
^ the signatures appear in go-mode but not java-mode
- Dominant language
- Emacs Lisp
- Stars
- 696
- Forks
- 97
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from emacs-lsp/lsp-java
-
dap-java discards module paths from resolveClasspath causing JPMS-modular projects fail to launchOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
All issues in emacs-lsp/lsp-java
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
detectors enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
SM260845/readme-gen#1 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
ehmpathy/rhachet-roles-bhuild#407 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
codymikol/multiverse.nvim#330 ·
Maintainers usually reply within 8 days
-
bug cli dx
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
videojs/v10#3001 · 1 comment ·
Maintainers usually reply within 1 day