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

Only load install error instance after requiring Bundler #3043

Merged

Conversation

vinistock
Copy link
Member

@vinistock vinistock commented Jan 10, 2025

Motivation

Closes #3038, closes #3042

I made a mistake in #3033. We cannot invoke Marshal.load before requiring Bundler, because then the error classes that we're trying to load will not be defined.

Implementation

Moved the install_error handling after requiring Bundler and ensured that the local variable is available within scope for instantiating the server at the end of the file.

@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 Jan 10, 2025 — with Graphite App
Copy link
Member Author

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

@vinistock vinistock requested review from andyw8 and st0012 January 10, 2025 16:20
@vinistock vinistock marked this pull request as ready for review January 10, 2025 16:22
@vinistock vinistock requested a review from a team as a code owner January 10, 2025 16:22
@vinistock vinistock merged commit 73bb795 into main Jan 10, 2025
44 checks passed
Copy link
Member Author

Merge activity

  • Jan 10, 4:23 PM EST: A user merged this pull request with Graphite.

@vinistock vinistock deleted the 01-10-only_load_install_error_instance_after_requiring_bundler branch January 10, 2025 21:23
@krcm0209
Copy link

@vinistock Does this look like something which would be fixed once this is released?
image

@vinistock
Copy link
Member Author

That looks like #3046. The crash should be fixed in v0.23.5.

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.

Failed starting ruby-lsp vscode plugin
3 participants