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

Don't show objects as diffable in objdiff if a source file doesn't exist #40

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

TheNathannator
Copy link
Contributor

Somewhat recently in rb3 we filled in our objects list with every file in our splits.txt, so that we didn't have to put in file paths every time a new file was started, and so that we could re-enable config.warn_missing_config. A side-effect of this is that objects in objdiff would always show as red/diffable, even when the corresponding source file is missing. This change fixes that, so that unstarted objects can be distinguished directly at a glance.

This could also be done as a fix on objdiff's side of things, where it ignores the completed metadata if the specified source file doesn't exist, but that would require a lot of IO polling to check that on each config load, which could slow things somewhat notably.

@encounter
Copy link
Owner

Works for me. Thanks!

@encounter encounter merged commit b32dc87 into encounter:main Oct 21, 2024
@TheNathannator TheNathannator deleted the dgfk branch October 21, 2024 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants