Well, I must acknowledge that the process of rebuilding all nvim-treesitter plugins is indeed quite frustrating.
If you wish to avoid frequent rebuilds of this package, it is recommended to add it to the IgnorePkg
list in /etc/pacman.conf
.
Git Clone URL: | https://aur.archlinux.org/lunarvim-git.git (read-only, click to copy) |
---|---|
Package Base: | lunarvim-git |
Description: | An IDE layer for Neovim with sane defaults. Completely free and community driven. |
Upstream URL: | https://github.com/LunarVim/LunarVim |
Keywords: | lunarvim neovim |
Licenses: | GPL3 |
Submitter: | edward-p |
Maintainer: | Hanatomizu |
Last Packager: | Hanatomizu |
Votes: | 6 |
Popularity: | 0.24 |
First Submitted: | 2021-08-08 18:14 (UTC) |
Last Updated: | 2024-09-16 05:04 (UTC) |
Well, I must acknowledge that the process of rebuilding all nvim-treesitter plugins is indeed quite frustrating.
If you wish to avoid frequent rebuilds of this package, it is recommended to add it to the IgnorePkg
list in /etc/pacman.conf
.
@infernalbullfrog
That sounds interesting. I conducted some experiments on my computer, and the version of the built package is 1.4.0.r3.g85ccca97, instead of 1.4.0-3-g85ccca97.
I tried to use paru to reproduce the issue but it didn't rebuild the package unless nvim-treesitter had new commits. I think it is because paru checked nvim-treesitter for new commits that caused a rebuild on your computer, nvim-treesitter is being actively maintained, after all.
Please check if nvim-treesitter is updated when it rebuilds next time.
And if you run paru twice at a time, and this package is also updated, please send your log, thanks.
I really have no idea why it occurs.
@Hanatomizu I might know what's going on -- paru by default checks for an upstream commit for -git packages and rebuilds the package if there is. You can stop this by turning of the Devel option in paru.conf.
However, the fact that it keeps thinking there's a new commit is interesting. That suggests there's something about how paru assumes the current commit that differs from how the PKGBUILD is written. I do note that the commit tag for the current commit is 1.4.0-3-g85ccca97. Is paru comparing that against the PKGBUILD version number, which here is listed as 1.4.0.r3.g85ccca97?
@infernalbullfrog Sorry, but I can't reproduce this problem, maybe it's unique to paru and they have solved it.
I've noticed that every time I check for system updates, my aur manager wants to update this package despite there not being any change to the repo. Is this behavior unique to paru? Is there a way to suppress it aside from using --ignore=lunarvim-git every time I paru -Syu?
@infernalbullfrog Thank you for your feedback. nvim-treesitter has updated the command of installing parsers, which directly caused the script to fail. I've fixed the script and it should work now. :)
Build has failed since I first installed this:
==> Making package: lunarvim-git 1.4.0.r3.g85ccca97-2 (Fri 13 Sep 2024 11:01:43 AM PDT)
==> Retrieving sources...
-> Updating lunarvim-git git repo...
-> Updating nvim-treesitter git repo...
From https://github.com/nvim-treesitter/nvim-treesitter
- [deleted] (none) -> refs/pull/7128/merge
remote: Enumerating objects: 386, done.
remote: Counting objects: 100% (369/369), done.
remote: Compressing objects: 100% (150/150), done.
remote: Total 386 (delta 223), reused 312 (delta 181), pack-reused 17 (from 1)
Receiving objects: 100% (386/386), 86.03 KiB | 43.01 MiB/s, done.
Resolving deltas: 100% (225/225), completed with 17 local objects.
+ 1058d80eb...22ce5c053 feat/version -> feat/version (forced update)
+ 6002ea0c1...aa4d678da main -> main (forced update)
6a3c6a42a..e0338f2b7 master -> master
+ 7cc3324a8...f34a9484b update-lockfile-pr -> update-lockfile-pr (forced update)
6a3c6a42a..aa4d678da update-readme-pr -> update-readme-pr
+ 59c6f742f...5b5c60f40 refs/pull/5344/merge -> refs/pull/5344/merge (forced update)
+ e18cd9dfd...1ad16bf13 refs/pull/6704/merge -> refs/pull/6704/merge (forced update)
+ d24810156...a272c865f refs/pull/7056/merge -> refs/pull/7056/merge (forced update)
+ 3cc9eb869...e6ea56266 refs/pull/7118/merge -> refs/pull/7118/merge (forced update)
+ df7df4513...5faf1324a refs/pull/7130/merge -> refs/pull/7130/merge (forced update)
* [new ref] refs/pull/7137/head -> refs/pull/7137/head
* [new ref] refs/pull/7138/head -> refs/pull/7138/head
* [new ref] refs/pull/7139/head -> refs/pull/7139/head
* [new ref] refs/pull/7139/merge -> refs/pull/7139/merge
* [new ref] refs/pull/7140/head -> refs/pull/7140/head
* [new ref] refs/pull/7140/merge -> refs/pull/7140/merge
* [new ref] refs/pull/7141/head -> refs/pull/7141/head
* [new ref] refs/pull/7141/merge -> refs/pull/7141/merge
* [new ref] refs/pull/7142/head -> refs/pull/7142/head
* [new ref] refs/pull/7143/head -> refs/pull/7143/head
* [new ref] refs/pull/7144/head -> refs/pull/7144/head
* [new ref] refs/pull/7145/head -> refs/pull/7145/head
-> Found init-lvim.sh
-> Found lvim
==> Validating source files with sha256sums...
lunarvim-git ... Skipped
nvim-treesitter ... Skipped
init-lvim.sh ... Passed
lvim ... Passed
==> Making package: lunarvim-git 1.4.0.r3.g85ccca97-2 (Fri 13 Sep 2024 11:01:45 AM PDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating lunarvim-git git repo...
-> Updating nvim-treesitter git repo...
-> Found init-lvim.sh
-> Found lvim
==> Validating source files with sha256sums...
lunarvim-git ... Skipped
nvim-treesitter ... Skipped
init-lvim.sh ... Passed
lvim ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
-> Creating working copy of lunarvim-git git repo...
Cloning into 'lunarvim-git'...
done.
Switched to a new branch 'makepkg'
-> Creating working copy of nvim-treesitter git repo...
Cloning into 'nvim-treesitter'...
done.
Switched to a new branch 'makepkg'
==> Starting pkgver()...
==> Sources are ready.
lunarvim-git-1.4.0.r3.g85ccca97-2: parsing pkg list...
==> Making package: lunarvim-git 1.4.0.r3.g85ccca97-2 (Fri 13 Sep 2024 11:01:47 AM PDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
All parsers are up-to-date!==> Entering fakeroot environment...
==> Starting package()...
install: cannot stat '~/.cache/paru/clone/lunarvim-git/src/nvim-treesitter/parser/*.so': No such file or directory
==> ERROR: A failure occurred in package().
Aborting...
error: failed to build 'lunarvim-git-1.4.0.r3.g85ccca97-2':
error: packages failed to build: lunarvim-git-1.4.0.r3.g85ccca97-2
@grdgkjrpdihe Thank you! Now it should be fixed.
diff --git a/PKGBUILD b/PKGBUILD
index b817ca3..dd521c3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -74,8 +77,8 @@ package() {
install -Dm 755 "${parser}" "${pkgdir}/usr/share/lunarvim/prebuild/nvim-treesitter/parser/${parser##/*/}"
done
- for info in "${srcdir}/nvim-treesitter/parser/"*; do
- install -Dm 755 "${info}" "${pkgdir}/usr/share/lunarvim/prebuild/nvim-treesitter/parser/${info##/*/}"
+ for info in "${srcdir}/nvim-treesitter/parser-info/"*; do
+ install -Dm 755 "${info}" "${pkgdir}/usr/share/lunarvim/prebuild/nvim-treesitter/parser-info/${info##/*/}"
done
install -Dm 644 "README.md" "${pkgdir}/usr/share/doc/lunarvim/README.md"
this should be applied as well
as https://github.com/LunarVim/LunarVim/blob/38216e6701a63e403e735896b558d6cbb1d0c1ed/lua/lvim/core/treesitter.lua#L9 , markdown_inline
should be add to langs
(i change TSUpdateSync ${lang}
to TSInstallSync all
and move it out of loop to build all languages as possible)
tree-sitter-cli
should moved to make deps since it only been used at Generating source files from grammar.js
while building
Pinned Comments
Hanatomizu commented on 2025-01-31 13:37 (UTC)
Well, I must acknowledge that the process of rebuilding all nvim-treesitter plugins is indeed quite frustrating.
If you wish to avoid frequent rebuilds of this package, it is recommended to add it to the
IgnorePkg
list in/etc/pacman.conf
.