Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The issue #29271 should be closed. #29451

Closed
korantu opened this issue Jun 22, 2024 · 1 comment
Closed

The issue #29271 should be closed. #29451

korantu opened this issue Jun 22, 2024 · 1 comment

Comments

@korantu
Copy link

korantu commented Jun 22, 2024

Problem

I have experienced #29271 issue symptom:

Error in decoration provider treesitter/highlighter.win:
Error executing lua: ...im-macos/share/nvim/runtime/lua/vim/treesitter/query.lua:252: Query error at 2:4. Invalid node type "delimiter":
  (delimiter) @markup.heading.1
   ^

stack traceback:
        [C]: in function '_ts_parse_query'

The problematic line (delimiter) @markup.heading.1 is in ~/.local/share/nvim/site/pack/packer/start/nvim-treesitter/queries/vimdoc/highlights.scm which is not packaged with vim, AFAIK.

If you comment out the problematic lines in the file:
highlights.scm then the treesitter would be happy and big part of highlight will work:

; (h1
;   (delimiter) @markup.heading.1
;   (heading) @markup.heading.1)
;
; (h2
;   (delimiter) @markup.heading.2
;   (heading) @markup.heading.2)
;
; (h3
;   (heading) @markup.heading.3)
;
; (column_heading
;   (heading) @markup.heading.4)
;
; (column_heading
;   (delimiter) @markup.heading.4
;   (#set! conceal ""))

and


; (modeline) @keyword.directive
;
; ((note) @comment.note
;   (#any-of? @comment.note "Note:" "NOTE:" "Notes:"))
;
; ((note) @comment.warning
;   (#any-of? @comment.warning "Warning:" "WARNING:"))
;
; ((note) @comment.error
;   (#any-of? @comment.error "Deprecated:" "DEPRECATED:"))

This would fix the issue #29271.

(This should have been better as comment there, but the issue is locked)

Steps to reproduce

:help TSDisable , for example, will cause the symptoms

Expected behavior

:help TSDisable would just show help

Neovim version (nvim -v)

NVIM v0.10.0

Vim (not Nvim) behaves the same?

dont have vim and it will not pick up the configuration

Operating system/version

macOS 11.5

Terminal name/version

Alacritty

$TERM environment variable

xterm-256color

Installation

https://github.com/neovim/neovim/releases/tag/v0.10.0 from releases on github repo

@korantu korantu added the bug issues reporting wrong behavior label Jun 22, 2024
@clason clason closed this as not planned Won't fix, can't repro, duplicate, stale Jun 22, 2024
@neovim neovim locked and limited conversation to collaborators Jun 22, 2024
@clason
Copy link
Member

clason commented Jun 22, 2024

That issue is about something different; the issue description is a bit misleading. Your issue is a misconfiguration on your side (if you install nvim-treesitter, you must install all bundled parsers with it).

@zeertzjq zeertzjq removed the bug issues reporting wrong behavior label Jun 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants