Skip to content

fix: remove doubled ? in missing-argument hint - #6137

Open
prql-bot wants to merge 1 commit into
mainfrom
fix/hint-double-question-mark
Open

fix: remove doubled ? in missing-argument hint#6137
prql-bot wants to merge 1 commit into
mainfrom
fix/hint-double-question-mark

Conversation

@prql-bot

@prql-bot prql-bot commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

When a function value is used where a value was expected, the compiler adds a hint built from format!("Argument might be missing {to_what}?"). The named branch produces to_what = "to function std.group", which reads correctly. The fallback branch — used when the function type carries no name hint — already ended in ?, so the two combined into a doubled ??:

$ printf 'from x | select (std.not)' | prqlc compile -
...
   │ Help: Argument might be missing in this function call??

Dropping the ? from the fallback string leaves the one supplied by the format!. No existing snapshot covered this branch, so a test is added alongside the fix. Found during the nightly survey of prqlc/prqlc/src/semantic/resolver/.

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.

1 participant