tree-sitter / tree-sitter-javascript

Javascript grammar for tree-sitter
MIT License
314 stars 108 forks source link

Javascript parser throwing error #278

Closed bryant-the-coder closed 5 months ago

bryant-the-coder commented 5 months ago

Describe the bug

When I am trying to write a .jsx file, it throws an E13: file exists error.

image

To Reproduce

  1. nvim main.jsx
  2. error shows up

Expected behavior

Expected behavior is that no error shows up and i get to write the file without any error showing up

Output of :checkhealth nvim-treesitter

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

Installation ~
- WARNING `tree-sitter` executable not found (parser generator, only needed for :TSInstallFromGrammar, not required for :TSInstall)
- OK `node` found v18.18.2 (only needed for :TSInstallFromGrammar)
- OK `git` executable found.
- OK `clang` executable found. Selected from { "clang", "gcc" }
  Version: clang version 16.0.6
- OK Neovim was compiled with tree-sitter runtime ABI version 14 (required >=13). Parsers must be compatible with runtime ABI.

OS Info:
{
  machine = "x86_64",
  release = "6.6.2-zen1-1-zen",
  sysname = "Linux",
  version = "#1 ZEN SMP PREEMPT_DYNAMIC Mon, 20 Nov 2023 23:17:26 +0000"
} ~

Parser/Features         H L F I J
  - bash                ✓ ✓ ✓ . ✓
  - c                   ✓ ✓ ✓ ✓ ✓
  - cpp                 ✓ ✓ ✓ ✓ ✓
  - html                ✓ ✓ ✓ ✓ ✓
  - javascript          ✓ ✓ ✓ ✓ ✓
  - json                ✓ ✓ ✓ ✓ .
  - lua                 ✓ ✓ ✓ ✓ ✓
  - markdown            ✓ . ✓ ✓ ✓
  - markdown_inline     ✓ . . . ✓
  - norg                ✓ . ✓ . ✓
  - norg_meta           ✓ . . ✓ .
  - norg_table          . . . . .
  - python              ✓ ✓ ✓ ✓ ✓
  - query               ✓ ✓ ✓ ✓ ✓
  - rust                ✓ ✓ ✓ ✓ ✓
  - scss                ✓ . ✓ ✓ .
  - toml                ✓ ✓ ✓ ✓ ✓
  - vim                 ✓ ✓ ✓ . ✓
  - vimdoc              ✓ . . . ✓

  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} ~

Output of nvim --version

NVIM v0.10.0-dev-64b53b7
Build type: RelWithDebInfo
LuaJIT 2.1.1700008891

Additional context

I am suspecting a err from the query. But i dont know how to fix it. I have nvim-treesitter, nvim-ts-rainbow, treesitter playground and nvim-treesitter-context installed

amaanq commented 5 months ago

not the right repo, this is the parser only.

bryant-the-coder commented 5 months ago

@amaanq then where should i report this to?

amaanq commented 5 months ago

Ordinally I'd say anything neovim related (e.g. nvim-treesitter), but you'd just flood an issue again at the wrong repo, because it's nvim-ts-rainbow's fault here