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

bazel-bsp server auto-update based on configured version #30

Merged
merged 1 commit into from
Dec 27, 2024

Conversation

mnoah1
Copy link
Collaborator

@mnoah1 mnoah1 commented Dec 27, 2024

Add a version check during the server initialization process. When the installed version does not match what is configured in VS Code settings (bazelbsp.serverVersion), the installer will be run to get the required version. This will ensure that a user's installed bazel-bsp version stays in sync with the version expected by this extension.

Also update jdk version used by Coursier as newer versions of bazel-bsp require Java 17+, to get this working. As a follow-up we can add in some additional logic here to depend on system Java where its version is new enough.

@mnoah1 mnoah1 marked this pull request as ready for review December 27, 2024 00:09
Copy link
Collaborator

@shuklahy shuklahy left a comment

Choose a reason for hiding this comment

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

LGTM

@mnoah1 mnoah1 merged commit 5242513 into uber:main Dec 27, 2024
4 checks passed
@mnoah1 mnoah1 deleted the version-check branch December 27, 2024 19:45
@shuklahy shuklahy mentioned this pull request Jan 2, 2025
mnoah1 added a commit that referenced this pull request Jan 7, 2025
Updates the default bazel-bsp server version that gets installed by this
extension. There is also a new feature flags data field in the
initialization request that needs to be set here (currently only Python
is behind a flag, Java is always enabled).

This version is necessary to support newly added debug support via the
test explorer. With the newly added changes in
#30, users that have a
different version than the one specified will be auto-updated to the
matching version.

Verified core extension workflows with this version:
- Syncing test targets
- Run with/without coverage
- Run with debug
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