GNU bug report logs -
#60651
30.0.50; tree-sitter: `ts_node_is_named` is missing.
Previous Next
Reported by: Mickey Petersen <mickey <at> masteringemacs.org>
Date: Sun, 8 Jan 2023 10:40:02 UTC
Severity: normal
Found in version 30.0.50
Fixed in version 29.1
Done: Yuan Fu <casouri <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 60651 in the body.
You can then email your comments to 60651 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#60651
; Package
emacs
.
(Sun, 08 Jan 2023 10:40:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Mickey Petersen <mickey <at> masteringemacs.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sun, 08 Jan 2023 10:40:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
The tree-sitter C library function `ts_node_is_named' is not exposed
to Emacs from what I can see:
https://tree-sitter.github.io/tree-sitter/using-parsers#named-vs-anonymous-nodes
Thanks.
In GNU Emacs 30.0.50 (build 6, x86_64-pc-linux-gnu, GTK+ Version
3.24.20, cairo version 1.16.0) of 2023-01-02 built on mickey-work
Repository revision: c209802f7b3721a1b95113290934a23fee88f678
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12013000
System Description: Ubuntu 20.04.3 LTS
Configured using:
'configure --with-native-compilation --with-json --with-mailutils
--without-compress-install --with-imagemagick CC=gcc-10'
Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ
IMAGEMAGICK JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2
M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP
SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER X11 XDBE
XIM XINPUT2 XPM GTK3 ZLIB
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#60651
; Package
emacs
.
(Mon, 09 Jan 2023 03:25:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 60651 <at> debbugs.gnu.org (full text, mbox):
Mickey Petersen <mickey <at> masteringemacs.org> writes:
> The tree-sitter C library function `ts_node_is_named' is not exposed
> to Emacs from what I can see:
>
> https://tree-sitter.github.io/tree-sitter/using-parsers#named-vs-anonymous-nodes
>
> Thanks.
You can use treesit-node-check. In general, if there is a C function
that you want to use, you can check the manual for a correspondence
listing. It’s in "Tree-sitter C API".
Yuan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#60651
; Package
emacs
.
(Mon, 09 Jan 2023 09:03:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 60651 <at> debbugs.gnu.org (full text, mbox):
Yuan Fu <casouri <at> gmail.com> writes:
> Mickey Petersen <mickey <at> masteringemacs.org> writes:
>
>> The tree-sitter C library function `ts_node_is_named' is not exposed
>> to Emacs from what I can see:
>>
>> https://tree-sitter.github.io/tree-sitter/using-parsers#named-vs-anonymous-nodes
>>
>> Thanks.
>
> You can use treesit-node-check. In general, if there is a C function
> that you want to use, you can check the manual for a correspondence
> listing. It’s in "Tree-sitter C API".
>
Ah, right. I did not know you'd rolled it into one handy function. Thanks, Yuan! Issue closed :)
> Yuan
bug marked as fixed in version 29.1, send any further explanations to
60651 <at> debbugs.gnu.org and Mickey Petersen <mickey <at> masteringemacs.org>
Request was from
Yuan Fu <casouri <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Tue, 17 Jan 2023 09:38:01 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 14 Feb 2023 12:24:10 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 43 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.