Giter VIP home page Giter VIP logo

Comments (6)

carlocab avatar carlocab commented on June 23, 2024 1

I think this should be fixed now by

brew update && brew upgrade emacs

from homebrew-core.

Moroshima avatar Moroshima commented on June 23, 2024

But use brew install --build-from-source emacs will not trigger the segmentation fault, maybe the new version of tree-sitter package broke the treesit support of emacs built with an older version of tree-sitter?

from homebrew-core.

Lucartas avatar Lucartas commented on June 23, 2024

Yep,
tree-sitter/tree-sitter#3296

from homebrew-core.

carlocab avatar carlocab commented on June 23, 2024

If there's a command-line/scriptable way to trigger the crash, we can add it to the emacs test block to avoid breakage like this in the future.

I'm not an emacs user, so suggestions welcome.

In the meantime, the rebuild I triggered in #172484 will fix this.

from homebrew-core.

Moroshima avatar Moroshima commented on June 23, 2024

It may be a bit difficult to reproduce the crash through a command-line or scriptable method. Tree-sitter can be used by many emacs major modes, but there is no generic way to test tree-sitter support.

The script below is just an example:

echo "(add-hook 'emacs-startup-hook 'rust-ts-mode)" >> ~/.emacs.d/init.el
emacs

I do not think this is a reliable way to trigger the crash.

from homebrew-core.

Moroshima avatar Moroshima commented on June 23, 2024

Sorry, I forgot to mention a crucial point: we need to first install the corresponding language grammar in Emacs, which appears to require an interactive process.

from homebrew-core.

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.