Closed davidarias closed 7 months ago
I have the same problem with the .tsx
files.
+1
Hi @davidarias and @quiqueporta, I work every day with tsx test files and i have not any trouble. It seems like your nvim do not manage to discover tests for these files. Can you write the output of :TSPlayground / :InspectTree of the tsx file?
Hi @marilari88 Thanks for the quick answer!
The result of :InspectTree is the following error:
Error executing Lua callback: ...usr/share/nvim/runtime/lua/vim/treesitter/playground.lua:241: No parser available for the given buffer
stack traceback:
[C]: in function 'assert'
...usr/share/nvim/runtime/lua/vim/treesitter/playground.lua:241: in function 'inspect_tree'
.../nvim/2819/usr/share/nvim/runtime/lua/vim/treesitter.lua:496: in function 'inspect_tree'
/snap/nvim/2819/usr/share/nvim/runtime/plugin/nvim.lua:18: in function </snap/nvim/2819/usr/share/nvim/runtime/plugin/nvim.lua:9>
Seems related to treesitter, but I don't understand why, I have installed (and reinstalled, just in case :sweat_smile: ) the grammar for tsx, js and ts, in fact the highlighting of tsx files works perfectly fine (I understand that the syntax highlight uses treesitter for parsing...)
@davidarias Treesitter is not the only way to get the syntax highlighting. It seems like you don't have the parser for that file. Can you run :checkhealth or :TSModuleInfo ?
@marilari88 Sorry, I executed :InspectTree in the wrong buffer, my bad :sweat_smile: This is the output executed on the tsx file of the screenshot:
(comment) ; [1:1 - 6]
(import_statement) ; [2:1 - 37]
(import_clause) ; [2:8 - 23]
(named_imports) ; [2:8 - 23]
(import_specifier) ; [2:10 - 15]
name: (identifier) ; [2:10 - 15]
(import_specifier) ; [2:18 - 21]
name: (identifier) ; [2:18 - 21]
source: (string) ; [2:30 - 37]
(string_fragment) ; [2:31 - 36]
(expression_statement) ; [4:1 - 6:2]
(call_expression) ; [4:1 - 6:2]
function: (identifier) ; [4:1 - 4]
arguments: (arguments) ; [4:5 - 6:2]
(string) ; [4:6 - 10]
(string_fragment) ; [4:7 - 9]
(arrow_function) ; [4:13 - 6:1]
parameters: (formal_parameters) ; [4:13 - 14]
body: (statement_block) ; [4:19 - 6:1]
(expression_statement) ; [5:3 - 25]
(call_expression) ; [5:3 - 25]
function: (member_expression) ; [5:3 - 19]
object: (call_expression) ; [5:3 - 14]
function: (identifier) ; [5:3 - 8]
arguments: (arguments) ; [5:9 - 14]
(true) ; [5:10 - 13]
property: (property_identifier) ; [5:16 - 19]
arguments: (arguments) ; [5:20 - 25]
(true) ; [5:21 - 24]
And this is the result of :TSModuleInfo
autotag highlight illuminate incremental_selection indent
ada ✗ ✓ ✓ ✓ ✗
agda ✗ ✓ ✗ ✓ ✗
angular ✗ ✗ ✗ ✗ ✗
apex ✗ ✓ ✓ ✓ ✗
arduino ✗ ✓ ✓ ✓ ✓
astro ✗ ✓ ✓ ✓ ✓
authzed ✗ ✓ ✗ ✓ ✗
awk ✗ ✓ ✗ ✓ ✗
bash ✗ ✓ ✓ ✓ ✗
bass ✗ ✓ ✓ ✓ ✓
beancount ✗ ✓ ✗ ✓ ✗
bibtex ✗ ✓ ✗ ✓ ✓
bicep ✗ ✓ ✓ ✓ ✓
bitbake ✗ ✓ ✓ ✓ ✓
blueprint ✗ ✓ ✗ ✓ ✗
c ✗ ✓ ✓ ✓ ✓
c_sharp ✗ ✓ ✓ ✓ ✗
cairo ✗ ✓ ✓ ✓ ✓
capnp ✗ ✓ ✓ ✓ ✓
chatito ✗ ✓ ✓ ✓ ✓
clojure ✗ ✓ ✓ ✓ ✗
cmake ✗ ✓ ✗ ✓ ✓
comment ✗ ✓ ✗ ✓ ✗
commonlisp ✗ ✓ ✓ ✓ ✗
cooklang ✗ ✓ ✗ ✓ ✗
corn ✗ ✓ ✓ ✓ ✓
cpon ✗ ✓ ✓ ✓ ✓
cpp ✗ ✓ ✓ ✓ ✓
css ✗ ✓ ✗ ✓ ✓
csv ✗ ✓ ✗ ✓ ✗
cuda ✗ ✓ ✓ ✓ ✓
cue ✗ ✓ ✓ ✓ ✓
dart ✗ ✓ ✓ ✓ ✓
devicetree ✗ ✓ ✓ ✓ ✓
dhall ✗ ✓ ✗ ✓ ✗
diff ✗ ✓ ✗ ✓ ✗
disassembly ✗ ✗ ✗ ✗ ✗
dockerfile ✗ ✓ ✗ ✓ ✗
dot ✗ ✓ ✗ ✓ ✗
doxygen ✗ ✓ ✗ ✓ ✓
dtd ✗ ✓ ✓ ✓ ✗
ebnf ✗ ✓ ✗ ✓ ✗
eds ✗ ✓ ✗ ✓ ✗
eex ✗ ✓ ✗ ✓ ✗
elixir ✗ ✓ ✓ ✓ ✓
elm ✗ ✓ ✗ ✓ ✗
elsa ✗ ✓ ✓ ✓ ✓
elvish ✗ ✓ ✗ ✓ ✗
embedded_template ✗ ✓ ✗ ✓ ✗
erlang ✗ ✓ ✗ ✓ ✗
facility ✗ ✓ ✗ ✓ ✓
fennel ✗ ✓ ✓ ✓ ✗
firrtl ✗ ✓ ✓ ✓ ✓
fish ✗ ✓ ✓ ✓ ✓
foam ✗ ✓ ✓ ✓ ✓
forth ✗ ✓ ✓ ✓ ✓
fortran ✗ ✓ ✗ ✓ ✓
fsh ✗ ✓ ✗ ✓ ✗
func ✗ ✓ ✗ ✓ ✗
fusion ✗ ✓ ✓ ✓ ✓
gdscript ✗ ✓ ✓ ✓ ✓
git_config ✗ ✓ ✗ ✓ ✗
git_rebase ✗ ✓ ✗ ✓ ✗
gitattributes ✗ ✓ ✓ ✓ ✗
gitcommit ✗ ✓ ✗ ✓ ✗
gitignore ✗ ✓ ✗ ✓ ✗
gleam ✗ ✓ ✓ ✓ ✓
glimmer ✗ ✓ ✓ ✓ ✓
glsl ✗ ✓ ✓ ✓ ✓
gn ✗ ✓ ✓ ✓ ✓
gnuplot ✗ ✗ ✗ ✗ ✗
go ✗ ✓ ✓ ✓ ✓
godot_resource ✗ ✓ ✓ ✓ ✗
gomod ✗ ✓ ✗ ✓ ✗
gosum ✗ ✓ ✗ ✓ ✗
gowork ✗ ✓ ✗ ✓ ✗
gpg ✗ ✓ ✗ ✓ ✗
graphql ✗ ✓ ✗ ✓ ✓
groovy ✗ ✓ ✓ ✓ ✓
gstlaunch ✗ ✓ ✗ ✓ ✗
hack ✗ ✓ ✗ ✓ ✗
hare ✗ ✓ ✓ ✓ ✓
haskell ✗ ✓ ✗ ✓ ✗
haskell_persistent ✗ ✓ ✗ ✓ ✗
hcl ✗ ✓ ✗ ✓ ✓
heex ✗ ✓ ✓ ✓ ✓
hjson ✗ ✓ ✓ ✓ ✓
hlsl ✗ ✓ ✓ ✓ ✓
hocon ✗ ✓ ✗ ✓ ✗
hoon ✗ ✓ ✓ ✓ ✗
html ✗ ✓ ✓ ✓ ✓
htmldjango ✗ ✓ ✗ ✓ ✓
http ✗ ✓ ✗ ✓ ✗
hurl ✗ ✓ ✗ ✓ ✓
ini ✗ ✓ ✗ ✓ ✗
ispc ✗ ✓ ✓ ✓ ✓
janet_simple ✗ ✓ ✓ ✓ ✗
java ✗ ✓ ✓ ✓ ✓
javascript ✗ ✓ ✓ ✓ ✓
jq ✗ ✓ ✓ ✓ ✗
jsdoc ✗ ✓ ✗ ✓ ✗
json ✗ ✓ ✓ ✓ ✓
json5 ✗ ✓ ✗ ✓ ✗
jsonc ✗ ✓ ✓ ✓ ✓
jsonnet ✗ ✓ ✓ ✓ ✗
julia ✗ ✓ ✓ ✓ ✓
kconfig ✗ ✓ ✓ ✓ ✓
kdl ✗ ✓ ✓ ✓ ✓
kotlin ✗ ✓ ✓ ✓ ✗
kusto ✗ ✓ ✗ ✓ ✗
lalrpop ✗ ✓ ✓ ✓ ✗
latex ✗ ✓ ✗ ✓ ✗
ledger ✗ ✓ ✗ ✓ ✓
leo ✗ ✓ ✗ ✓ ✓
linkerscript ✗ ✓ ✓ ✓ ✓
liquidsoap ✗ ✓ ✓ ✓ ✓
llvm ✗ ✓ ✗ ✓ ✗
lua ✗ ✓ ✓ ✓ ✓
luadoc ✗ ✓ ✗ ✓ ✗
luap ✗ ✓ ✗ ✓ ✗
luau ✗ ✓ ✓ ✓ ✓
m68k ✗ ✓ ✓ ✓ ✗
make ✗ ✓ ✗ ✓ ✗
markdown ✗ ✓ ✗ ✓ ✓
markdown_inline ✗ ✓ ✗ ✓ ✗
matlab ✗ ✓ ✓ ✓ ✓
menhir ✗ ✓ ✗ ✓ ✗
mermaid ✗ ✓ ✗ ✓ ✗
meson ✗ ✓ ✗ ✓ ✓
nasm ✗ ✓ ✗ ✓ ✗
nickel ✗ ✓ ✗ ✓ ✓
nim ✗ ✓ ✓ ✓ ✗
nim_format_string ✗ ✓ ✗ ✓ ✗
ninja ✗ ✓ ✗ ✓ ✓
nix ✗ ✓ ✓ ✓ ✗
norg ✗ ✗ ✗ ✓ ✗
nqc ✗ ✓ ✓ ✓ ✓
objc ✗ ✓ ✓ ✓ ✓
objdump ✗ ✓ ✗ ✓ ✗
ocaml ✗ ✓ ✓ ✓ ✓
ocaml_interface ✗ ✓ ✓ ✓ ✓
odin ✗ ✓ ✓ ✓ ✓
org ✗ ✗ ✗ ✓ ✗
pascal ✗ ✓ ✓ ✓ ✓
passwd ✗ ✓ ✗ ✓ ✗
pem ✗ ✓ ✗ ✓ ✗
perl ✗ ✓ ✗ ✓ ✗
php ✗ ✓ ✓ ✓ ✓
php_only ✗ ✗ ✗ ✗ ✗
phpdoc ✗ ✓ ✗ ✓ ✗
pioasm ✗ ✓ ✗ ✓ ✗
po ✗ ✓ ✗ ✓ ✗
pod ✗ ✓ ✗ ✓ ✗
poe_filter ✗ ✓ ✗ ✓ ✓
pony ✗ ✓ ✓ ✓ ✓
printf ✗ ✗ ✗ ✗ ✗
prisma ✗ ✓ ✗ ✓ ✗
promql ✗ ✓ ✗ ✓ ✗
properties ✗ ✓ ✓ ✓ ✗
proto ✗ ✓ ✗ ✓ ✗
prql ✗ ✓ ✗ ✓ ✗
psv ✗ ✓ ✗ ✓ ✗
pug ✗ ✓ ✗ ✓ ✗
puppet ✗ ✓ ✓ ✓ ✓
purescript ✗ ✓ ✓ ✓ ✗
pymanifest ✗ ✓ ✗ ✓ ✗
python ✗ ✓ ✓ ✓ ✓
ql ✗ ✓ ✓ ✓ ✓
qmldir ✗ ✓ ✗ ✓ ✗
qmljs ✗ ✓ ✗ ✓ ✗
query ✗ ✓ ✓ ✓ ✓
r ✗ ✓ ✓ ✓ ✓
racket ✗ ✓ ✗ ✓ ✗
rasi ✗ ✓ ✓ ✓ ✓
rbs ✗ ✓ ✗ ✓ ✓
re2c ✗ ✓ ✓ ✓ ✓
regex ✗ ✓ ✗ ✓ ✗
rego ✗ ✓ ✗ ✓ ✗
requirements ✗ ✓ ✗ ✓ ✗
rnoweb ✗ ✓ ✗ ✓ ✗
robot ✗ ✓ ✗ ✓ ✓
ron ✗ ✓ ✓ ✓ ✓
rst ✗ ✓ ✓ ✓ ✗
ruby ✗ ✓ ✓ ✓ ✓
rust ✗ ✓ ✓ ✓ ✓
scala ✗ ✓ ✓ ✓ ✗
scheme ✗ ✓ ✗ ✓ ✗
scss ✗ ✓ ✗ ✓ ✓
slang ✗ ✓ ✓ ✓ ✓
slint ✗ ✓ ✗ ✓ ✓
smali ✗ ✓ ✓ ✓ ✓
smithy ✗ ✓ ✗ ✓ ✗
snakemake ✗ ✓ ✓ ✓ ✗
solidity ✗ ✓ ✗ ✓ ✗
soql ✗ ✓ ✗ ✓ ✗
sosl ✗ ✓ ✗ ✓ ✗
sparql ✗ ✓ ✓ ✓ ✓
sql ✗ ✓ ✗ ✓ ✓
squirrel ✗ ✓ ✓ ✓ ✓
ssh_config ✗ ✓ ✓ ✓ ✓
starlark ✗ ✓ ✓ ✓ ✓
strace ✗ ✓ ✗ ✓ ✗
styled ✗ ✗ ✗ ✗ ✗
supercollider ✗ ✓ ✓ ✓ ✓
surface ✗ ✓ ✗ ✓ ✓
svelte ✗ ✓ ✗ ✓ ✓
sxhkdrc ✗ ✓ ✗ ✓ ✗
systemtap ✗ ✓ ✓ ✓ ✗
t32 ✗ ✓ ✓ ✓ ✓
tablegen ✗ ✓ ✓ ✓ ✓
templ ✗ ✓ ✗ ✓ ✗
terraform ✗ ✓ ✗ ✓ ✓
textproto ✗ ✓ ✗ ✓ ✓
thrift ✗ ✓ ✓ ✓ ✓
tiger ✗ ✓ ✓ ✓ ✓
tlaplus ✗ ✓ ✓ ✓ ✗
todotxt ✗ ✓ ✗ ✓ ✗
toml ✗ ✓ ✓ ✓ ✓
tsv ✗ ✓ ✗ ✓ ✗
tsx ✗ ✓ ✓ ✓ ✓
turtle ✗ ✓ ✓ ✓ ✓
twig ✗ ✓ ✗ ✓ ✗
typescript ✗ ✓ ✓ ✓ ✓
typoscript ✗ ✓ ✗ ✓ ✓
udev ✗ ✓ ✓ ✓ ✗
ungrammar ✗ ✓ ✓ ✓ ✓
usd ✗ ✓ ✓ ✓ ✓
uxntal ✗ ✓ ✓ ✓ ✓
v ✗ ✓ ✓ ✓ ✓
vala ✗ ✓ ✗ ✓ ✗
verilog ✗ ✓ ✓ ✓ ✗
vhs ✗ ✓ ✗ ✓ ✗
vim ✗ ✓ ✓ ✓ ✗
vimdoc ✗ ✓ ✗ ✓ ✗
vue ✗ ✓ ✗ ✓ ✓
wgsl ✗ ✓ ✗ ✓ ✓
wgsl_bevy ✗ ✓ ✗ ✓ ✓
xcompose ✗ ✓ ✓ ✓ ✗
xml ✗ ✓ ✓ ✓ ✓
yaml ✗ ✓ ✓ ✓ ✓
yang ✗ ✓ ✗ ✓ ✓
yuck ✗ ✓ ✓ ✓ ✓
zathurarc ✗ ✗ ✗ ✗ ✗
zig ✗ ✓ ✓ ✓ ✓
>> textobjects lsp_interop move select swap
ada ✗ ✓ ✗ ✗
agda ✗ ✓ ✗ ✗
angular ✗ ✗ ✗ ✗
apex ✗ ✓ ✗ ✗
arduino ✗ ✓ ✗ ✗
astro ✗ ✓ ✗ ✗
authzed ✗ ✓ ✗ ✗
awk ✗ ✓ ✗ ✗
bash ✗ ✓ ✗ ✗
bass ✗ ✓ ✗ ✗
beancount ✗ ✓ ✗ ✗
bibtex ✗ ✓ ✗ ✗
bicep ✗ ✓ ✗ ✗
bitbake ✗ ✓ ✗ ✗
blueprint ✗ ✓ ✗ ✗
c ✗ ✓ ✗ ✗
c_sharp ✗ ✓ ✗ ✗
cairo ✗ ✓ ✗ ✗
capnp ✗ ✓ ✗ ✗
chatito ✗ ✓ ✗ ✗
clojure ✗ ✓ ✗ ✗
cmake ✗ ✓ ✗ ✗
comment ✗ ✓ ✗ ✗
commonlisp ✗ ✓ ✗ ✗
cooklang ✗ ✓ ✗ ✗
corn ✗ ✓ ✗ ✗
cpon ✗ ✓ ✗ ✗
cpp ✗ ✓ ✗ ✗
css ✗ ✓ ✗ ✗
csv ✗ ✓ ✗ ✗
cuda ✗ ✓ ✗ ✗
cue ✗ ✓ ✗ ✗
dart ✗ ✓ ✗ ✗
devicetree ✗ ✓ ✗ ✗
dhall ✗ ✓ ✗ ✗
diff ✗ ✓ ✗ ✗
disassembly ✗ ✗ ✗ ✗
dockerfile ✗ ✓ ✗ ✗
dot ✗ ✓ ✗ ✗
doxygen ✗ ✓ ✗ ✗
dtd ✗ ✓ ✗ ✗
ebnf ✗ ✓ ✗ ✗
eds ✗ ✓ ✗ ✗
eex ✗ ✓ ✗ ✗
elixir ✗ ✓ ✗ ✗
elm ✗ ✓ ✗ ✗
elsa ✗ ✓ ✗ ✗
elvish ✗ ✓ ✗ ✗
embedded_template ✗ ✓ ✗ ✗
erlang ✗ ✓ ✗ ✗
facility ✗ ✓ ✗ ✗
fennel ✗ ✓ ✗ ✗
firrtl ✗ ✓ ✗ ✗
fish ✗ ✓ ✗ ✗
foam ✗ ✓ ✗ ✗
forth ✗ ✓ ✗ ✗
fortran ✗ ✓ ✗ ✗
fsh ✗ ✓ ✗ ✗
func ✗ ✓ ✗ ✗
fusion ✗ ✓ ✗ ✗
gdscript ✗ ✓ ✗ ✗
git_config ✗ ✓ ✗ ✗
git_rebase ✗ ✓ ✗ ✗
gitattributes ✗ ✓ ✗ ✗
gitcommit ✗ ✓ ✗ ✗
gitignore ✗ ✓ ✗ ✗
gleam ✗ ✓ ✗ ✗
glimmer ✗ ✓ ✗ ✗
glsl ✗ ✓ ✗ ✗
gn ✗ ✓ ✗ ✗
gnuplot ✗ ✗ ✗ ✗
go ✗ ✓ ✗ ✗
godot_resource ✗ ✓ ✗ ✗
gomod ✗ ✓ ✗ ✗
gosum ✗ ✓ ✗ ✗
gowork ✗ ✓ ✗ ✗
gpg ✗ ✓ ✗ ✗
graphql ✗ ✓ ✗ ✗
groovy ✗ ✓ ✗ ✗
gstlaunch ✗ ✓ ✗ ✗
hack ✗ ✓ ✗ ✗
hare ✗ ✓ ✗ ✗
haskell ✗ ✓ ✗ ✗
haskell_persistent ✗ ✓ ✗ ✗
hcl ✗ ✓ ✗ ✗
heex ✗ ✓ ✗ ✗
hjson ✗ ✓ ✗ ✗
hlsl ✗ ✓ ✗ ✗
hocon ✗ ✓ ✗ ✗
hoon ✗ ✓ ✗ ✗
html ✗ ✓ ✗ ✗
htmldjango ✗ ✓ ✗ ✗
http ✗ ✓ ✗ ✗
hurl ✗ ✓ ✗ ✗
ini ✗ ✓ ✗ ✗
ispc ✗ ✓ ✗ ✗
janet_simple ✗ ✓ ✗ ✗
java ✗ ✓ ✗ ✗
javascript ✗ ✓ ✗ ✗
jq ✗ ✓ ✗ ✗
jsdoc ✗ ✓ ✗ ✗
json ✗ ✓ ✗ ✗
json5 ✗ ✓ ✗ ✗
jsonc ✗ ✓ ✗ ✗
jsonnet ✗ ✓ ✗ ✗
julia ✗ ✓ ✗ ✗
kconfig ✗ ✓ ✗ ✗
kdl ✗ ✓ ✗ ✗
kotlin ✗ ✓ ✗ ✗
kusto ✗ ✓ ✗ ✗
lalrpop ✗ ✓ ✗ ✗
latex ✗ ✓ ✗ ✗
ledger ✗ ✓ ✗ ✗
leo ✗ ✓ ✗ ✗
linkerscript ✗ ✓ ✗ ✗
liquidsoap ✗ ✓ ✗ ✗
llvm ✗ ✓ ✗ ✗
lua ✗ ✓ ✗ ✗
luadoc ✗ ✓ ✗ ✗
luap ✗ ✓ ✗ ✗
luau ✗ ✓ ✗ ✗
m68k ✗ ✓ ✗ ✗
make ✗ ✓ ✗ ✗
markdown ✗ ✓ ✗ ✗
markdown_inline ✗ ✓ ✗ ✗
matlab ✗ ✓ ✗ ✗
menhir ✗ ✓ ✗ ✗
mermaid ✗ ✓ ✗ ✗
meson ✗ ✓ ✗ ✗
nasm ✗ ✓ ✗ ✗
nickel ✗ ✓ ✗ ✗
nim ✗ ✓ ✗ ✗
nim_format_string ✗ ✓ ✗ ✗
ninja ✗ ✓ ✗ ✗
nix ✗ ✓ ✗ ✗
norg ✗ ✓ ✗ ✗
nqc ✗ ✓ ✗ ✗
objc ✗ ✓ ✗ ✗
objdump ✗ ✓ ✗ ✗
ocaml ✗ ✓ ✗ ✗
ocaml_interface ✗ ✓ ✗ ✗
odin ✗ ✓ ✗ ✗
org ✗ ✓ ✗ ✗
pascal ✗ ✓ ✗ ✗
passwd ✗ ✓ ✗ ✗
pem ✗ ✓ ✗ ✗
perl ✗ ✓ ✗ ✗
php ✗ ✓ ✗ ✗
php_only ✗ ✗ ✗ ✗
phpdoc ✗ ✓ ✗ ✗
pioasm ✗ ✓ ✗ ✗
po ✗ ✓ ✗ ✗
pod ✗ ✓ ✗ ✗
poe_filter ✗ ✓ ✗ ✗
pony ✗ ✓ ✗ ✗
printf ✗ ✗ ✗ ✗
prisma ✗ ✓ ✗ ✗
promql ✗ ✓ ✗ ✗
properties ✗ ✓ ✗ ✗
proto ✗ ✓ ✗ ✗
prql ✗ ✓ ✗ ✗
psv ✗ ✓ ✗ ✗
pug ✗ ✓ ✗ ✗
puppet ✗ ✓ ✗ ✗
purescript ✗ ✓ ✗ ✗
pymanifest ✗ ✓ ✗ ✗
python ✗ ✓ ✗ ✗
ql ✗ ✓ ✗ ✗
qmldir ✗ ✓ ✗ ✗
qmljs ✗ ✓ ✗ ✗
query ✗ ✓ ✗ ✗
r ✗ ✓ ✗ ✗
racket ✗ ✓ ✗ ✗
rasi ✗ ✓ ✗ ✗
rbs ✗ ✓ ✗ ✗
re2c ✗ ✓ ✗ ✗
regex ✗ ✓ ✗ ✗
rego ✗ ✓ ✗ ✗
requirements ✗ ✓ ✗ ✗
rnoweb ✗ ✓ ✗ ✗
robot ✗ ✓ ✗ ✗
ron ✗ ✓ ✗ ✗
rst ✗ ✓ ✗ ✗
ruby ✗ ✓ ✗ ✗
rust ✗ ✓ ✗ ✗
scala ✗ ✓ ✗ ✗
scheme ✗ ✓ ✗ ✗
scss ✗ ✓ ✗ ✗
slang ✗ ✓ ✗ ✗
slint ✗ ✓ ✗ ✗
smali ✗ ✓ ✗ ✗
smithy ✗ ✓ ✗ ✗
snakemake ✗ ✓ ✗ ✗
solidity ✗ ✓ ✗ ✗
soql ✗ ✓ ✗ ✗
sosl ✗ ✓ ✗ ✗
sparql ✗ ✓ ✗ ✗
sql ✗ ✓ ✗ ✗
squirrel ✗ ✓ ✗ ✗
ssh_config ✗ ✓ ✗ ✗
starlark ✗ ✓ ✗ ✗
strace ✗ ✓ ✗ ✗
styled ✗ ✗ ✗ ✗
supercollider ✗ ✓ ✗ ✗
surface ✗ ✓ ✗ ✗
svelte ✗ ✓ ✗ ✗
sxhkdrc ✗ ✓ ✗ ✗
systemtap ✗ ✓ ✗ ✗
t32 ✗ ✓ ✗ ✗
tablegen ✗ ✓ ✗ ✗
templ ✗ ✓ ✗ ✗
terraform ✗ ✓ ✗ ✗
textproto ✗ ✓ ✗ ✗
thrift ✗ ✓ ✗ ✗
tiger ✗ ✓ ✗ ✗
tlaplus ✗ ✓ ✗ ✗
todotxt ✗ ✓ ✗ ✗
toml ✗ ✓ ✗ ✗
tsv ✗ ✓ ✗ ✗
tsx ✗ ✓ ✗ ✗
turtle ✗ ✓ ✗ ✗
twig ✗ ✓ ✗ ✗
typescript ✗ ✓ ✗ ✗
typoscript ✗ ✓ ✗ ✗
udev ✗ ✓ ✗ ✗
ungrammar ✗ ✓ ✗ ✗
usd ✗ ✓ ✗ ✗
uxntal ✗ ✓ ✗ ✗
v ✗ ✓ ✗ ✗
vala ✗ ✓ ✗ ✗
verilog ✗ ✓ ✗ ✗
vhs ✗ ✓ ✗ ✗
vim ✗ ✓ ✗ ✗
vimdoc ✗ ✓ ✗ ✗
vue ✗ ✓ ✗ ✗
wgsl ✗ ✓ ✗ ✗
wgsl_bevy ✗ ✓ ✗ ✗
xcompose ✗ ✓ ✗ ✗
xml ✗ ✓ ✗ ✗
yaml ✗ ✓ ✗ ✗
yang ✗ ✓ ✗ ✗
yuck ✗ ✓ ✗ ✗
zathurarc ✗ ✗ ✗ ✗
zig ✗ ✓ ✗ ✗
Can you go to 'test' word with the cursor and launch :Inspect ? you should see something like:
Sure, this is the output:
this is so weird. What's your nvim version?
Yes, it is in fact strange. I'm using nvim 0.9.4. with LazyVim (https://www.lazyvim.org/) and I think my teammate @quiqueporta is using 0.9.5 and have the same problem
Hey @davidarias, I installed Lazyvim and I got the same error. I solved with this: https://github.com/nvim-neotest/neotest/issues/303#issuecomment-1774050197.
Try to put treesitter into your dependencies list. Let me know if you solve too
Yes, that worked @marilari88! Thank you so much for helping us!
Seems it does not recognize tests inside tsx files:
I followed the installation instructions (using lazy) on a clean install, and I have correctly installed treesitter grammar for typescript, tsx and javascript,
Is there some configuration that I am not doing correctly?
Thanks!