emacs-devel
[Top][All Lists]
Advanced

[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: Mon, 17 Oct 2022 02:02:43 -0700


> On Oct 17, 2022, at 1:02 AM, Eli Zaretskii <eliz@gnu.org> wrote:
> 
>> Date: Mon, 17 Oct 2022 09:14:58 +0200
>> Cc: emacs-devel@gnu.org
>> From: Jostein Kjønigsen <jostein@secure.kjonigsen.net>
>> 
>> 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")
> 
> The error data should be improved to provide a more informative error
> message.  It would be best to display just the name of the language
> definition library, without leading directories.

You mean something like 

Error: Cannot load language definition: "javascript”, 
“libtree-sitter-javascript.so”

?

Yuan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]