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.

Bytes formatter doesn't respect space separation

See original GitHub issue

Using 0.00b and 0.00 b gives the same output (notice the space), no space separation with the 2nd one. The formatter is using state.currentAbbreviations(), but that doesn’t contain the spaced parameter (and I don’t think you can actually set it.) - it works in tests, however.

Using let options = Object.assign({}, defaultOptions, providedFormat); with options.spaceSeparated makes it work.

Sadly I don’t have time to create a PR, but I hope I could help to get it fixed soon.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
imphilcommented, May 4, 2018

This bug is also visible in the documentation of the v2 API: image

0reactions
jonyeezscommented, Jul 16, 2020

Assuming this is now fixed with #411

Read more comments on GitHub >

github_iconTop Results From Across the Web

python format string thousand separator with spaces
If Python does not respect grouping=True parameter, you can use locale and a workaround (use monetary format): locale.setlocale(locale.LC_ALL, '') locale.
Read more >
Does hexdump respect the endianness of its system?
The traditional BSD hexdump utility uses the platform's endianness, so the output you see means your machine is little-endian.
Read more >
Making Sense of Hexdump | SUSE Communities
Here's something really simple that just outputs the whole table as space separated single byte values in hexadecimal:
Read more >
Encoding | Protocol Buffers - Google Developers
This document describes the protocol buffer wire format, which defines the details of how your message is sent on the wire and how...
Read more >
Understanding Bits, Bytes, and Numerical Bases - Tania Rascia
... by sixteen space-separated, two-column, hexadecimal bytes, followed by the same sixteen bytes in %_p format enclosed in '|' characters.
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