question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing support of `%*s` in sprintfn

See original GitHub issue

Description

Please provide a succinct description of your issue.

Repro code

On fsi:

> sprintf "%*s^%s" 10 "" "test"
val it : string = "          ^test" 

On Fable:

> sprintf "%*s^%s" 10 "" "test"
val it : string = "%*s^10"

Expected and actual results

We should have the same behavior on both runtime.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
inosikcommented, May 9, 2018
1reaction
inosikcommented, Jan 13, 2021

This was closed with 3923a523d88ca4208bbcb081f58c791a6d3d9730.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does this call to sprintf_s() work, and how can I make ...
I have thus tried replacing it with snprintf() and the original error message disappeared (but please let me know if that was not...
Read more >
sprintf missing one parameter [SOLVED]
Hello, I am having trouble with sprintf. In order to get a second parameter, I must add a middle value (kk) which will...
Read more >
sprintf - Manual
The format string supports argument numbering/swapping. ... $num = 5; $location = 'tree'; $format = 'There are %d monkeys in the %s'; echo...
Read more >
[resolved] sprintf doesn't work with variable number of ...
I currently have a bunch of strings with a variable number of %s's and I know beforehand what each of the parameters will...
Read more >
sprintf format character error
I found a few of these errors in a debug file on one of my web sites that has ninjascanner installed… PHP Fatal...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found