Skip to content

Add manifest loading from files#942

Merged
TwitchBronBron merged 8 commits intorokucommunity:masterfrom
luis-j-soares:feature/get-manifest-dynamic
Dec 4, 2023
Merged

Add manifest loading from files#942
TwitchBronBron merged 8 commits intorokucommunity:masterfrom
luis-j-soares:feature/get-manifest-dynamic

Conversation

@luis-j-soares
Copy link
Collaborator

The program is currently set to load a manifest from the project's root. This isn't very flexible, and it causes some issues for projects which generate their manifests in a pre-compile step, i.e., bs_const values not getting read and causing code blocks to be removed erroneously.

This PR tweaks ProgramBuilder.loadAllFilesAST's logic, to group/filter files and find a manifest in a first pass, then load the manifest into the program, and finally setting typedefs and code files. I've also adjusted the manifest loading to accept a file object, with some slight code refactoring in the mix.

Copy link
Member

@TwitchBronBron TwitchBronBron left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks for your patience.

@TwitchBronBron TwitchBronBron merged commit ae286e0 into rokucommunity:master Dec 4, 2023
@luis-j-soares luis-j-soares deleted the feature/get-manifest-dynamic branch December 7, 2023 23:23
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