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.

Terminal is being exploded with repeated log outputs

See original GitHub issue

@akamfoad Describes and show this issue really good below. But there is more to it. When it gets repeated like shown below TaskManager show there is a lot of node.js instances spun up slowing down the computer. It affects the computer so much that it actully makes js-tests (jest) to timeout.

This issue really needs to be addressed otherwise I think this will affect usage. My colleagues are already using the --no-verify flag when commiting.

Please let me know if there is anything I can provide to ease the finding of a solution!

OS: Windows Shell: git bash Git version: 2.37.3 packagemanager: npm

Hi, I have a similar issue but in my case the terminal is being exploded with repeated log output.

OS: Windows
Shell: PowerShell 7.2.6
Git Version: 2.37.1.windows.1

running

yarn lint-staged

Through git hooks (added with husky):

https://user-images.githubusercontent.com/41629832/188649709-a61d2579-319a-487b-b2cf-abb89b75cace.mp4

Directly running the command:

https://user-images.githubusercontent.com/41629832/188650212-0fa8b4ea-bc04-43f7-9c88-1d68045e96a4.mp4

_Originally posted by @akamfoad in https://github.com/typicode/husky/issues/968#issuecomment-1238185342_

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:4
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
gillesdallecommented, Oct 10, 2022

Duplicate bug : https://github.com/okonet/lint-staged/issues/1164 Found a soluition in https://github.com/typicode/husky/issues/968#issuecomment-1176848345 Add exec >/dev/tty 2>&1 before your command lines in pre-commit file.

2reactions
J4v4Scr1ptcommented, Nov 23, 2022

Duplicate bug : okonet/lint-staged#1164 Found a soluition in #968 (comment) Add exec >/dev/tty 2>&1 before your command lines in pre-commit file.

Interesting, will test! Thx m8!

Edit: This does solve the issue. Thanks man for finding this! 🐱‍💻

EditTwo: Well it solved it for me but my colleagues got error instead and we had to remove it… back to square one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding Gradient Clipping (and How It Can Fix ...
Deep dive into exploding gradients problem. For calculating gradients in a Deep Recurrent Networks we use something called Backpropagation through time (BPTT), ...
Read more >
how to redirect terminal output to multiple log files
I've been trying redirect output to logfiles but should NOT be displayed on terminal, but following command does output both on terminal and ......
Read more >
FACTBOX-Incidents and accidents involving Venezuela's ...
* An explosion at an electrical substation at the 640,000 bpd Amuay refinery, Venezuela's largest, injured two workers. * Two drilling barges ...
Read more >
Explosion Proof Hydrocarbon Gas Sensor 0-200 ppm - Analog Output
0-200 ppm - Electrochemical Transmitter - Analog Output - Remote Sensor ... TO AVOID THE RISK OF FIRE, EXPLOSION OR ELECTRIC SHOCK, THIS...
Read more >
echo - Manual - PHP
The major differences to print are that echo accepts multiple arguments and ... because the parentheses are actually part of the expression being...
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