GNU bug report logs -
#71380
30.0.50; Submitting php-ts-mode, new major mode for php
Previous Next
Reported by: Vincenzo Pupillo <v.pupillo <at> gmail.com>
Date: Wed, 5 Jun 2024 14:11:01 UTC
Severity: normal
Found in version 30.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #53 received at 71380 <at> debbugs.gnu.org (full text, mbox):
In data venerdì 7 giugno 2024 15:39:04 CEST, Andrea Corallo ha scritto:
> Vincenzo Pupillo <v.pupillo <at> gmail.com> writes:
> > Ciao Andrea,
> > I think the warning is due to html-ts-mode. It checks whether or not the
> > parser exists, but even if it does not exist it tries to create it: ...
> >
> > (unless (treesit-ready-p 'html)
> >
> > (error “Tree-sitter for HTML isn't available”))
> >
> > (treesit-parser-create 'html)
>
> What is not clear to me is why we should run this while compiling
> php-ts-mode.
I don't know. Maybe because there is a '(require 'html-ts-mode)' ?
> > ....
> >
> > I fixed it by replacing “unless” with “if” ...
> > Do I open another bug for this patch?
>
> But in that case one could activate html-ts-mode even with no parser? 🤔
>
I don't think so. Because if the parser is not there, the rest of the code is
not executed. I don't know the details, but all '*-ts modes' do this.
> > Ok for the ";; Maintainer".
> > Go ahead and bother me! :D
> :
> :D
>
> Thanks
>
> Andrea
Ciao
Vincenzo
This bug report was last modified 1 year and 39 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.