Comments (5)
I saw the same phenomenon.
Adding --debug
seems to solve the errors.
That's strange.
from lint-staged.
P.S.
15.0.0 -> correct
15.1.0 -> segmentation fault
15.2.0 -> segmentation fault
from lint-staged.
The debug mode uses a different Listr2 renderer as seen here:
lint-staged/lib/getRenderer.js
Lines 57 to 64 in 4d4270b
Does it work with --quiet
or TERM=dumb
flags? If so, that would also imply it's something to do with the default renderer.
from lint-staged.
With —quiet
and TERM=dumb
, it works at 15.2.0.
from lint-staged.
Hello,
I came to the same conclusion before coming across this issue because I was searching for one mentioning SIGSEGV
, without success.
I had the same issue. By default, my TERM
environment variable value is xterm-256color
, and running lint-staged
15.2.2 exits with code 1, and the following message is displayed: error Command failed with signal "SIGSEGV"
. It also makes my terminal cursor disappear. I have to run tput cnorm
to make it reappear.
Adding --debug
, or --quiet
, or exporting TERM=dumb
solves the issue.
from lint-staged.
Related Issues (20)
- How to `git reset $file` ? HOT 3
- How to output the print content of the script in lint-staged in real time?
- `npx lint-staged --cwd $PWD` for all OS HOT 6
- Hooks to know if the lint staged commands have completed HOT 4
- Prettier breaks when run through lint-staged on files with dollar sign ($) in the name HOT 6
- Consider allowing running of programatic tasks via Node API HOT 5
- Is it possible to run 2 different configurations for pre-commit and pre-push? HOT 1
- No staged files found. with command "npx lint-staged"
- Hard to understand stashing behavior HOT 2
- Case sensitivity in finding .git root folder HOT 3
- firebase emulator is not running by lint-staged HOT 8
- SyntaxError: Named export 'getStreamAsBuffer' not found HOT 2
- "No files matching the pattern ... was found" when using ESLint flat configuration file format HOT 2
- No staged files found
- Script fails when using grouped layouts in Next.js HOT 4
- lint-staged does not detect changed files, skips scripts HOT 4
- High vulnerability in 'braces' dependency HOT 3
- Add flag to simplify testing `lint-staged` integration HOT 2
- Silent failure of configuration loading HOT 2
- 'lint-staged' will not restore changes if there's an error or the script is halted HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lint-staged.