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

Treesitter "no parser available ... because lang could not be determined" #137

Closed
3 tasks done
YodaEmbedding opened this issue Sep 5, 2024 · 0 comments · Fixed by #133
Closed
3 tasks done

Treesitter "no parser available ... because lang could not be determined" #137

YodaEmbedding opened this issue Sep 5, 2024 · 0 comments · Fixed by #133
Labels
bug Something isn't working

Comments

@YodaEmbedding
Copy link

YodaEmbedding commented Sep 5, 2024

Have you done all of these?

  • I am using the latest version of the plugin.
  • I have checked the wiki.
  • I have checked previous issues(even closed ones).

Describe the bug
I upgraded neovim from 0.10.0 to 0.10.1. It now gives this error:

Error executing vim.schedule lua callback: .../neovim/0.10.1/share/nvim/runtime/lua/vim/treesitter.lua:97:
There is no parser available for buffer 16 and one could not be created because lang could not be determined.
Either pass lang or set the buffer filetype
stack traceback:
        [C]: in function 'error'
        .../neovim/0.10.1/share/nvim/runtime/lua/vim/treesitter.lua:97: in function 'get_parser'
        ...al/share/nvim/lazy/markview.nvim/lua/markview/parser.lua:812: in function 'init'
        ....local/share/nvim/lazy/markview.nvim/plugin/markview.lua:36: in function 'buf_render'
        ....local/share/nvim/lazy/markview.nvim/plugin/markview.lua:134: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>

Neovim version

nvim --version
# Output
NVIM v0.10.1
Build type: Release
LuaJIT 2.1.1725453128
Run "nvim -V1 -v" for more info

Are you using a distro?
No

To Reproduce
Steps to reproduce the bug:

  1. Install markview.nvim.
  2. Open a markdown document.
  3. :bdelete
@YodaEmbedding YodaEmbedding added the bug Something isn't working label Sep 5, 2024
@OXY2DEV OXY2DEV closed this as completed in e4b4b9d Sep 5, 2024
JeffDess pushed a commit to JeffDess/markview.nvim that referenced this issue Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant