[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tree-sitter: Paths used for loading of language definitions
From: |
Yuan Fu |
Subject: |
Re: tree-sitter: Paths used for loading of language definitions |
Date: |
Sun, 16 Oct 2022 21:27:49 -0700 |
> On Oct 16, 2022, at 12:36 PM, Jostein Kjønigsen
> <jostein@secure.kjonigsen.net> wrote:
>
> Hey there, Yuan Fu.
>
> First of all: Thank you for the tremendous effort you've put in to get a
> tree-sitter implementation mainlined into Emacs. For some of the major-modes
> I've been working on, tree-sitter has been a godsend and if it can enable
> some of them to become mainlined into Emacs... I mean nothing could be better!
Thank you!
>
> That said, I've noticed something when building the feature/tree-sitter
> branch, and also while testing other things tree-sitter related... If a
> language-definition SO is missing... treesit.el in Emacs only reports looking
> for files and folders typically found within $HOME/.emacs.d/ (that is
> user-owned files).
>
> Based on that, I'm assuming those are the only locations probed. Is that
> assumption correct?
It shouldn’t be. Emacs should first look in treesit-extra-load-path, then
~/.emacs.d/tree-sitter, then standard system library locations. The exact
locations depend on dlopen. Could you share the error message reported when
loading a non-exist language? It should print all the locations it tries (as
you observed).
Yuan
- Some issues with the tree-sitter branch, Eli Zaretskii, 2022/10/16
- Re: Some issues with the tree-sitter branch, Eli Zaretskii, 2022/10/16
- Re: Some issues with the tree-sitter branch, Eli Zaretskii, 2022/10/16
- tree-sitter: Paths used for loading of language definitions, Jostein Kjønigsen, 2022/10/16
- Re: tree-sitter: Paths used for loading of language definitions, Daniel Martín, 2022/10/16
- Re: tree-sitter: Paths used for loading of language definitions,
Yuan Fu <=
- Re: tree-sitter: Paths used for loading of language definitions, Jostein Kjønigsen, 2022/10/17
- Re: tree-sitter: Paths used for loading of language definitions, Yuan Fu, 2022/10/17
- Re: tree-sitter: Paths used for loading of language definitions, Eli Zaretskii, 2022/10/17
- Re: tree-sitter: Paths used for loading of language definitions, Yuan Fu, 2022/10/17
- Re: tree-sitter: Paths used for loading of language definitions, Eli Zaretskii, 2022/10/17
- Re: tree-sitter: Paths used for loading of language definitions, Stephen Leake, 2022/10/17
- Re: tree-sitter: Paths used for loading of language definitions, Eli Zaretskii, 2022/10/17
- Re: tree-sitter: Paths used for loading of language definitions, Yuan Fu, 2022/10/17
Re: Some issues with the tree-sitter branch, Yuan Fu, 2022/10/17