tree-sitter-grammars / tree-sitter-arduino

Arduino grammar for tree-sitter
MIT License
3 stars 2 forks source link

TSInstall - missing arduino #3

Closed BerentM closed 1 year ago

BerentM commented 1 year ago

Hi,

I have a problem installing a parser for arduino. After running the:TSInstall command I get error:

Installation not possible: Parser not available for language "arduino"
See https://github.com/nvim-treesitter/nvim-treesitter/#adding-parsers on how to add a new parser!

:TSInstallInfo - ardunio isn't available there.

:TSUpdate and :TSUpdateSync don't change anything, error persists.

nvim --version

➜  test nvim --version
NVIM v0.9.1
Build type: Release
LuaJIT 2.1.0-beta3

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/0.9.1/share/nvim"

Run :checkhealth for more info

nvim-treesitter healthcheck

nvim-treesitter: require("nvim-treesitter.health").check()

Installation ~
- OK `tree-sitter` found 0.20.8 (parser generator, only needed for :TSInstallFromGrammar)
- OK `node` found v20.3.1 (only needed for :TSInstallFromGrammar)
- OK `git` executable found.
- OK `cc` executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" }
  Version: Apple clang version 14.0.3 (clang-1403.0.22.14.1)
- OK Neovim was compiled with tree-sitter runtime ABI version 14 (required >=13). Parsers must be compatible with runtime ABI.

Parser/Features H L F I J
  - javascript     ✓ ✓ ✓ ✓ ✓
  - java           ✓ ✓ . ✓ ✓
  - tsx            ✓ ✓ ✓ ✓ ✓
  - query          ✓ ✓ ✓ ✓ ✓
  - css            ✓ . ✓ ✓ ✓
  - c              ✓ ✓ ✓ ✓ ✓
  - typescript     ✓ ✓ ✓ ✓ ✓
  - vim            ✓ ✓ ✓ . ✓
  - lua            ✓ ✓ ✓ ✓ ✓
  - yaml           ✓ ✓ ✓ ✓ ✓
  - dart           ✓ ✓ . ✓ ✓
  - help           ✓ . . . .
  - go             ✓ ✓ ✓ ✓ ✓
  - bash           ✓ ✓ ✓ . ✓
  - rust           ✓ ✓ ✓ ✓ ✓
  - json           ✓ ✓ ✓ ✓ .
  - python         ✓ ✓ ✓ ✓ ✓
  - gomod          ✓ . . . ✓

  Legend: H[ighlight], L[ocals], F[olds], I[ndents], In[j]ections
         +) multiple parsers found, only one will be used
         x) errors found in the query, try to run :TSUpdate {lang} ~
ObserverOfTime commented 1 year ago

Is nvim-treesitter up-to-date?

BerentM commented 1 year ago

Yup, :PackerSync says that everything is up to date

ObserverOfTime commented 1 year ago

Is arduino the only parser that has this issue?

BerentM commented 1 year ago

For now, languages i write in like python & go worked well. But after looking closer at that list: https://github.com/nvim-treesitter/nvim-treesitter/#supported-languages and:TSInstallInfo output, arduino isn't only parser that is missing from that list. For example, ada is missing too.

ObserverOfTime commented 1 year ago

Then it's not this parser's fault.