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

printf omits line number in error message #4536

Open
p6rt opened this issue Sep 15, 2015 · 3 comments
Open

printf omits line number in error message #4536

p6rt opened this issue Sep 15, 2015 · 3 comments
Labels

Comments

@p6rt
Copy link

@p6rt p6rt commented Sep 15, 2015

Migrated from rt.perl.org#126063 (status was 'new')

Searchable as RT126063$

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented Sep 15, 2015

From @gfldex

say sprintf('%f', 1, 2);
# outputs​: Directives specify 1 argument, but 2 arguments were supplied
# Line number of the offending sprintf call is missing from nqp​::die
# in the sprintf grammar called Syntax in nqp/src/HLL/sprintf.nqp .

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented Jan 4, 2017

From @AlexDaniel

Code​:
printf("%d, %d", 1);

Result​:
Your printf-style directives specify 2 arguments, but 1 argument was supplied
  in any at /home/camelia/rakudo-m-inst-1/share/perl6/runtime/CORE.setting.moarvm line 1

“CORE.setting.moarvm line 1” is not very helpful. I was expecting it to point to the user code (e.g. “at <tmp>​:1”).

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented Jul 17, 2017

From @nkh

m​: printf "%s"
<camelia> rakudo-moar 91be8b​: OUTPUT​: «Your printf-style directives
specify 1 argument, but no argument was supplied␤␤»

@p6rt p6rt added the severe label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.