feat[next]: name program and static args in "no program compiled" error - #2734
Draft
havogt wants to merge 1 commit into
Draft
feat[next]: name program and static args in "no program compiled" error#2734havogt wants to merge 1 commit into
havogt wants to merge 1 commit into
Conversation
The error raised when no compiled variant matches a call only said "No program compiled for this set of static arguments." — neither which program nor which arguments. Add both, plus a note that the variant is also selected by the identity of the 'offset_provider' entries, which is the other common cause of an unexpected miss.
This was referenced Jul 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Draft — stacked on #2733, which is the actual fix. Split out of #2731 (now closed) because this
part is a message improvement and can be dropped independently.
When no compiled variant matches a call, the error said only
— neither which program, nor which arguments, nor that the offset provider takes part in the
selection. In a model with hundreds of programs that is not enough to act on.
Changes
_describe_argument_descriptorsrenders the key's descriptor values against the expressionsthey were extracted from, so it covers both
StaticArg(cond=False) andFieldDomainDescriptor((out).domain=Domain(...)), and yields an empty string when the poolhas no argument descriptors at all.
It deliberately does not use
zip(..., strict=True): this runs while building an errormessage, so a length mismatch must degrade to a shorter description rather than replace the
error the user actually needs — which is the failure mode #2733 exists to remove.
Open question
Is naming the arguments worth the ~15 lines? The "Note that ..." sentence about
offset_provideridentity carries most of the debugging value on its own and would be atwo-line change.
Requirements
Three unit tests in
tests/next_tests/unit_tests/otf_tests/test_compiled_program.py:static arg, static domain, and no argument descriptors.