I switched to tree-sitter-git for now. That should fix the build problems.
Search Criteria
Package Details: neovim-git 0.11.0.r711.g7b7c95dac9-1
Package Actions
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 (gpanders) |
Last Packager: | gpanders |
Votes: | 257 |
Popularity: | 1.50 |
First Submitted: | 2014-02-21 19:50 (UTC) |
Last Updated: | 2024-09-04 00:24 (UTC) |
Dependencies (24)
- libluv
- libutf8proc (libutf8proc-gitAUR)
- libuv (libuv-gitAUR)
- lua51-lpeg
- luajit (luajit-2.1-lua52-gitAUR, luajit-gitAUR, luajit-openrestyAUR)
- msgpack-c
- tree-sitter (tree-sitter-gitAUR)
- tree-sitter-c (tree-sitter-c-gitAUR)
- tree-sitter-lua (tree-sitter-lua-gitAUR)
- tree-sitter-markdown (tree-sitter-markdown-gitAUR)
- tree-sitter-query
- tree-sitter-vim
- tree-sitter-vimdoc (tree-sitter-vimdoc-gitAUR)
- unibilium
- cmake (cmake-gitAUR) (make)
- git (git-gitAUR, git-glAUR) (make)
- ninja (ninja-kitwareAUR, ninja-memAUR, ninja-fuchsia-gitAUR, ninja-gitAUR, ninja-jobserverAUR) (make)
- unzip (unzip-natspecAUR, unzip-zstdAUR) (make)
- python-pynvim (python-pynvim-gitAUR) (optional) – for Python plugin support (see :help python)
- tree-sitter-bash (tree-sitter-bash-gitAUR) (optional) – tree-sitter parser for bash
- Show 4 more dependencies...
Required by (430)
- candyvim-git (requires neovim)
- cmp-buffer (requires neovim)
- completion-nvim (requires neovim)
- cppman-git (requires neovim) (optional)
- deoplete (requires neovim) (optional)
- deoplete-git (requires neovim) (optional)
- eovim (requires neovim)
- fvim (requires neovim)
- fvim-bin (requires neovim)
- glrnvim (requires neovim)
- gnvim (requires neovim)
- gnvim-git (requires neovim)
- goneovim-bin (requires neovim)
- goneovim-git (requires neovim)
- gonvim (requires neovim)
- grg-git (requires neovim) (optional)
- hyprforest-installer-bin (requires neovim) (optional)
- lua51-prompt-style (requires neovim) (optional)
- lunarvim-git (requires neovim)
- mason.nvim (requires neovim)
- Show 410 more...
Sources (3)
Latest Comments
« First ‹ Previous 1 2 3 4 5 6 7 8 .. 40 Next › Last »
Farzat commented on 2024-01-31 03:50 (UTC)
carbonchauvinist commented on 2024-01-27 19:43 (UTC) (edited on 2024-01-29 05:14 (UTC) by carbonchauvinist)
@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
}
grappas commented on 2024-01-26 23:10 (UTC)
/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.
phush0 commented on 2024-01-21 12:01 (UTC)
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...
sapient_cogbag commented on 2023-09-27 05:55 (UTC) (edited on 2023-09-27 06:34 (UTC) by sapient_cogbag)
The Neovim built by this PKGBUILD currently does not work fully. Neovim now by-default depends on some bundled TreeSitter parsers (in particular, for LSP hover, it now needs the Markdown treesitter parser ^.^), and this PKGBUILD doesn't currently build those default bundled treesitter parsers.
To fix it, it should hopefully be relatively simple - the neovim github provides instructions on how to include only one or two bundled deps: https://github.com/neovim/neovim/wiki/Building-Neovim#how-to-build-without-bundled-dependencies
The relevant CMake define to use on the dependencies CMake dir (from looking in https://github.com/neovim/neovim/blob/master/cmake.deps/CMakeLists.txt ^.^) should be -DUSE_BUNDLED=OFF -DUSE_BUNDLED_TS_PARSERS
Edit: In particular, it gives errors when trying to use LSP hover, because it expects the markdown
and markdown_inner
parsers to be installed :(
Edit 2: This code in build()
fixes the problem for me ^.^
cmake -S"$_pkgname/cmake.deps" -B"$_pkgname/.deps" \
-GNinja \
-DUSE_BUNDLED=OFF \
-DUSE_BUNDLED_TS_PARSERS=ON
cmake --build "$_pkgname/.deps"
cmake -S"$_pkgname" -Bbuild \
-GNinja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build build
It ends up with the cmake --install
putting the parsers in /usr/lib/nvim/parser
, but I think that's on the runtimepath
given that it still makes neovim work correctly :)
willemw commented on 2023-08-29 16:53 (UTC) (edited on 2023-08-29 17:05 (UTC) by willemw)
The git command in pkgver() does not print the latest tag. It prints v0.9.0
.
The latest version is v0.9.1
. Package neovim is on version 0.9.1. See also the output of git tag
.
EDIT: The installed version is even higher:
$ nvim --version
NVIM v0.10.0-dev-986+g97cfee39ee
...
eclairevoyant commented on 2023-07-19 23:47 (UTC) (edited on 2023-07-20 00:22 (UTC) by eclairevoyant)
@alone no. https://bugs.archlinux.org/task/34677
@REMorin read https://wiki.archlinux.org/title/Arch_User_Repository#Flagging_packages_out-of-date, also you obviously didn't read the pinned comment
REmorin commented on 2023-07-19 11:38 (UTC)
@eclairevoyant, the version should be 0.10.0.*
, shouldn't it?
alone commented on 2023-07-14 08:22 (UTC)
Can it clone neovim repository with --depth 1
, it would reduce download size and time a lot.
Pinned Comments
fwalch commented on 2016-07-04 19:52 (UTC) (edited on 2016-07-04 19:54 (UTC) by fwalch)