Skip to content

Prevent outdated Bundler errors from crashing launcher #3552

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

Merged

Conversation

vinistock
Copy link
Member

@vinistock vinistock commented May 28, 2025

Motivation

The following scenario is currently possible:

  1. Launch the LSP and get a bundle install failure. We Marshal the error object into the install_error file
  2. The user upgrades/downgrades Bundler. The class no longer exists or was moved
  3. Now trying to Marshal load install_error is guaranteed to fail with an ArgumentError

We should protect the launching mechanism against this.

Implementation

If an ArgumentError happens while trying to Marshal load, I just started deleting the install_error file so that we recover on the next launch.

Copy link
Member Author


How to use the Graphite Merge Queue

Add the label graphite-merge to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vinistock vinistock self-assigned this May 28, 2025
@vinistock vinistock added server This pull request should be included in the server gem's release notes bugfix This PR will fix an existing bug labels May 28, 2025 — with Graphite App
@vinistock vinistock marked this pull request as ready for review May 28, 2025 21:41
@vinistock vinistock requested a review from a team as a code owner May 28, 2025 21:41
@vinistock vinistock merged commit 6c21adb into main May 29, 2025
44 checks passed
@vinistock vinistock deleted the 05-28-prevent_outdated_bundler_errors_from_crashing_launcher branch May 29, 2025 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This PR will fix an existing bug server This pull request should be included in the server gem's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants