NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.39k stars 14.35k forks source link

Many Tree-sitter parsers are unable to be loaded by neovim. #132184

Closed kevincox closed 3 years ago

kevincox commented 3 years ago

The parser does not work and an error is visible in :checkhealth.

ERROR: Impossible to load parser for tree-sitter-bash: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-bash.so: undefined symbol: tree_sitter_tree-sitter-bash

Steps To Reproduce

Steps to reproduce the behavior:

programs.neovim.runtime."parser/bash.so" = "${pkgs.tree-sitter.builtGrammars.bash}"/parser";

Expected behavior

The parsers all work.

Additional context

This happens for many, but not all, parsers.

:checkhealth ``` health#treesitter#check ======================================================================== ## Checking treesitter configuration - INFO: Runtime ABI version : 13 - ERROR: Impossible to load parser for tree-sitter-agda: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-agda.so: undefined symbol: tree_sitter_tree-sitter-agda - ERROR: Impossible to load parser for tree-sitter-agda.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-agda.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-agda.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-agda.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-agda.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-agda.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-bash: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-bash.so: undefined symbol: tree_sitter_tree-sitter-bash - ERROR: Impossible to load parser for tree-sitter-bash.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-bash.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-bash.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-bash.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-bash.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-bash.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-c-sharp: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-c-sharp.so: undefined symbol: tree_sitter_tree-sitter-c-sharp - ERROR: Impossible to load parser for tree-sitter-c-sharp.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-c-sharp.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-c-sharp.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-c-sharp.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-c-sharp.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-c-sharp.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-c: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-c.so: undefined symbol: tree_sitter_tree-sitter-c - ERROR: Impossible to load parser for tree-sitter-c.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-c.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-c.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-c.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-c.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-c.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-cpp: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-cpp.so: undefined symbol: tree_sitter_tree-sitter-cpp - ERROR: Impossible to load parser for tree-sitter-cpp.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-cpp.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-cpp.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-cpp.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-cpp.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-cpp.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-css: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-css.so: undefined symbol: tree_sitter_tree-sitter-css - ERROR: Impossible to load parser for tree-sitter-css.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-css.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-css.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-css.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-css.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-css.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-embedded-template: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-embedded-template.so: undefined symbol: tree_sitter_tree-sitter-embedded-template - ERROR: Impossible to load parser for tree-sitter-embedded-template.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-embedded-template.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-embedded-template.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-embedded-template.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-embedded-template.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-embedded-template.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-fennel: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-fennel.so: undefined symbol: tree_sitter_tree-sitter-fennel - ERROR: Impossible to load parser for tree-sitter-fennel.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-fennel.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-fennel.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-fennel.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-fennel.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-fennel.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-fluent: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-fluent.so: undefined symbol: tree_sitter_tree-sitter-fluent - ERROR: Impossible to load parser for tree-sitter-fluent.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-fluent.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-fluent.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-fluent.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-fluent.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-fluent.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-go: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-go.so: undefined symbol: tree_sitter_tree-sitter-go - ERROR: Impossible to load parser for tree-sitter-go.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-go.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-go.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-go.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-go.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-go.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-haskell: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-haskell.so: undefined symbol: tree_sitter_tree-sitter-haskell - ERROR: Impossible to load parser for tree-sitter-haskell.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-haskell.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-haskell.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-haskell.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-haskell.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-haskell.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-html: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-html.so: undefined symbol: tree_sitter_tree-sitter-html - ERROR: Impossible to load parser for tree-sitter-html.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-html.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-html.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-html.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-html.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-html.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-java: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-java.so: undefined symbol: tree_sitter_tree-sitter-java - ERROR: Impossible to load parser for tree-sitter-java.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-java.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-java.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-java.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-java.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-java.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-javascript: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-javascript.so: undefined symbol: tree_sitter_tree-sitter-javascript - ERROR: Impossible to load parser for tree-sitter-javascript.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-javascript.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-javascript.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-javascript.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-javascript.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-javascript.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-jsdoc: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-jsdoc.so: undefined symbol: tree_sitter_tree-sitter-jsdoc - ERROR: Impossible to load parser for tree-sitter-jsdoc.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-jsdoc.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-jsdoc.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-jsdoc.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-jsdoc.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-jsdoc.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-json: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-json.so: undefined symbol: tree_sitter_tree-sitter-json - ERROR: Impossible to load parser for tree-sitter-json.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-json.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-json.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-json.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-json.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-json.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-julia: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-julia.so: undefined symbol: tree_sitter_tree-sitter-julia - ERROR: Impossible to load parser for tree-sitter-julia.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-julia.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-julia.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-julia.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-julia.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-julia.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-latex: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-latex.so: undefined symbol: tree_sitter_tree-sitter-latex - ERROR: Impossible to load parser for tree-sitter-latex.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-latex.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-latex.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-latex.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-latex.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-latex.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-lua: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-lua.so: undefined symbol: tree_sitter_tree-sitter-lua - ERROR: Impossible to load parser for tree-sitter-lua.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-lua.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-lua.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-lua.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-lua.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-lua.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-markdown: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-markdown.so: undefined symbol: tree_sitter_tree-sitter-markdown - ERROR: Impossible to load parser for tree-sitter-markdown.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-markdown.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-markdown.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-markdown.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-markdown.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-markdown.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-nix: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-nix.so: undefined symbol: tree_sitter_tree-sitter-nix - ERROR: Impossible to load parser for tree-sitter-nix.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-nix.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-nix.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-nix.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-nix.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-nix.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-ocaml-interface: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-ocaml-interface.so: undefined symbol: tree_sitter_tree-sitter-ocaml-interface - ERROR: Impossible to load parser for tree-sitter-ocaml-interface.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-ocaml-interface.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-ocaml-interface.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-ocaml-interface.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-ocaml-interface.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-ocaml-interface.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-ocaml: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-ocaml.so: undefined symbol: tree_sitter_tree-sitter-ocaml - ERROR: Impossible to load parser for tree-sitter-ocaml.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-ocaml.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-ocaml.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-ocaml.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-ocaml.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-ocaml.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-php: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-php.so: undefined symbol: tree_sitter_tree-sitter-php - ERROR: Impossible to load parser for tree-sitter-php.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-php.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-php.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-php.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-php.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-php.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-python: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-python.so: undefined symbol: tree_sitter_tree-sitter-python - ERROR: Impossible to load parser for tree-sitter-python.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-python.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-python.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-python.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-python.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-python.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-ql: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-ql.so: undefined symbol: tree_sitter_tree-sitter-ql - ERROR: Impossible to load parser for tree-sitter-ql.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-ql.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-ql.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-ql.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-ql.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-ql.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-regex: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-regex.so: undefined symbol: tree_sitter_tree-sitter-regex - ERROR: Impossible to load parser for tree-sitter-regex.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-regex.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-regex.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-regex.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-regex.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-regex.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-ruby: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-ruby.so: undefined symbol: tree_sitter_tree-sitter-ruby - ERROR: Impossible to load parser for tree-sitter-ruby.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-ruby.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-ruby.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-ruby.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-ruby.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-ruby.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-rust: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-rust.so: undefined symbol: tree_sitter_tree-sitter-rust - ERROR: Impossible to load parser for tree-sitter-rust.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-rust.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-rust.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-rust.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-rust.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-rust.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-scala: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-scala.so: undefined symbol: tree_sitter_tree-sitter-scala - ERROR: Impossible to load parser for tree-sitter-scala.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-scala.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-scala.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-scala.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-scala.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-scala.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-svelte: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-svelte.so: undefined symbol: tree_sitter_tree-sitter-svelte - ERROR: Impossible to load parser for tree-sitter-svelte.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-svelte.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-svelte.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-svelte.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-svelte.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-svelte.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-swift: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-swift.so: undefined symbol: tree_sitter_tree-sitter-swift - ERROR: Impossible to load parser for tree-sitter-swift.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-swift.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-swift.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-swift.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-swift.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-swift.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-toml: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-toml.so: undefined symbol: tree_sitter_tree-sitter-toml - ERROR: Impossible to load parser for tree-sitter-toml.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-toml.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-toml.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-toml.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-toml.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-toml.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-tsq: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-tsq.so: undefined symbol: tree_sitter_tree-sitter-tsq - ERROR: Impossible to load parser for tree-sitter-tsq.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-tsq.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-tsq.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-tsq.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-tsq.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-tsq.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-tsx: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-tsx.so: undefined symbol: tree_sitter_tree-sitter-tsx - ERROR: Impossible to load parser for tree-sitter-tsx.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-tsx.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-tsx.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-tsx.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-tsx.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-tsx.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-typescript: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-typescript.so: undefined symbol: tree_sitter_tree-sitter-typescript - ERROR: Impossible to load parser for tree-sitter-typescript.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-typescript.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-typescript.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-typescript.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-typescript.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-typescript.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-verilog: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-verilog.so: undefined symbol: tree_sitter_tree-sitter-verilog - ERROR: Impossible to load parser for tree-sitter-verilog.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-verilog.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-verilog.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-verilog.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-verilog.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-verilog.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-yaml: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-yaml.so: undefined symbol: tree_sitter_tree-sitter-yaml - ERROR: Impossible to load parser for tree-sitter-yaml.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-yaml.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-yaml.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-yaml.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-yaml.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-yaml.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-zig: Failed to load parser: uv_dlsym: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-zig.so: undefined symbol: tree_sitter_tree-sitter-zig - ERROR: Impossible to load parser for tree-sitter-zig.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-zig.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-zig.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-zig.so.gid: file too short - ERROR: Impossible to load parser for tree-sitter-zig.so: Failed to load parser: uv_dlopen: /nix/store/8m8lpz90rfhw8im1wqribcm55l5llx15-runtime/etc/parser/tree-sitter-zig.so.gid: file too short - OK: Loaded parser for beancount: ABI version 13 - OK: Loaded parser for bibtex: ABI version 13 - OK: Loaded parser for c: ABI version 13 - OK: Loaded parser for c_sharp: ABI version 13 - OK: Loaded parser for clojure: ABI version 13 - OK: Loaded parser for comment: ABI version 13 - OK: Loaded parser for commonlisp: ABI version 13 - OK: Loaded parser for css: ABI version 13 - OK: Loaded parser for dart: ABI version 13 - OK: Loaded parser for dockerfile: ABI version 13 - OK: Loaded parser for erlang: ABI version 13 - OK: Loaded parser for fennel: ABI version 13 - OK: Loaded parser for fish: ABI version 13 - OK: Loaded parser for glimmer: ABI version 13 - OK: Loaded parser for go: ABI version 13 - OK: Loaded parser for gomod: ABI version 13 - OK: Loaded parser for graphql: ABI version 13 - OK: Loaded parser for java: ABI version 13 - OK: Loaded parser for javascript: ABI version 13 - OK: Loaded parser for jsdoc: ABI version 13 - OK: Loaded parser for json: ABI version 13 - OK: Loaded parser for jsonc: ABI version 13 - OK: Loaded parser for julia: ABI version 13 - OK: Loaded parser for kotlin: ABI version 13 - OK: Loaded parser for latex: ABI version 13 - OK: Loaded parser for ledger: ABI version 13 - OK: Loaded parser for nix: ABI version 13 - OK: Loaded parser for ql: ABI version 13 - OK: Loaded parser for query: ABI version 13 - OK: Loaded parser for r: ABI version 13 - OK: Loaded parser for regex: ABI version 13 - OK: Loaded parser for rst: ABI version 13 - OK: Loaded parser for rust: ABI version 13 - OK: Loaded parser for scala: ABI version 13 - OK: Loaded parser for scss: ABI version 13 - OK: Loaded parser for sparql: ABI version 13 - OK: Loaded parser for supercollider: ABI version 13 - OK: Loaded parser for svelte: ABI version 13 - OK: Loaded parser for toml: ABI version 13 - OK: Loaded parser for tsx: ABI version 13 - OK: Loaded parser for turtle: ABI version 13 - OK: Loaded parser for typescript: ABI version 13 - OK: Loaded parser for verilog: ABI version 13 - OK: Loaded parser for yang: ABI version 13 - OK: Loaded parser for zig: ABI version 13 ```

(I think the "file too short" is an unrelated bug in the NixOS neovim module)

Notify maintainers

@teto: NixOS neovim module. @Profpatsch: Tree-sitter

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
- tree-sitter
# a list of nixos modules affected by the problem
module:
- programs.neovim
jlesquembre commented 3 years ago

Is that still an issue? on latest nixos-unstable I cannot reproduce it. I'm getting errors for some grammars (ABI mismatch) but not for bash

As I side note, I recommend that you install the grammars this way: https://nixos.org/manual/nixpkgs/unstable#idm140737316593248

kevincox commented 3 years ago

I just checked and this is no longer an issue based on nixos-unstable this morning.

And thanks for that link. I looked for it but don't know how I missed it.