If all the forms below are evaluated with
M-x eval-region -- after launching Emacs with emacs -Q, the (
empty file)
/tmp/test.py is opened but any key press (e.g.
RET) kills emacs with
SIGSEGV.
(setq python-use-tree-sitter t)
(and python-use-tree-sitter
(treesit-available-p))
(setq treesit-extra-load-path "~/emacs-tree-sitter/emacs-devel/admin/notes/tree-sitter/build-module/dist")
(find-file "/tmp/test.py")
Launching Emacs with GDB and repeating the above steps reveals that the SIGSEGV happens at:
treesit_load_language (language_symbol=<optimized out>, signal_symbol=0x7fffffff6f90, signal_data=0x7fffffff6f98) at ../../src/lisp.h:1519
1519 return lisp_h_XCAR (c);
Any idea what I might be doing wrong? I downloaded
libtree-sitter-python.so from
here and built from source.
--