Skip to content

Conversation

Rylan12
Copy link
Member

@Rylan12 Rylan12 commented Jun 12, 2025

To setup the vscode Ruby LSP, the ruby-lsp-activate.sh file is sourced from the user's shell, which is bash on a GitHub Codespace.

In bash, $0 does not return the name of the file being sourced like it does in zsh, so the script doesn’t properly set HOMEBREW_PREFIX. This PR changes how the prefix is set based on the shell being used to properly set up the LSP

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Makes sense, thanks!

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Jun 13, 2025
Merged via the queue into master with commit 5fc7a22 Jun 13, 2025
33 checks passed
@MikeMcQuaid MikeMcQuaid deleted the fix-vscode-ruby-lsp-codespaces branch June 13, 2025 08:09
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.

3 participants