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] Tighten file-api dataclasses #1012

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

LecrisUT
Copy link
Collaborator

@LecrisUT LecrisUT commented Mar 6, 2025

This one also tries to load the Directory object, but it looses the original data from the CodeModel's field. Ideally this should be revisited so that it can inherit the fields if available. My thought is to have them subclassed and pass along all the parent fields. Or more robustly, we should split them into the individual versioned objects, wdyt?

For debugging purposes I've made the file-api failure an error, but should we make that permanent in the future?

@LecrisUT LecrisUT requested a review from henryiii March 6, 2025 12:34
@LecrisUT LecrisUT force-pushed the file-api branch 2 times, most recently from e166471 to 6dade5e Compare March 10, 2025 17:11
@LecrisUT
Copy link
Collaborator Author

I guess this is ready for review. I tried to consider versioned dataclasses, but the lack of kw_only is blocking it. I have tried to backport it, but no luck on either the logic or mypy.

@LecrisUT LecrisUT changed the title feat: Parse CMake file-api during configuration [WIP] Tighten file-api dataclasses Mar 14, 2025
@LecrisUT LecrisUT marked this pull request as draft March 14, 2025 13:06
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