Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: lsp-doctor to include check for lsp-java-java-path #479

Open
skybert opened this issue Jun 5, 2024 · 0 comments
Open

Feature: lsp-doctor to include check for lsp-java-java-path #479

skybert opened this issue Jun 5, 2024 · 0 comments

Comments

@skybert
Copy link
Contributor

skybert commented Jun 5, 2024

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).
@skybert skybert changed the title lsp-doctor to incldue check for lsp-java-java-path Feature: lsp-doctor to include check for lsp-java-java-path Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant