Skip to content

Use ensure_compiled! instead of ensure_loaded? on map typespec macro#405

Merged
whatyouhide merged 1 commit intomainfrom
fix/ensure-compiled
Apr 25, 2025
Merged

Use ensure_compiled! instead of ensure_loaded? on map typespec macro#405
whatyouhide merged 1 commit intomainfrom
fix/ensure-compiled

Conversation

@v0idpwn
Copy link
Copy Markdown
Collaborator

@v0idpwn v0idpwn commented Apr 22, 2025

Instead of raising, holds the file compilation until the module is available.

Solves compilation issue when using one_file_per_module=true and map types, where it would raise due to Code.ensure_loaded? returning false for a module that wasn't compiled yet.

@v0idpwn v0idpwn requested a review from whatyouhide April 22, 2025 19:31
Comment thread .github/workflows/latest_conformance.yml Outdated
Comment thread .github/workflows/main.yml
Instead of raising, holds the file compilation until the module is
available.

Solves compilation issue when using `one_file_per_module=true` and map types,
where it would raise due to `Code.ensure_loaded?` returning false for a
module that wasn't compiled yet.

Co-authored-by: Yordis Prieto <yordis.prieto@gmail.com>
@v0idpwn v0idpwn force-pushed the fix/ensure-compiled branch from e8d8d7f to 23aa060 Compare April 24, 2025 18:24
@v0idpwn
Copy link
Copy Markdown
Collaborator Author

v0idpwn commented Apr 24, 2025

Merged the CI changes (with your comments fixed) on #407 and rebased this one.

@whatyouhide whatyouhide merged commit 12fba10 into main Apr 25, 2025
4 checks passed
@whatyouhide whatyouhide deleted the fix/ensure-compiled branch April 25, 2025 06:44
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.

3 participants