GNU bug report logs - #77017
31.0.50; Build warning from mhtml-ts-mode

Previous Next

Package: emacs;

Reported by: jm <at> pub.pink

Date: Fri, 14 Mar 2025 17:19:02 UTC

Severity: normal

Found in version 31.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

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 77017 in the body.
You can then email your comments to 77017 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 v.pupillo <at> gmail.com, bug-gnu-emacs <at> gnu.org:
bug#77017; Package emacs. (Fri, 14 Mar 2025 17:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to jm <at> pub.pink:
New bug report received and forwarded. Copy sent to v.pupillo <at> gmail.com, bug-gnu-emacs <at> gnu.org. (Fri, 14 Mar 2025 17:19:02 GMT) Full text and rfc822 format available.

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

From: jm <at> pub.pink
To: bug-gnu-emacs <at> gnu.org
Subject: 31.0.50; Build warning from mhtml-ts-mode
Date: Fri, 14 Mar 2025 12:17:50 -0500
If you don’t have the tree-sitter html grammar installed then you
get a warning while building due to the ‘(require 'html-ts-mode)’
line.

  cd src/emacs
  make
  ...
  Warning (treesit): Cannot activate tree-sitter, because language
  grammar for html is unavailable (not-found):
  /home/jm/.emacs.d/tree-sitter/libtree-sitter-html: cannot open
  shared object file: No such file or directory
  /home/jm/.emacs.d/tree-sitter/libtree-sitter-html.0: cannot open
  shared object file: No such file or directory
  /home/jm/.emacs.d/tree-sitter/libtree-sitter-html.0.0: cannot
  open shared object file: No such file or directory
  /home/jm/.emacs.d/tree-sitter/libtree-sitter-html.so: cannot
  open shared object file: No such file or directory
  /home/jm/.emacs.d/tree-sitter/libtree-sitter-html.so.0: cannot
  open shared object file: No such file or directory
  /home/jm/.emacs.d/tree-sitter/libtree-sitter-html.so.0.0: cannot
  open shared object file: No such file or directory
  libtree-sitter-html: cannot open shared object file: No such
  file or directory libtree-sitter-html.0: cannot open shared
  object file: No such file or directory libtree-sitter-html.0.0:
  cannot open shared object file: No such file or directory
  libtree-sitter-html.so: cannot open shared object file: No such
  file or directory libtree-sitter-html.so.0: cannot open shared
  object file: No such file or directory
  libtree-sitter-html.so.0.0: cannot open shared object file: No
  such file or directory





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#77017; Package emacs. (Thu, 20 Mar 2025 13:09:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: jm <at> pub.pink, v.pupillo <at> gmail.com
Cc: 77017 <at> debbugs.gnu.org
Subject: Re: bug#77017: 31.0.50; Build warning from mhtml-ts-mode
Date: Thu, 20 Mar 2025 15:07:57 +0200
Vincenzo, could you please look into this?

> Cc: Vincenzo Pupillo <v.pupillo <at> gmail.com>
> From: jm <at> pub.pink
> Date: Fri, 14 Mar 2025 12:17:50 -0500
> 
> If you don’t have the tree-sitter html grammar installed then you
> get a warning while building due to the ‘(require 'html-ts-mode)’
> line.
> 
>   cd src/emacs
>   make
>   ...
>   Warning (treesit): Cannot activate tree-sitter, because language
>   grammar for html is unavailable (not-found):
>   /home/jm/.emacs.d/tree-sitter/libtree-sitter-html: cannot open
>   shared object file: No such file or directory
>   /home/jm/.emacs.d/tree-sitter/libtree-sitter-html.0: cannot open
>   shared object file: No such file or directory
>   /home/jm/.emacs.d/tree-sitter/libtree-sitter-html.0.0: cannot
>   open shared object file: No such file or directory
>   /home/jm/.emacs.d/tree-sitter/libtree-sitter-html.so: cannot
>   open shared object file: No such file or directory
>   /home/jm/.emacs.d/tree-sitter/libtree-sitter-html.so.0: cannot
>   open shared object file: No such file or directory
>   /home/jm/.emacs.d/tree-sitter/libtree-sitter-html.so.0.0: cannot
>   open shared object file: No such file or directory
>   libtree-sitter-html: cannot open shared object file: No such
>   file or directory libtree-sitter-html.0: cannot open shared
>   object file: No such file or directory libtree-sitter-html.0.0:
>   cannot open shared object file: No such file or directory
>   libtree-sitter-html.so: cannot open shared object file: No such
>   file or directory libtree-sitter-html.so.0: cannot open shared
>   object file: No such file or directory
>   libtree-sitter-html.so.0.0: cannot open shared object file: No
>   such file or directory
> 
> 
> 
> 
> 




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#77017; Package emacs. (Sat, 22 Mar 2025 11:47:02 GMT) Full text and rfc822 format available.

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

From: Vincenzo Pupillo <v.pupillo <at> gmail.com>
To: jm <at> pub.pink, Eli Zaretskii <eliz <at> gnu.org>
Cc: 77017 <at> debbugs.gnu.org
Subject: Re: bug#77017: 31.0.50; Build warning from mhtml-ts-mode
Date: Sat, 22 Mar 2025 12:45:50 +0100
[Message part 1 (text/plain, inline)]
Sorry Eli, I missed this email.
The attached patch fixes the warnings.

Thanks.
Vincenzo

In data giovedì 20 marzo 2025 14:07:57 Ora standard dell’Europa centrale, Eli 
Zaretskii ha scritto:
> Vincenzo, could you please look into this?
> 
> > Cc: Vincenzo Pupillo <v.pupillo <at> gmail.com>
> > From: jm <at> pub.pink
> > Date: Fri, 14 Mar 2025 12:17:50 -0500
> > 
> > If you don’t have the tree-sitter html grammar installed then you
> > get a warning while building due to the ‘(require 'html-ts-mode)’
> > line.
> > 
> >   cd src/emacs
> >   make
> >   ...
> >   Warning (treesit): Cannot activate tree-sitter, because language
> >   grammar for html is unavailable (not-found):
> >   /home/jm/.emacs.d/tree-sitter/libtree-sitter-html: cannot open
> >   shared object file: No such file or directory
> >   /home/jm/.emacs.d/tree-sitter/libtree-sitter-html.0: cannot open
> >   shared object file: No such file or directory
> >   /home/jm/.emacs.d/tree-sitter/libtree-sitter-html.0.0: cannot
> >   open shared object file: No such file or directory
> >   /home/jm/.emacs.d/tree-sitter/libtree-sitter-html.so: cannot
> >   open shared object file: No such file or directory
> >   /home/jm/.emacs.d/tree-sitter/libtree-sitter-html.so.0: cannot
> >   open shared object file: No such file or directory
> >   /home/jm/.emacs.d/tree-sitter/libtree-sitter-html.so.0.0: cannot
> >   open shared object file: No such file or directory
> >   libtree-sitter-html: cannot open shared object file: No such
> >   file or directory libtree-sitter-html.0: cannot open shared
> >   object file: No such file or directory libtree-sitter-html.0.0:
> >   cannot open shared object file: No such file or directory
> >   libtree-sitter-html.so: cannot open shared object file: No such
> >   file or directory libtree-sitter-html.so.0: cannot open shared
> >   object file: No such file or directory
> >   libtree-sitter-html.so.0.0: cannot open shared object file: No
> >   such file or directory

[0001-Fix-compiler-warnings-in-mhtml-ts-mode.el-bug-77017.patch (text/x-patch, attachment)]

Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 29 Mar 2025 11:54:02 GMT) Full text and rfc822 format available.

Notification sent to jm <at> pub.pink:
bug acknowledged by developer. (Sat, 29 Mar 2025 11:54:03 GMT) Full text and rfc822 format available.

Message #16 received at 77017-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Vincenzo Pupillo <v.pupillo <at> gmail.com>
Cc: jm <at> pub.pink, 77017-done <at> debbugs.gnu.org
Subject: Re: bug#77017: 31.0.50; Build warning from mhtml-ts-mode
Date: Sat, 29 Mar 2025 14:53:15 +0300
> From: Vincenzo Pupillo <v.pupillo <at> gmail.com>
> Cc: 77017 <at> debbugs.gnu.org
> Date: Sat, 22 Mar 2025 12:45:50 +0100
> 
> Sorry Eli, I missed this email.
> The attached patch fixes the warnings.

Thanks, installed on master, and closing the bug.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#77017; Package emacs. (Sun, 30 Mar 2025 06:45:02 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> linkov.net>
To: Vincenzo Pupillo <v.pupillo <at> gmail.com>
Cc: 77017 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>, jm <at> pub.pink
Subject: Re: bug#77017: 31.0.50; Build warning from mhtml-ts-mode
Date: Sun, 30 Mar 2025 09:41:12 +0300
> --- a/lisp/textmodes/mhtml-ts-mode.el
> +++ b/lisp/textmodes/mhtml-ts-mode.el
> @@ -50,13 +50,23 @@
>  ;;; Code:
>  
>  (require 'treesit)
> -(require 'html-ts-mode)
>  (require 'css-mode) ;; for embed css into html
>  (require 'js) ;; for embed javascript into html

This change broke loading of mhtml-ts-mode:

0. emacs -Q
1. visit an html file
2. M-x mhtml-ts-mode

Debugger entered--Lisp error: (void-variable html-ts-mode--treesit-font-lock-feature-list)
  (defvar mhtml-ts-mode--treesit-font-lock-feature-list ...)
  command-execute(mhtml-ts-mode record)
  execute-extended-command(nil "mhtml-ts-mode" nil)
  funcall-interactively(execute-extended-command nil "mhtml-ts-mode" nil)
  command-execute(execute-extended-command)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#77017; Package emacs. (Fri, 04 Apr 2025 12:30:02 GMT) Full text and rfc822 format available.

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

From: Vincenzo Pupillo <v.pupillo <at> gmail.com>
To: Juri Linkov <juri <at> linkov.net>
Cc: 77017 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>, jm <at> pub.pink
Subject: Re: bug#77017: 31.0.50; Build warning from mhtml-ts-mode
Date: Fri, 04 Apr 2025 14:29:45 +0200
[Message part 1 (text/plain, inline)]
I'm sorry. The attached patch should fix the problem. I'm not sure about the 
commit message, since I also modified html-ts-mode.

I recompiled emacs without the grammars and the warning problem shows up for 
other major modes as well.

Vincenzo


In data domenica 30 marzo 2025 08:41:12 Ora legale dell’Europa centrale, Juri 
Linkov ha scritto:
> > --- a/lisp/textmodes/mhtml-ts-mode.el
> > +++ b/lisp/textmodes/mhtml-ts-mode.el
> > @@ -50,13 +50,23 @@
> > 
> >  ;;; Code:
> >  
> >  (require 'treesit)
> > 
> > -(require 'html-ts-mode)
> > 
> >  (require 'css-mode) ;; for embed css into html
> >  (require 'js) ;; for embed javascript into html
> 
> This change broke loading of mhtml-ts-mode:
> 
> 0. emacs -Q
> 1. visit an html file
> 2. M-x mhtml-ts-mode
> 
> Debugger entered--Lisp error: (void-variable
> html-ts-mode--treesit-font-lock-feature-list) (defvar
> mhtml-ts-mode--treesit-font-lock-feature-list ...)
>   command-execute(mhtml-ts-mode record)
>   execute-extended-command(nil "mhtml-ts-mode" nil)
>   funcall-interactively(execute-extended-command nil "mhtml-ts-mode" nil)
>   command-execute(execute-extended-command)

[0001-Fix-last-change-bug-77017.patch (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#77017; Package emacs. (Fri, 04 Apr 2025 16:22:02 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> linkov.net>
To: Vincenzo Pupillo <v.pupillo <at> gmail.com>
Cc: 77017 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>, jm <at> pub.pink
Subject: Re: bug#77017: 31.0.50; Build warning from mhtml-ts-mode
Date: Fri, 04 Apr 2025 19:19:29 +0300
> I'm sorry. The attached patch should fix the problem. I'm not sure about the 
> commit message, since I also modified html-ts-mode.

Thanks, now pushed.

> I recompiled emacs without the grammars and the warning problem shows up for 
> other major modes as well.

Indeed, the same problem exists for all other ts-modes.
So later we need to invent a new way to load them.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 03 May 2025 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 8 days ago.

Previous Next


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