Skip to content

Unresolve all names when clearing declarations#670

Merged
vinistock merged 1 commit intomainfrom
03-17-unresolve_all_names_when_clearing_declarations
Mar 17, 2026
Merged

Unresolve all names when clearing declarations#670
vinistock merged 1 commit intomainfrom
03-17-unresolve_all_names_when_clearing_declarations

Conversation

@vinistock
Copy link
Copy Markdown
Member

@vinistock vinistock commented Mar 17, 2026

Until we handle incremental changes, we are deleting all declaration information from the graph. However, that's not enough. We also need to unresolve all names, otherwise we could be left with a resolved name that points to a declaration that no longer exists because it was removed between two resolution runs.

This PR adds a test that reproduces a crash we have and starts unresolving all names in clear_declarations. This is temporary code, so I also pointed that out in a comment.

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vinistock vinistock self-assigned this Mar 17, 2026
@vinistock vinistock added the bugfix A change that fixes an existing bug label Mar 17, 2026
@vinistock vinistock marked this pull request as ready for review March 17, 2026 14:19
@vinistock vinistock requested a review from a team as a code owner March 17, 2026 14:19
Comment thread rust/rubydex/src/model/graph.rs Outdated
@vinistock vinistock force-pushed the 03-17-unresolve_all_names_when_clearing_declarations branch from b3994ac to e26c18e Compare March 17, 2026 16:56
@vinistock vinistock enabled auto-merge March 17, 2026 16:56
@vinistock vinistock merged commit 28be6ed into main Mar 17, 2026
31 checks passed
@vinistock vinistock deleted the 03-17-unresolve_all_names_when_clearing_declarations branch March 17, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix A change that fixes an existing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants