-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
neovim: Update bundled tree-sitter parsers #312312
Conversation
217d03c
to
782ad57
Compare
Result of 1 package marked as broken and skipped:
1 package failed to build:
1807 packages built:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM !
Result of 3 packages marked as broken and skipped:
1 package failed to build:
1773 packages built:
|
Result of 1 package marked as broken and skipped:
1 package failed to build:
1776 packages built:
|
nixpkgs-review doesn't tell the whole story here. The nix grammars seem to match neovim's. I've built it locally and I was able to open markdown/help files with |
This is failing for me using … while evaluating derivation 'bash-grammar-neovim-9ca81b0'
whose name attribute is located at /nix/store/r8nhgnkxacbnf4kv8kdi8b6ks3k9b16i-source/pkgs/stdenv/generic/make-derivation.nix:331:7
… while evaluating attribute 'src' of derivation 'bash-grammar-neovim-9ca81b0'
at /nix/store/r8nhgnkxacbnf4kv8kdi8b6ks3k9b16i-source/pkgs/by-name/ne/neovim-unwrapped/package.nix:179:31:
178| ${tree-sitter.buildGrammar {
179| inherit (grammar) src;
| ^
180| version = "neovim-${finalAttrs.version}";
error: attribute 'src' missing
at /nix/store/r8nhgnkxacbnf4kv8kdi8b6ks3k9b16i-source/pkgs/by-name/ne/neovim-unwrapped/package.nix:179:31:
178| ${tree-sitter.buildGrammar {
179| inherit (grammar) src;
| ^
180| version = "neovim-${finalAttrs.version}";
Did you mean url? |
@gvolpe are you using nightly by any chance ? I had the same error but using nixpkgs' neovim fixed it. I will try to fix nightly in the upcoming days |
@teto yeah spot on, it only fails with nightly, works with the latest stable v0.10.0 👍🏽 |
Calling attention to a regression: inline highlighting (```<lang>) is broken for me after updating, with the error noted in #312763 displayed by edit: Actually, it seems like inline highlighting isn't broken anymore? I don't know that I did anything to fix it. Still getting the |
Description of changes
Update bundled parsers (+ updater)
New deps are in: https://github.com/neovim/neovim/blob/06135cc21571b2707121e31176f544a0e0901e1d/cmake.deps/deps.txt
To avoid issues like #311047 (comment)
I'm currently having issues to build theneovim
package as the tree-sitter-markdown repo actually has 2 parsers 🤔Will check how it's packaged in nixpkgs, to see how to update neovim's env build..
I copied the parser overrides for the markdown parsers as is done here:
nixpkgs/pkgs/development/tools/parsing/tree-sitter/default.nix
Lines 72 to 73 in ea77cef
I quickly tested things by opening a few files and checked with
⚠️ I'm not 100% sure how to check that the
:InspectTree
that the parser is correctly working.markdown_inline
parser works though, every line of a markdown document are marked asinline
but it doesn't go down into themarkdown_inline
parser. Do I need thenvim-treesitter
plugin for that to work?Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.