Skip to content

0.11.1 cause no treesitter, if set lazy = true #975

Open
@cxwx

Description

@cxwx

Describe the bug

19:40:57 msg_show Error detected while processing BufReadPost Autocommands for "*":
Error executing lua callback: ...rew/Cellar/neovim/0.11.1/share/nvim/runtime/filetype.lua:36: BufReadPost Autocommands for "*"..FileType Autocommands for "org": Vim(append):Error executing vim.schedule lua callback: ...m/0.11.1/share/nvim/runtime/lua/vim/treesitter/query.lua:906: No handler for org-set-fold-offset!
stack traceback:
	[C]: in function 'error'
	...m/0.11.1/share/nvim/runtime/lua/vim/treesitter/query.lua:906: in function '_apply_directives'
	...m/0.11.1/share/nvim/runtime/lua/vim/treesitter/query.lua:1106: in function '(for generator)'
	...m/0.11.1/share/nvim/runtime/lua/vim/treesitter/_fold.lua:108: in function 'fn'
	...1/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:650: in function 'for_each_tree'
	...m/0.11.1/share/nvim/runtime/lua/vim/treesitter/_fold.lua:100: in function 'cb'
	...1/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:478: in function '_run_async_callbacks'
	...1/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:534: in function <...1/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:513>
	[C]: in function 'wait'
	.../nvim/lazy/plugins/orgmode/lua/orgmode/utils/promise.lua:279: in function 'wait'
	...plugins/orgmode/lua/orgmode/utils/treesitter/install.lua:125: in function 'get_installed_version'
	...
	...xu/software/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:395: in function 'config'
	...xu/software/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:362: in function '_load'
	...xu/software/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:197: in function 'load'
	...ware/nvim/lazy/lazy.nvim/lua/lazy/core/handler/event.lua:85: in function <...ware/nvim/lazy/lazy.nvim/lua/lazy/core/handler/event.lua:72>
	[C]: in function 'nvim_cmd'
	...rew/Cellar/neovim/0.11.1/share/nvim/runtime/filetype.lua:36: in function <...rew/Cellar/neovim/0.11.1/share/nvim/runtime/filetype.lua:35>
	[C]: in function 'pcall'
	vim/shared.lua: in function <vim/shared.lua:0>
	[C]: in function '_with'
	...rew/Cellar/neovim/0.11.1/share/nvim/runtime/filetype.lua:35: in function <...rew/Cellar/neovim/0.11.1/share/nvim/runtime/filetype.lua:10>
stack traceback:
	[C]: in function '_with'
	...rew/Cellar/neovim/0.11.1/share/nvim/runtime/filetype.lua:35: in function <...rew/Cellar/neovim/0.11.1/share/nvim/runtime/filetype.lua:10>

Steps to reproduce

upgrade 0.11.1 nvim
open a org file with fold

  • a
    ** aa
  • a
  • a

Expected behavior

bug fix

Emacs functionality

No response

Minimal init.lua

unknown

Screenshots and recordings

No response

nvim-orgmode version

lastest

OS / Distro

macos 15.4.1

Neovim version/commit

0.11.1

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions