Perhaps the dep on tree-sitter-git
can be changed to versioned deps?
tree-sitter>=0.21.0
Git Clone URL: | https://aur.archlinux.org/neovim-git.git (read-only, click to copy) |
---|---|
Package Base: | neovim-git |
Description: | Fork of Vim aiming to improve user experience, plugins, and GUIs |
Upstream URL: | https://neovim.io |
Keywords: | editor |
Licenses: | custom:neovim |
Conflicts: | neovim |
Provides: | neovim, vim-plugin-runtime |
Submitter: | fhahn |
Maintainer: | Farzat |
Last Packager: | Farzat |
Votes: | 256 |
Popularity: | 1.76 |
First Submitted: | 2014-02-21 19:50 (UTC) |
Last Updated: | 2024-03-11 05:36 (UTC) |
« First ‹ Previous 1 2 3 4 5 6 7 .. 40 Next › Last »
Perhaps the dep on tree-sitter-git
can be changed to versioned deps?
tree-sitter>=0.21.0
Opened this issue: github/neovim/#27640 (closed as won't fix)
Related issue: github/tree-sitter#3091
Previous work around, rebuild aur/tree-sitter-git
with source on line 17 modified:
source=("git+https://github.com/tree-sitter/tree-sitter.git#commit=52d69790f36b96ecc1541f6106782ab12786f7cb")
The package failed to build with this error:
/usr/bin/ld: /tmp/ccvRm0bn.ltrans28.ltrans.o: in function `tslua_init':
/home/goldman/.cache/paru/clone/neovim-git/src/neovim/src/nvim/lua/treesitter.c:171:(.text+0x36aa): undefined reference to `ts_set_allocator'
collect2: error: ld returned 1 exit status
make[2]: *** [src/nvim/CMakeFiles/nvim_bin.dir/build.make:5150: bin/nvim] Error 1
make[2]: Leaving directory '/home/goldman/.cache/paru/clone/neovim-git/src/neovim/build'
make[1]: *** [CMakeFiles/Makefile2:624: src/nvim/CMakeFiles/nvim_bin.dir/all] Error 2
make[1]: Leaving directory '/home/goldman/.cache/paru/clone/neovim-git/src/neovim/build'
make: *** [Makefile:156: all] Error 2
Hi, do you know why this package doesn't use neovim's default colorscheme when used without configuration? Also, typing :help (also without an init.lua) I get errors regarding tree-sitter. I know it is uncommon to run neovim without an init.lua, but first time users can. It happened to me as I was troubleshooting issues with my config. The package from extra is not affected by this problem.
I also fixed the package versioning. Instead of using git tags, pkgver() now gets that info from CMakeLists.txt.
I switched to tree-sitter-git for now. That should fix the build problems.
@grappas I was running into the same issue, I was able to avoid it for the time being by editing the PKGBUILD to build and make the bundled tree-sitter dependency.
I assume this means that the standard tree-sitter version in our main repos is somehow the culprit? Not sure, maybe others with more insight can chime in.
--edit So yes, appears to be the issue with the standard tree-sitter package which is from Feb '23
Meanwhile the ts_query_cursor_set_max_start_depth
api was not added until Apr '23
tldr; will need to either install tree-sitter-git from the aur, or edit the neovim-git PKGBUILD to build and use the bundled tree-sitter dependency -- at least until the tree-sitter package from the main repos is updated
here's an example of modifying build()
to use the bundled
build() {
cmake -S"$_pkgname/cmake.deps" -B"$_pkgname/.deps" \
-GNinja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DUSE_BUNDLED=OFF \
-DUSE_BUNDLED_TS=ON
cmake --build "$_pkgname/.deps"
cmake -S"$_pkgname" -Bbuild \
-GNinja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build build
}
/usr/bin/ld: /tmp/ccQVL6AK.ltrans27.ltrans.o: in function `node_rawquery':
/home/grappas/.cache/yay/neovim-git/src/neovim/src/nvim/lua/treesitter.c:1452:(.text+0x8736): undefined reference to `ts_query_cursor_set_max_start_depth'
/usr/bin/ld: /home/grappas/.cache/yay/neovim-git/src/neovim/src/nvim/lua/treesitter.c:1476:(.text+0x8953): undefined reference to `ts_query_cursor_set_max_start_depth'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
As later it will not build at all
-- Install configuration: "RelWithDebInfo"
-- Set non-toolchain portion of runtime path of "/home/phusho/.cache/aurutils/sync/neovim-git/pkg/neovim-git/usr/bin/nvim" to ""
CMake Error at build/src/nvim/cmake_install.cmake:102 (file):
file INSTALL cannot find
"/home/phusho/.cache/aurutils/sync/neovim-git/src/build/lib/nvim": No such
file or directory.
Call Stack (most recent call first):
build/cmake_install.cmake:87 (include)
==> ERROR: A failure occurred in package().
Aborting...
Pinned Comments
fwalch commented on 2016-07-04 19:52 (UTC) (edited on 2016-07-04 19:54 (UTC) by fwalch)