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

Make unprocessable compilers a warning instead of an error #1794

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

paracycle
Copy link
Member

Motivation

Fix #1786

Implementation

Since we change if the compilers are loaded depending on if various constants are defined, running the same tapioca dsl command in different contexts could end up loading a different set of compilers. However, this creates a problem if users are passing in --only or --exclude for compilers with a predetermined set of compiler names, since the set of compiler names could change between runs.

It is better to show a warning that the requested compilers are not available, and continue with the rest of the DSL generation process, rather than erroring out.

Tests

Updates existing tests

Since the we change if the compilers are loaded depending on if various constants are defined, running the same `tapioca dsl` command in different contexts could end up loading a different set of compilers. However, this creates a problem if users are passing in `--only` or `--exclude` for compilers with a predetermined set of compiler names, since the set of compiler names could change between runs.

It is better to show a warning that the requested compilers are not available, and continue with the rest of the DSL generation process, rather than erroring out.
@paracycle paracycle requested a review from a team as a code owner February 12, 2024 16:15
Copy link
Contributor

@egiurleo egiurleo left a comment

Choose a reason for hiding this comment

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

This is a good solution!

@paracycle paracycle merged commit cf7a580 into main Feb 12, 2024
33 checks passed
@paracycle paracycle deleted the uk-warn-for-unprocessable-compilers branch February 12, 2024 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tapioca dsl rejects valid values from --exclude if they are not loaded
2 participants