Skip to content

Expand ${workspaceFolder} in bundleGemfile setting#3952

Merged
rafaelfranca merged 3 commits intomainfrom
rmf-fix-3829
Feb 13, 2026
Merged

Expand ${workspaceFolder} in bundleGemfile setting#3952
rafaelfranca merged 3 commits intomainfrom
rmf-fix-3829

Conversation

@rafaelfranca
Copy link
Member

Also validates bundleGemfile existence early in activateRuby so we can givee users a clear error message upfront instead of a confusing shell error later.

Fixes #3829.

VS Code does not auto-expand predefined variables in extension settings
retrieved via getConfiguration(), only in launch.json and tasks.json.
This caused ENOENT errors when users configured bundleGemfile with
${workspaceFolder}. Add an expandPath helper to resolve the variable
before using the path.

Fixes #3829
Move the existence check for the configured bundle gemfile to the top of
activateRuby, before any version manager runs. This consolidates the
validation into a single place and gives users a clear error message
upfront instead of a confusing shell error later.
@rafaelfranca rafaelfranca requested a review from a team as a code owner February 11, 2026 20:12
@rafaelfranca rafaelfranca force-pushed the rmf-fix-3829 branch 2 times, most recently from 07deb02 to a34480b Compare February 11, 2026 20:21
@rafaelfranca rafaelfranca added enhancement New feature or request vscode This pull request should be included in the VS Code extension's release notes labels Feb 11, 2026
@rafaelfranca rafaelfranca force-pushed the rmf-fix-3829 branch 2 times, most recently from 4ca8d9c to dcb2623 Compare February 11, 2026 20:40
Instead of having both Ruby and VersionManager independently read,
expand, and resolve the bundleGemfile setting, Ruby now passes the
resolved value down to VersionManager through the constructor.
@rafaelfranca rafaelfranca merged commit b657a8c into main Feb 13, 2026
37 checks passed
@rafaelfranca rafaelfranca deleted the rmf-fix-3829 branch February 13, 2026 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request 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.

Ruby LSP Extension Fails to Spawn Bash in Dev Container (ENOENT Error)

2 participants