Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

[fix] prioritize most frequently used JDKs when selecting the project JDK #420

Merged
merged 1 commit into from
Jun 1, 2023

Conversation

lukaszwawrzyk
Copy link
Contributor

@lukaszwawrzyk lukaszwawrzyk commented Jun 1, 2023

Currently JDKs are sorted lexicographically by java home for determinism. Sometimes it can be a problem. when there are 2 JDKs found and one of them is used in nearly all targets and one is used in a few docker related targets that are not relevant. If alphabet is not on your side, you get the wrong JDK (for example wrong architecture) that is not even fetched/resolved fully.
Since JDK resolving is still a heuristic in bazel-bsp, this change should give more useful results usually.

@abrams27 abrams27 changed the title Prioritize most frequently used JDKs when selecting the project JDK [fix] prioritize most frequently used JDKs when selecting the project JDK Jun 1, 2023
Copy link
Member

@abrams27 abrams27 left a comment

Choose a reason for hiding this comment

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

thx

@abrams27 abrams27 merged commit 257d6c7 into JetBrains:master Jun 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants