Skip to content

Conversation

@st0012
Copy link
Member

@st0012 st0012 commented Aug 16, 2024

Fixes #420

This PR also fixes the CI failure with Rails main Gemfile.

@st0012 st0012 added the bugfix This PR fixes an existing bug label Aug 16, 2024
@st0012 st0012 self-assigned this Aug 16, 2024
@st0012 st0012 requested a review from a team as a code owner August 16, 2024 19:35
@st0012 st0012 requested review from andyw8 and vinistock August 16, 2024 19:35
end

# Clear the cache so that we get the latest associations.
const.clear_reflections_cache
Copy link
Member

Choose a reason for hiding this comment

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

This approach would mean that we essentially never have reflections cached. Do we know how expensive that could be?

Would it be worth trying to only clear the cache based on file modifications, similar to how we handle reloading on schema changes?


gem "puma"
gem "sqlite3", "< 2"
gem "sqlite3"
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we still need the constraint in the main Gemfile?

@st0012
Copy link
Member Author

st0012 commented Aug 27, 2025

I don't have time to continue this PR atm so closing it now.

@st0012 st0012 closed this Aug 27, 2025
@st0012 st0012 deleted the fix-#420 branch August 27, 2025 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix This PR fixes an existing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

go-to-definition for new associations doesn't work until Ruby LSP is restarted

3 participants