Giter Site home page Giter Site logo

Comments (5)

WhiteCat6142 avatar WhiteCat6142 commented on June 3, 2024

I saw the same phenomenon.
Adding --debug seems to solve the errors.
That's strange.

from lint-staged.

WhiteCat6142 avatar WhiteCat6142 commented on June 3, 2024

P.S.
15.0.0 -> correct
15.1.0 -> segmentation fault
15.2.0 -> segmentation fault

from lint-staged.

iiroj avatar iiroj commented on June 3, 2024

The debug mode uses a different Listr2 renderer as seen here:

export const getRenderer = (options, logger, env = process.env) => {
const mainRendererOptions = getMainRendererOptions(options, logger, env)
return {
...mainRendererOptions,
fallbackRenderer: getFallbackRenderer(mainRendererOptions, env),
}
}

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.

WhiteCat6142 avatar WhiteCat6142 commented on June 3, 2024

With —quiet and TERM=dumb, it works at 15.2.0.

from lint-staged.

maxime-bc avatar maxime-bc commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.