Skip to content

Confusing error message when calling __log with invalid number of arguments #7072

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

Open
ironcev opened this issue Apr 8, 2025 · 0 comments · May be fixed by #7073
Open

Confusing error message when calling __log with invalid number of arguments #7072

ironcev opened this issue Apr 8, 2025 · 0 comments · May be fixed by #7073
Assignees
Labels
compiler: ui Mostly compiler messages compiler General compiler. Should eventually become more specific as the issue is triaged team:compiler Compiler Team

Comments

@ironcev
Copy link
Member

ironcev commented Apr 8, 2025

E.g., this call:

script;

fn main() {
    __log(1, 2);
}

will result in the following error without any span provided:

error: Function "encode" expects 1 argument but you provided 2.
@ironcev ironcev self-assigned this Apr 8, 2025
@ironcev ironcev added compiler General compiler. Should eventually become more specific as the issue is triaged compiler: ui Mostly compiler messages team:compiler Compiler Team labels Apr 8, 2025
@ironcev ironcev linked a pull request Apr 8, 2025 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler: ui Mostly compiler messages compiler General compiler. Should eventually become more specific as the issue is triaged team:compiler Compiler Team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant