all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kristjon Ciko <kristjoc@ifi.uio.no>
To: Eli Zaretskii <eliz@gnu.org>
Cc: "66637@debbugs.gnu.org" <66637@debbugs.gnu.org>
Subject: bug#66637: 29.1; Emacs crashes with activating tree-sitter modes
Date: Fri, 20 Oct 2023 11:09:33 +0000	[thread overview]
Message-ID: <879c6144884f46fcbb0ac6b8d5a178f0@ifi.uio.no> (raw)
In-Reply-To: <83jzriu5v3.fsf@gnu.org>

It seems like this is a MacOS-specific issue; more precisely, a MacOS Sonoma-specific since I did not have this problem before the upgrade.

I reinstalled Emacs using `sudo port install emacs-app` and I found out that the issue occurs **ONLY** when Emacs (vanilla Emacs, no config files involved) is launched from the Spotlight search, which points to /Applications/MacPorts/Emacs.app.  Everything works just fine if I run emacs from the terminal (`which emacs` => /Applications/MacPorts/Emacs.app/Contents/MacOS/emacs)

Same case with my own config; launching it from terminal seems the way to go.

Cheers 
________________________________________
From: Eli Zaretskii <eliz@gnu.org>
Sent: Thursday, October 19, 2023 2:57 PM
To: Kristjon Ciko
Cc: 66637@debbugs.gnu.org
Subject: Re: bug#66637: 29.1; Emacs crashes with activating tree-sitter modes

> From: Kristjon Ciko <kristjoc@ifi.uio.no>
> Date: Thu, 19 Oct 2023 09:17:11 +0000
>
>
> How to reproduce:
>
> ;; Launch Emacs
> emacs -Q
>
> ;; Install grammars for C and C++
> M-x treesit-install-language-grammar
> ;; Libraries installed to ~/.emacs.d/tree-sitter/libtree-sitter-c.dylib
> and ~/.emacs.d/tree-sitter/libtree-sitter-cpp.dylib
>
> ;; Open a C file
> C-x C-f test.c
>
> ;; Activate c-ts-mode

This doesn't crash for me, although I use c-ts-mode all the time.

I'm not on macOS, so either this is macOS-specific, or your personal
copies of the tree-sitter and/or the grammar libraries is faulty.  In
any case, please show the backtrace from the crashes by running Emacs
under a debugger.

Thanks.





  reply	other threads:[~2023-10-20 11:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-19  9:17 bug#66637: 29.1; Emacs crashes with activating tree-sitter modes Kristjon Ciko
2023-10-19 12:57 ` Eli Zaretskii
2023-10-20 11:09   ` Kristjon Ciko [this message]
2023-10-20 11:33     ` Gerd Möllmann
2023-10-20 11:42       ` Kristjon Ciko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=879c6144884f46fcbb0ac6b8d5a178f0@ifi.uio.no \
    --to=kristjoc@ifi.uio.no \
    --cc=66637@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.