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

Verify that java.jdt.ls.java.home meets minimum JRE requirement. #2512

Merged
merged 1 commit into from
Jun 17, 2022

Conversation

rgrunber
Copy link
Member

@rgrunber rgrunber commented Jun 15, 2022

  1. Set java.jdt.ls.java.home to some value (eg. /usr/lib/jvm/java-11-openjdk/).
  2. Import some project
  3. Result below :
    java-jdt-ls-java-home-fails
  • java.jdt.ls.java.home should only be used if it meets the minimum JRE
    requirement
  • Default to the embedded JRE (if available) otherwise

Signed-off-by: Roland Grunberg rgrunber@redhat.com

@fbricon , @testforstephen , let me know if I've missed something here.

Update : Maybe there's an argument to be made for a notification given that we're ignoring the expected behaviour (of using the java.jdt.ls.java.home value) ?

Copy link
Collaborator

@testforstephen testforstephen left a comment

Choose a reason for hiding this comment

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

Maybe there's an argument to be made for a notification given that we're ignoring the expected behaviour (of using the java.jdt.ls.java.home value) ?

Agree. It makes sense to display such a notification. Also, for a workspace, we should only display it once.

@rgrunber
Copy link
Member Author

Maybe there's an argument to be made for a notification given that we're ignoring the expected behaviour (of using the java.jdt.ls.java.home value) ?

Agree. It makes sense to display such a notification. Also, for a workspace, we should only display it once.

Ok, I will add this in before merging.

- java.jdt.ls.java.home should only be used if it meets the minimum JRE
  requirement
- Default to the embedded JRE (if available) otherwise
- Display one-time notification message to inform that JVM set within
  'java.jdt.ls.java.home' could not be used

Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
@rgrunber rgrunber added this to the End June 2022 milestone Jun 17, 2022
@rgrunber rgrunber added the bug label Jun 17, 2022
@rgrunber rgrunber merged commit 3cdbb5e into redhat-developer:master Jun 17, 2022
@rgrunber rgrunber deleted the validate-java-home branch June 17, 2022 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants