Feature: lsp-doctor to include check for lsp-java-java-path
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- emacs-lisp, java
- Domain
- developer-experience
Research direction
Start at the lsp-doctor entry point and inspect how lsp-java-java-path is handled when lsp-java is loaded. Reproduce the missing-runtime configuration from the issue and make the doctor report whether the configured Java path exists, matching the expected diagnostic wording.
Written by the indexing model from the issue text.
Description
Describe the bug
I spent hours debugging why Emacs failed to give me the full LSP experience. It only said:
make-process--with-editor-process-filter: Doing vfork: No such file or directory
I could find no log/error/message buffer that gave me a hint as to what file or directory that wasn't found. The way I found out, was to bisecting my .emacs.
I thus believe it would be a great improvement if lsp-doctor could check if the Java runtime could be found (when lsp-java has been loaded)
To Reproduce
;; insert the quick start guide .emacs snippet from the README.md
;; then, set a non-existing Java path
(setq lsp-java-java-path "/usr/lib/jvm/java-does-NOT-exist-openjdk/bin/java")
Expected behavior
The doctor should find what's wrong (granted lsp-java is loaded):
M-x lsp-doctor
..
lsp-java could find valid Java runtime: NOT (/usr/lib/jvm/java-does-NOT-exist-openjdk/bin/java does not exist, configure lsp-java-java-path to point to a valid java runtime).
- 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
-
namespace operations
Difficulty 1/5 Under an hour Newbie friendliness 82/100
EclipseFdn/open-vsx.org#13573 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HenriquesLab/rxiv-maker#335 ·
-
agent-butler-finding bug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
jordansmall/spindrift#4143 ·
Maintainers usually reply within 1 day
-
`TypeError: '<=' not supported between instances of 'NoneType' and 'int'` when checking metaclassesOpenNeeds triage :inbox_tray:
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
pylint-dev/pylint#11511 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
grikomsn/openai-oauth-copilot-chat#61 ·
Maintainers usually reply within 1 day