GNU bug report logs - #58823
feature/tree-sitter doesn't build without tree-sitter

Previous Next

Package: emacs;

Reported by: Stefan Kangas <stefankangas <at> gmail.com>

Date: Thu, 27 Oct 2022 21:02:02 UTC

Severity: normal

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 58823 in the body.
You can then email your comments to 58823 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to casouri <at> gmail.com, bug-gnu-emacs <at> gnu.org:
bug#58823; Package emacs. (Thu, 27 Oct 2022 21:02:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Kangas <stefankangas <at> gmail.com>:
New bug report received and forwarded. Copy sent to casouri <at> gmail.com, bug-gnu-emacs <at> gnu.org. (Thu, 27 Oct 2022 21:02:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: feature/tree-sitter doesn't build without tree-sitter
Date: Thu, 27 Oct 2022 14:01:12 -0700
This system does not have tree-sitter installed.  The
feature/tree-sitter branch doesn't seem to build without it.

I ran the following command:

    ./autogen.sh && ./configure && make -k -j8 bootstrap

In the compilation log, I see the following relevant parts, but let me
know if you need anything else:

checking for tree-sitter >= 0.0... no
[...]
  Does Emacs use -ltree-sitter?                           no
[...]
In end of data:
treesit.el:1285:23: Warning: the function ‘treesit-query-expand’ is
not known to be defined.
treesit.el:1226:14: Warning: the function ‘treesit-node-check’ is not
known to be defined.
treesit.el:1135:25: Warning: the function
‘treesit-language-available-p’ is not known to be defined.
treesit.el:993:19: Warning: the function ‘treesit-search-forward’ is
not known to be defined.
treesit.el:551:23: Warning: the function ‘treesit-query-language’ is
not known to be defined.
treesit.el:507:24: Warning: the function ‘treesit-query-compile’ is
not known to be defined.
treesit.el:505:17: Warning: the function ‘treesit-compiled-query-p’ is
not known to be defined.
treesit.el:498:18: Warning: the function ‘treesit-query-p’ is not
known to be defined.
treesit.el:308:8: Warning: the function ‘treesit-query-capture’ is not
known to be defined.
treesit.el:298:6: Warning: the function
‘treesit-node-field-name-for-child’ is not known to be defined.
treesit.el:290:24: Warning: the function ‘treesit-node-prev-sibling’
is not known to be defined.
treesit.el:284:19: Warning: the function ‘treesit-node-child-count’ is
not known to be defined.
treesit.el:252:13: Warning: the function ‘treesit-node-end’ is not
known to be defined.
treesit.el:251:13: Warning: the function ‘treesit-node-start’ is not
known to be defined.
treesit.el:240:20: Warning: the function ‘treesit-node-next-sibling’
is not known to be defined.
treesit.el:226:29: Warning: the function ‘treesit-parser-list’ is not
known to be defined.
treesit.el:209:28: Warning: the function ‘treesit-node-parent’ is not
known to be defined.
treesit.el:208:26: Warning: the function ‘treesit-node-type’ is not
known to be defined.
treesit.el:198:6: Warning: the function
‘treesit-node-descendant-for-range’ is not known to be defined.
treesit.el:174:32: Warning: the function ‘treesit-node-child’ is not
known to be defined.
treesit.el:171:12: Warning: the function ‘treesit-node-eq’ is not
known to be defined.
treesit.el:165:26: Warning: the function
‘treesit-node-first-child-for-pos’ is not known to be defined.
treesit.el:137:4: Warning: the function ‘treesit-parser-language’ is
not known to be defined.
treesit.el:133:5: Warning: the function ‘treesit-node-parser’ is not
known to be defined.
treesit.el:132:4: Warning: the function ‘treesit-parser-buffer’ is not
known to be defined.
treesit.el:119:4: Warning: the function
‘treesit-parser-included-ranges’ is not known to be defined.
treesit.el:111:12: Warning: the function ‘treesit-parser-p’ is not
known to be defined.
treesit.el:107:4: Warning: the function
‘treesit-parser-set-included-ranges’ is not known to be defined.
treesit.el:90:7: Warning: the function ‘treesit-parser-create’ is not
known to be defined.
treesit.el:89:6: Warning: the function ‘treesit-parser-root-node’ is
not known to be defined.
[...]
In toplevel form:
cedet/semantic/wisent/python.el:30:2: Error: Symbol’s function
definition is void: treesit-query-p
make[4]: *** [Makefile:332: cedet/semantic/wisent/python.elc] Error 1
[...]
In toplevel form:
org/ob-python.el:33:2: Error: Symbol’s function definition is void:
treesit-query-p
make[4]: *** [Makefile:332: org/ob-python.elc] Error 1
[...]
In end of data:
progmodes/python.el:5489:29: Warning: the function
‘treesit-node-parent’ is not known to be defined.
progmodes/python.el:5387:17: Warning: the function
‘treesit-induce-sparse-tree’ is not known to be defined.
progmodes/python.el:5354:33: Warning: the function
‘treesit-node-start’ is not known to be defined.
progmodes/python.el:5350:20: Warning: the function
‘treesit-node-child-by-field-name’ is not known to be defined.
progmodes/python.el:5344:24: Warning: the function ‘treesit-node-type’
is not known to be defined.
[...]
In toplevel form:
progmodes/ts-mode.el:29:2: Error: Symbol’s function definition is
void: treesit-query-p
make[4]: *** [Makefile:332: progmodes/ts-mode.elc] Error 1
[...]
In toplevel form:
textmodes/mhtml-mode.el:29:2: Error: Symbol’s function definition is
void: treesit-query-p
make[4]: *** [Makefile:332: textmodes/mhtml-mode.elc] Error 1
[...]
  ELC      progmodes/js.elc

In end of data:
progmodes/js.el:3879:6: Warning: the function ‘treesit-parser-create’
is not known to be defined.
progmodes/js.el:3794:17: Warning: the function
‘treesit-induce-sparse-tree’ is not known to be defined.
progmodes/js.el:3766:30: Warning: the function
‘treesit-search-subtree’ is not known to be defined.
progmodes/js.el:3717:29: Warning: the function ‘treesit-node-parent’
is not known to be defined.
progmodes/js.el:3714:25: Warning: the function
‘treesit-node-child-by-field-name’ is not known to be defined.
progmodes/js.el:3699:20: Warning: the function
‘treesit-node-next-sibling’ is not known to be defined.
progmodes/js.el:3696:33: Warning: the function ‘treesit-node-end’ is
not known to be defined.
progmodes/js.el:3693:19: Warning: the function ‘treesit-node-type’ is
not known to be defined.
progmodes/js.el:3691:17: Warning: the function ‘treesit-node-child’ is
not known to be defined.
progmodes/js.el:3412:9: Warning: the function ‘treesit-node-start’ is
not known to be defined.
make[4]: Target 'compile-targets' not remade because of errors.
make[4]: Leaving directory '/home/skangas/wip/emacs/lisp'
make[3]: *** [Makefile:366: compile-main] Error 2
make[3]: Target 'all' not remade because of errors.
make[3]: Leaving directory '/home/skangas/wip/emacs/lisp'
make[2]: *** [Makefile:531: lisp] Error 2
make[2]: Target 'actual-all' not remade because of errors.
make[2]: Leaving directory '/home/skangas/wip/emacs'
make[1]: *** [Makefile:1253: actual-bootstrap] Error 2
make[1]: Leaving directory '/home/skangas/wip/emacs'
make[1]: Entering directory '/home/skangas/wip/emacs'
***
*** "make bootstrap" failed with exit status 2.
[...]
make[1]: *** [Makefile:413: advice-on-failure] Error 2
make[1]: Leaving directory '/home/skangas/wip/emacs'
make: *** [Makefile:1236: bootstrap] Error 2

In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
 3.24.34, cairo version 1.16.0) of 2022-10-25 built on joffe
Repository revision: 9bfe00dda6b59d9b93eb7a825f6e0868afa1cca3
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101004
System Description: Debian GNU/Linux bookworm/sid




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58823; Package emacs. (Thu, 27 Oct 2022 23:00:02 GMT) Full text and rfc822 format available.

Message #8 received at 58823 <at> debbugs.gnu.org (full text, mbox):

From: Yuan Fu <casouri <at> gmail.com>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: 58823 <at> debbugs.gnu.org
Subject: Re: bug#58823: feature/tree-sitter doesn't build without tree-sitter
Date: Thu, 27 Oct 2022 15:59:14 -0700

> On Oct 27, 2022, at 2:01 PM, Stefan Kangas <stefankangas <at> gmail.com> wrote:
> 
> This system does not have tree-sitter installed.  The
> feature/tree-sitter branch doesn't seem to build without it.

Oh, right, the lisp code has to prepare for the case where tree-sitter is not compiled. Should we declare-function for all the functions in treesit.c? And all tree-sitter code called by other lisp files should be guarded by treesit-available-p. I can fix that.

Thanks!
Yuan



Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58823; Package emacs. (Fri, 28 Oct 2022 05:47:01 GMT) Full text and rfc822 format available.

Message #11 received at 58823 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Yuan Fu <casouri <at> gmail.com>
Cc: 58823 <at> debbugs.gnu.org, stefankangas <at> gmail.com
Subject: Re: bug#58823: feature/tree-sitter doesn't build without tree-sitter
Date: Fri, 28 Oct 2022 08:46:32 +0300
> Cc: 58823 <at> debbugs.gnu.org
> From: Yuan Fu <casouri <at> gmail.com>
> Date: Thu, 27 Oct 2022 15:59:14 -0700
> 
> > On Oct 27, 2022, at 2:01 PM, Stefan Kangas <stefankangas <at> gmail.com> wrote:
> > 
> > This system does not have tree-sitter installed.  The
> > feature/tree-sitter branch doesn't seem to build without it.
> 
> Oh, right, the lisp code has to prepare for the case where tree-sitter is not compiled. Should we declare-function for all the functions in treesit.c?

Yes.

> And all tree-sitter code called by other lisp files should be guarded by treesit-available-p. I can fix that.

Yes, thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58823; Package emacs. (Fri, 28 Oct 2022 23:49:01 GMT) Full text and rfc822 format available.

Message #14 received at 58823 <at> debbugs.gnu.org (full text, mbox):

From: Yuan Fu <casouri <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 58823 <at> debbugs.gnu.org, stefankangas <at> gmail.com
Subject: Re: bug#58823: feature/tree-sitter doesn't build without tree-sitter
Date: Fri, 28 Oct 2022 16:48:03 -0700

> On Oct 27, 2022, at 10:46 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> 
>> Cc: 58823 <at> debbugs.gnu.org
>> From: Yuan Fu <casouri <at> gmail.com>
>> Date: Thu, 27 Oct 2022 15:59:14 -0700
>> 
>>> On Oct 27, 2022, at 2:01 PM, Stefan Kangas <stefankangas <at> gmail.com> wrote:
>>> 
>>> This system does not have tree-sitter installed.  The
>>> feature/tree-sitter branch doesn't seem to build without it.
>> 
>> Oh, right, the lisp code has to prepare for the case where tree-sitter is not compiled. Should we declare-function for all the functions in treesit.c?
> 
> Yes.
> 
>> And all tree-sitter code called by other lisp files should be guarded by treesit-available-p. I can fix that.
> 
> Yes, thanks.

Now done.

Yuan



bug marked as fixed in version 29.1, send any further explanations to 58823 <at> debbugs.gnu.org and Stefan Kangas <stefankangas <at> gmail.com> Request was from Yuan Fu <casouri <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 22 Nov 2022 07:35: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, 20 Dec 2022 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 183 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.