Skip to content

Conversation

mahinshaw
Copy link
Contributor

This adds functionality to check for java 9+ and insert options as documented on the eclipse.jdt.ls readme. The arguments, which are pulled from the readme, are inserted into the start command if the java -version is greater than 9.

lsp-java.el Outdated

(defun lsp-java--get-java-version ()
"Retrieve the java version from shell command."
(let* ((java-version-output (shell-command-to-string "java -version"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You must use lsp-java-java-path not "java"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@yyoncho
Copy link
Member

yyoncho commented Oct 7, 2018

Thanks, looks good! Can you squash the commits in a single commit, and I will merge it?

@mahinshaw
Copy link
Contributor Author

Squashed. Thanks for being so responsive.

@yyoncho yyoncho merged commit 46df18d into emacs-lsp:master Oct 7, 2018
@mahinshaw mahinshaw deleted the java-9 branch October 7, 2018 06:38
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

Successfully merging this pull request may close these issues.

2 participants