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

[WIP] [Tapioca Addon] Optimized gem RBI generation Exploration #2121

Draft
wants to merge 11 commits into
base: ar/gem-regeneration-git-status
Choose a base branch
from

Conversation

alexcrocha
Copy link
Contributor

WIP Exploration

Motivation

Soon™

Implementation

Tests

alexcrocha and others added 11 commits November 27, 2024 14:57
To support gem RBI generation, we needed a way to detect changes in
Gemfile.lock. Currently, changes to this file cause the Ruby LSP to
restart, resulting in loss of access to any previous state information.

By running git diff on Gemfile.lock, we can detect changes to the file,
and trigger the gem RBI generation process.

Then we can parse the diff output to determine which gems have been
removed, added or modified, and either remove the corresponding RBI
files or trigger the RBI generation process for the gems.
@alexcrocha alexcrocha added the enhancement New feature or request label Dec 10, 2024
@alexcrocha alexcrocha force-pushed the ar/gem-regeneration-git-status branch 3 times, most recently from b28ebb0 to 3ab954c Compare December 18, 2024 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants