GNU bug report logs - #72359
treesit-node-at-point bug on vhdl-ts-mode after update to 0.22.6

Previous Next

Package: emacs;

Reported by: Gonzalo Larumbe <gonzalomlarumbe <at> gmail.com>

Date: Tue, 30 Jul 2024 02:36:02 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#72359: closed (treesit-node-at-point bug on vhdl-ts-mode
 after update to 0.22.6)
Date: Thu, 29 Aug 2024 12:09:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 29 Aug 2024 15:07:11 +0300
with message-id <86ed67fs7k.fsf <at> gnu.org>
and subject line Re: bug#72359: treesit-node-at-point bug on vhdl-ts-mode after update to 0.22.6
has caused the debbugs.gnu.org bug report #72359,
regarding treesit-node-at-point bug on vhdl-ts-mode after update to 0.22.6
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
72359: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=72359
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Gonzalo Larumbe <gonzalomlarumbe <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: treesit-node-at-point bug on vhdl-ts-mode after update to 0.22.6
Date: Tue, 30 Jul 2024 00:17:02 +0200
[Message part 3 (text/plain, inline)]
Hi,

After updating tree-sitter on Arch Linux from 0.22.1 to 0.22.6 there seems
to be an error with the detection of some comment nodes under
`vhdl-ts-mode`.

In the attached VHDL file, if placing the cursor at the comment of line 10,
running:
`(treesit-node-at (point) 'vhdl)` returns `#<treesit-node block_header in
329-358>`. However, the side by side view shows that the parser correctly
detects a comment (see attached screenshot). This worked well with the
previous tree-sitter version.

Thanks a lot!

Gonzalo
[Message part 4 (text/html, inline)]
[treesit-vhdl-bug.vhdl (text/x-vhdl, attachment)]
[treesit-bug.PNG (image/png, attachment)]
[Message part 7 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Yuan Fu <casouri <at> gmail.com>
Cc: gonzalomlarumbe <at> gmail.com, 72359-done <at> debbugs.gnu.org
Subject: Re: bug#72359: treesit-node-at-point bug on vhdl-ts-mode after update
 to 0.22.6
Date: Thu, 29 Aug 2024 15:07:11 +0300
> Cc: 72359 <at> debbugs.gnu.org
> From: Yuan Fu <casouri <at> gmail.com>
> Date: Tue, 27 Aug 2024 01:22:42 -0700
> 
> Thank you for your report, Gonzalo! And sorry for the delay. I properly looked into this today, and confirmed that this is a tree-sitter bug. I raised an issue here: https://github.com/tree-sitter/tree-sitter/issues/3555
> 
> Sadly, there’s not much we can do right now. There was another similar bug in tree-sitter, which I worked around by using another function. But now that “another function” is also broken, oh well :-(

Since this is not an Emacs bug, I'm closing it.


This bug report was last modified 248 days ago.

Previous Next


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