Skip to content

treesitter error in typescriptreact filetype #5

Description

@MAHcodes

I'm not sure if this is a treesitter issue, but I was able to realize that this plugin was causing the error

image

Error detected while processing TextChangedI Autocommands for "<buffer=10>":                                                                                                                                                                  
Error executing lua callback: ...local/share/nvim/runtime/lua/vim/treesitter/language.lua:94: no parser for 'typescriptreact' language, see :help treesitter-parsers                                                                          
stack traceback:                                                                                                                                                                                                                              
        [C]: in function 'error'                                                                                                                                                                                                              
        ...local/share/nvim/runtime/lua/vim/treesitter/language.lua:94: in function 'add'                                                                                                                                                     
        ...l/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:98: in function 'new'                                                                                                                                                     
        /usr/local/share/nvim/runtime/lua/vim/treesitter.lua:61: in function '_create_parser'                                                                                                                                                 
        /usr/local/share/nvim/runtime/lua/vim/treesitter.lua:131: in function 'get_parser'                                                                                                                                                    
        /usr/local/share/nvim/runtime/lua/vim/treesitter.lua:398: in function 'get_cusor_node'                                                                                                                                                
        ...start/template-string.nvim/lua/template-string/utils.lua:21: in function 'get_string_node'                                                                                                                                         
        ...ate-string.nvim/lua/template-string/langs/javascript.lua:110: in function 'on_type'                                                                                                                                                
        .../start/template-string.nvim/lua/template-string/init.lua:14: in function <.../start/template-string.nvim/lua/template-string/init.lua:8>

I tried :setfiletype typescript, and the error was gone, this is as far as I could go.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions