Skip to content

WIP: Ensure sorbet-runtime available for runner #340

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

Closed

Conversation

andyw8
Copy link
Contributor

@andyw8 andyw8 commented Apr 16, 2024

Alternative fix for #336. Still to test.

@andyw8 andyw8 force-pushed the andyw8/ensure-sorbet-runtime-available-for-runner branch from 601db3e to 6ab6835 Compare April 16, 2024 19:20
@andyw8
Copy link
Contributor Author

andyw8 commented Apr 16, 2024

@vinistock this a little tricky to test because if I edit ".ruby-lsp/Gemfile" it will be overwritten when the LSP restarts... I seem to remember there was some workaround for that?


# TODO: fix signature
stdin, stdout, stderr, wait_thread = T.unsafe(Open3).popen3(
env,
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if we can't simply pass ENV here and have it inherit the entire environment.

That would also make it easier to test, you could just add a bogus ENV value and verify that popen3 gets invoked with it.

@andyw8
Copy link
Contributor Author

andyw8 commented May 1, 2024

We went with #339 instead.

@andyw8 andyw8 closed this May 1, 2024
@vinistock vinistock deleted the andyw8/ensure-sorbet-runtime-available-for-runner branch April 10, 2025 16:25
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