Skip to content

bug: attempt to call method 'disable_pattern' (a nil value) #388

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

Closed
2 tasks done
name-jerry opened this issue Apr 2, 2025 · 0 comments
Closed
2 tasks done

bug: attempt to call method 'disable_pattern' (a nil value) #388

name-jerry opened this issue Apr 2, 2025 · 0 comments
Labels
duplicate This issue or pull request already exists

Comments

@name-jerry
Copy link

Neovim version (nvim -v)

NVIM v0.11.0-dev-1265+g6cdcac4492

Neovim distribution

neovim

Operating system

wsl

Terminal emulator / GUI

WezTerm

Describe the bug

一旦进入.md文件就会报错:
E5108: Error executing lua: vim/_editor.lua:0: nvim_exec2()..BufReadPost 自动命令 "": Vim(append):Error executing lua callback: /home/zr/nvim-linux64/share/nvim/runtime/file
type.lua:36: nvim_exec2()..BufReadPost 自动命令 "
"..FileType 自动命令 "markdown"..FileType 自动命令 "*": Vim(append):Error executing lua callback: ...zy/render-markdown.nvim
/lua/render-markdown/integ/ts.lua:77: attempt to call method 'disable_pattern' (a nil value)

Expected behavior

不报错

Healthcheck output

render-markdown.nvim [version] ~
- OK plugin 8.2.2
- OK neovim >= 0.11

render-markdown.nvim [configuration] ~
- OK valid

render-markdown.nvim [treesitter] ~
- OK markdown: parser installed
- OK markdown_inline: parser installed
- WARNING latex: parser not installed
  - ADVICE:
    - Disable latex support to avoid this warning
    - require('render-markdown').setup({ latex = { enabled = false } })
- OK html: parser installed
- OK markdown: highlight enabled

render-markdown.nvim [icons] ~
- OK using: mini.icons

render-markdown.nvim [executables] ~
- WARNING latex2text: not installed
  - ADVICE:
    - Disable latex support to avoid this warning
    - require('render-markdown').setup({ latex = { enabled = false } })

render-markdown.nvim [conflicts] ~
- OK headlines: not installed
- OK markview: not installed
- OK obsidian: not installed

Plugin configuration

{
  file_types = {
    [2] = "Avante"
  }
}

Plugin error log

N/A.

Confirmations

  • I have updated this plugin to the latest version using my plugin manager
  • I have provided the text contained in all screenshots as raw text in this issue. This means if there is a screenshot below it is the copy pasted contents of the file in the screenshot. I understand that my issue will be closed if I have not.

Additional information

No response

@name-jerry name-jerry added the bug Something isn't working label Apr 2, 2025
@MeanderingProgrammer MeanderingProgrammer added duplicate This issue or pull request already exists and removed bug Something isn't working labels Apr 2, 2025
MeanderingProgrammer added a commit that referenced this issue Apr 2, 2025
## Details

Related issues:

- #386
- #388

The current approach of assuming that most people with dev builds would
update on new releases does not hold true enough.

Take a similar approach as the pcall around `nvim_buf_set_extmark` and
notify users that they should update with a more targeted error message
rather than bubbling up a stack trace when things fail.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants