|
From: | Jostein Kjønigsen |
Subject: | Buliding with tree-sitter (Was: Turing on tree-sitter) |
Date: | Mon, 10 Oct 2022 22:56:22 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.1 |
Hey everyone. I'm observing this recent activity on this branch with great enthusiasm. I've recently been trying Emacs from feature/tree-sitter with tree-sitter enabled, but using third-party major modes (co-developed by me and Theodor Thornhill). So far that has worked out OK for me. While seeing more and more modes getting tree-sitter support main-lined is great, I'm having trouble just building emacs now, and all major-modes using tree-sitter breaks the build, complaining about missing shared libraries. The command I'm using to build is: git clean -fdx && make distclean && ./configure
--with-tree-sitter ; make -j6 One example error (but I get these for all modes, until I revert
them back to their initial version from git-master): > textmodes/mhtml-mode.el:29:2: Error: Cannot load language
definition: "_javascript_",
("/home/jostein/.emacs.d/tree-sitter/libtree-sitter-_javascript_:
cannot open shared object file: No such file or directory"
"/home/jostein/.emacs.d/tree-sitter/libtree-sitter-_javascript_.so:
cannot open shared object file: No such file or directory"
"libtree-sitter-_javascript_: cannot open shared object file: No
such file or directory" "libtree-sitter-_javascript_.so: cannot open
shared object file: No such file or directory") What I don't get about that error-message is that those files
have been built and deployed, using
https://github.com/casouri/tree-sitter-module. jostein@dev-jostein:~/.emacs.d/tree-sitter$ ls -l So what am I doing wrong? How should I build this? Any help would be appreciated. If I can build it, I can help
test-drive and possible also provide patches, but for now I'm
stuck. --
On 10.10.2022 19:05, Theodor Thornhill
wrote:
My bad, I thought Theodor was saying he would add separate major modes alongside non-tree-sitter major modes for the same language. Reading his message I think he is only adding the tree-sitter powered mode into core and leaving the non-tree-sitter version out. So IIUC we will have (a) major modes that supports both tree-sitter and non-tree-sitter, and (b) major modes that require tree-sitter to work. Again, a M-x treesit-enable in a mode that requires tree-sitter to work doesn’t make much sense. I think having individual major-mode level toggle variables and a global toggle variable is conceptually more fit?Agreed! --
Vennlig hilsen Jostein Kjønigsen jostein@kjonigsen.net 🍵 jostein@gmail.com https://jostein.kjønigsen.no |
[Prev in Thread] | Current Thread | [Next in Thread] |