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.

Option to Disable Truncation / Empty Line removal?

See original GitHub issue

Hi there! 👋

First of all, thanks for your contribution of listr2 to the community! This is a great library, and saves a bunch of boilerplate!

I am a bit confused with listr2’s behavior of truncating and removing empty lines in my errors. The content and the formatting that I’m writing in the errors is important, and I would like it to stay the same.

See the error in the source code and the formatting in the terminal. The first line of the error is truncated and the empty line is removed:

Screen Shot 2021-01-16 at 16 54 57

Here are our options:

{
  exitOnError: false,
  rendererOptions: { collapseErrors: false },
  concurrent: 5,
}

It seems like this could also be a default for listr2, but maybe there’s a reason why that’s not a good idea.

cc @Josehower

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:20 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
karlhorkycommented, Jan 22, 2021

Nice, just tested formatOutput: 'wrap' and it seems to be working:

Screen Shot 2021-01-20 at 17 47 26

Thumbs-up from me on release! 🚀

Edit: I guess I didn’t test removeEmptyLines: false, but will do so as well!

Edit 2: removeEmptyLines: false also works properly 🙌

1reaction
cenk1cenk2commented, Jan 19, 2021

Yes, that is exactly true.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to completely remove truncation symbol (default '$') from ...
I found a solution by "abusing" the display table. In the below solution, msg is a string whose length is window width +1...
Read more >
Remove All Empty Lines from Text - Online Text Tools
Super simple, free and fast browser-based utility for removing empty lines from text. Just paste your text and it'll instantly get empty lines...
Read more >
How to stop intellij-idea from removing white spaces at end of ...
Go to File->Settings->Editor->General and under Other, set the drop down next to Strip trailing spaces on Save to whatever you wish.
Read more >
File download - Need to truncate the last empty line
Hi all, 1. I have a file in Application Server (Tcode - AL11). 2. Using Open, Read & Close dataset - I am...
Read more >
TRUNCATE TABLE
Removing rows with the TRUNCATE TABLE statement can be faster than removing all rows with the DELETE statement, especially if the table has...
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