Skip to content

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

Merged
kgutwin merged 2 commits into
mainfrom
fix/hint-double-question-mark
Aug 10, 2026
Merged

fix: remove doubled ? in missing-argument hint#6137
kgutwin merged 2 commits 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/.

@kgutwin
kgutwin enabled auto-merge (squash) August 10, 2026 13:58
@kgutwin
kgutwin merged commit e3bf9be into main Aug 10, 2026
35 checks passed
@kgutwin
kgutwin deleted the fix/hint-double-question-mark branch August 10, 2026 14:02
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