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

Use rbenv executable directly if available #2824

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

vinistock
Copy link
Member

Motivation

Closes #2822

I believe the issue the users are facing is similar to #2791, where sourcing shell scripts may fail, then Homebrew paths are never properly set up and we can't find the executable.

Let's check for known paths first and prefer those over just the executable name, since this seemed to improve the situation for Shadowenv.

Implementation

I extracted a more generic implementation to the parent class and started using it for both Shadowenv and rbenv. If the executables exist in known paths, we use those directly without counting that they will be available in the PATH.

@vinistock vinistock added bugfix This PR will fix an existing bug vscode This pull request should be included in the VS Code extension's release notes labels Nov 4, 2024
@vinistock vinistock self-assigned this Nov 4, 2024
@vinistock vinistock requested a review from a team as a code owner November 4, 2024 19:42
@vinistock vinistock merged commit e39ca68 into main Nov 5, 2024
37 checks passed
@vinistock vinistock deleted the vs-use-rbenv-executable-directly branch November 5, 2024 15:18
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 vscode This pull request should be included in the VS Code extension's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

command not found: rbenv
2 participants