@Ranguna I had the same issue and it's because aur/tree-sitter-git was out of date. Rebuilding that first allowed neovim-git to compile successfully.
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.17 |
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 (431)
- 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 411 more...
Sources (3)
enticedwanderer commented on 2024-11-12 19:58 (UTC)
gpanders commented on 2024-08-31 20:33 (UTC) (edited on 2024-08-31 20:42 (UTC) by gpanders)
Fixing this will require either packaging libutf8proc-git in the AUR or waiting for upstream to switch back to a release.
EDIT: For now I'm building with bundled utf8proc. This is temporary until upstream pins back to a stable release (which is packaged in Arch).
KdU7aq commented on 2024-08-31 18:55 (UTC)
Fails to build since this commit from today:
[0/2] Re-checking globbed directories...
[4/658] cd /home/kdu7aq/.cache/paru/clone/neovim-git/src/neovim/build/src/nvim...ome/kdu7aq/.cache/paru/clone/neovim-git/src/neovim/cmake/GenerateVersion.cmake
-- Using NVIM_VERSION: v0.11.0-dev-686+ge1937286f0
[526/658] Building C object src/nvim/CMakeFiles/nvim_bin.dir/mbyte.c.o
FAILED: src/nvim/CMakeFiles/nvim_bin.dir/mbyte.c.o
/usr/sbin/cc -DHAVE_UNIBILIUM -DINCLUDE_GENERATED_DECLARATIONS -DUNIT_TESTING -DUTF8PROC_STATIC -D_GNU_SOURCE -Dnvim_bin_EXPORTS -I/home/kdu7aq/.cache/paru/clone/neovim-git/src/neovim/build/src/nvim/auto -I/home/kdu7aq/.cache/paru/clone/neovim-git/src/neovim/build/include -I/home/kdu7aq/.cache/paru/clone/neovim-git/src/neovim/build/cmake.config -I/home/kdu7aq/.cache/paru/clone/neovim-git/src/neovim/src -isystem /usr/include/luajit-2.1 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -O3 -DNDEBUG -flto=auto -fno-fat-lto-objects -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wvla -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -fsigned-char -fstack-protector-strong -Wno-conversion -fno-common -Wno-unused-result -Wimplicit-fallthrough -fdiagnostics-color=always -MD -MT src/nvim/CMakeFiles/nvim_bin.dir/mbyte.c.o -MF src/nvim/CMakeFiles/nvim_bin.dir/mbyte.c.o.d -o src/nvim/CMakeFiles/nvim_bin.dir/mbyte.c.o -c /home/kdu7aq/.cache/paru/clone/neovim-git/src/neovim/src/nvim/mbyte.c
/home/kdu7aq/.cache/paru/clone/neovim-git/src/neovim/src/nvim/mbyte.c: In function ‘utf_char2cells’:
/home/kdu7aq/.cache/paru/clone/neovim-git/src/neovim/src/nvim/mbyte.c:482:29: error: ‘utf8proc_property_t’ {aka ‘const struct utf8proc_property_struct’} has no member named ‘ambiguous_width’
482 | if (*p_ambw == 'd' && prop->ambiguous_width) {
| ^~
/home/kdu7aq/.cache/paru/clone/neovim-git/src/neovim/src/nvim/mbyte.c:488:39: error: ‘utf8proc_property_t’ {aka ‘const struct utf8proc_property_struct’} has no member named ‘ambiguous_width’
488 | if (p_emoji && c >= 0x1f000 && !prop->ambiguous_width && prop_is_emojilike(prop)) {
| ^~
/home/kdu7aq/.cache/paru/clone/neovim-git/src/neovim/src/nvim/mbyte.c: In function ‘utf_ambiguous_width’:
/home/kdu7aq/.cache/paru/clone/neovim-git/src/neovim/src/nvim/mbyte.c:1348:14: error: ‘utf8proc_property_t’ {aka ‘const struct utf8proc_property_struct’} hasno member named ‘ambiguous_width’
1348 | return prop->ambiguous_width || prop_is_emojilike(prop);
| ^~
/home/kdu7aq/.cache/paru/clone/neovim-git/src/neovim/src/nvim/mbyte.c:1349:1: warning: control reaches end of non-void function [-Wreturn-type]
1349 | }
| ^
[539/658] Building C object src/nvim/CMakeFiles/nvim_bin.dir/move.c.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
Aborting...
error: failed to build 'neovim-git-0.11.0.r164.g3a1515bfee-1':
gpanders commented on 2024-06-30 16:59 (UTC)
@CosmicBagel The PKGBUILD was updated earlier today to include libutf8proc https://aur.archlinux.org/cgit/aur.git/commit/?h=neovim-git&id=f8fd47a5c8eddb92372d427c1c2f4273f52b585f
CosmicBagel commented on 2024-06-30 16:05 (UTC)
Looks like libutf8proc needs to be added as a dependency https://archlinux.org/packages/extra/x86_64/libutf8proc/
The commit where its added as a needed dependency in neovim https://github.com/neovim/neovim/commit/32e16cb0b6b046ba45d3e14c0fdb0383ad8bee1e
Ranguna commented on 2024-05-25 22:15 (UTC)
The build is failing for me with the following errors:
FAILED: src/nvim/CMakeFiles/nvim_bin.dir/lua/treesitter.c.o
/usr/bin/cc -DHAVE_UNIBILIUM -DINCLUDE_GENERATED_DECLARATIONS -DUNIT_TESTING -D_GNU_SOURCE -Dnvim_bin_EXPORTS -I/home/***/.cache/yay/neovim-git/src/neovim/build/src/nvim/auto -I/home/***/.cache/yay/neovim-git/src/neovim/build/include -I/home/***/.cache/yay/neovim-git/src/neovim/build/cmake.config -I/home/***/.cache/yay/neovim-git/src/neovim/src -isystem /usr/include/luajit-2.1 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -O2 -g -Og -g -flto=auto -fno-fat-lto-objects -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wvla -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -fsigned-char -fstack-protector-strong -Wno-conversion -fno-common -Wno-unused-result -Wimplicit-fallthrough -fdiagnostics-color=always -MD -MT src/nvim/CMakeFiles/nvim_bin.dir/lua/treesitter.c.o -MF src/nvim/CMakeFiles/nvim_bin.dir/lua/treesitter.c.o.d -o src/nvim/CMakeFiles/nvim_bin.dir/lua/treesitter.c.o -c /home/***/.cache/yay/neovim-git/src/neovim/src/nvim/lua/treesitter.c
/home/***/.cache/yay/neovim-git/src/neovim/src/nvim/lua/treesitter.c: In function ‘__has_ancestor’:
/home/***/.cache/yay/neovim-git/src/neovim/src/nvim/lua/treesitter.c:1084:12: error: implicit declaration of function ‘ts_node_child_containing_descendant’; did you mean ‘node_child_containing_descendant’? [-Wimplicit-function-declaration]
1084 | node = ts_node_child_containing_descendant(node, descendant);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| node_child_containing_descendant
/home/***/.cache/yay/neovim-git/src/neovim/src/nvim/lua/treesitter.c:1084:12: error: incompatible types when assigning to type ‘TSNode’ from type ‘int’
/home/***/.cache/yay/neovim-git/src/neovim/src/nvim/lua/treesitter.c: In function ‘node_child_containing_descendant’:
/home/***/.cache/yay/neovim-git/src/neovim/src/nvim/lua/treesitter.c:1095:18: error: invalid initializer
1095 | TSNode child = ts_node_child_containing_descendant(node, descendant);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Similar bug report here: https://bugs.gentoo.org/932001
kotv commented on 2024-05-08 10:10 (UTC)
@Farzat please read make the suggested changes to the PKGBUILD as described below over all add -G Ninja
to the cmake invocation in build() to fix build issue
gpanders commented on 2024-04-06 14:12 (UTC)
@vandalt I found the same thing, and I've sent a patch to @Farzat already. Hopefully they apply it to the PKGBUILD. In the meantime, you can add the following to the depends
list:
tree-sitter-bash
tree-sitter-c
tree-sitter-lua
tree-sitter-markdown
tree-sitter-python
tree-sitter-query
tree-sitter-vimdoc
And in the package()
function, add the following:
ln -s /usr/lib/tree_sitter "${pkgdir}"/usr/lib/nvim/parser
vandalt commented on 2024-04-05 21:30 (UTC)
After installing neovim-git
, I got the treesitter issue below. It does not happen when building manually from source. I suspect it's related to the bundled treesitter parsers and the fact that neovim now uses the bundled parsers by default (https://github.com/neovim/neovim/pull/26824). The error occurred for any lua file and anytime I opened help (vimdoc), but not for Python.
I'm not sure if the error is caused by my setup in particular, but I wanted to point it out in case it affected other people.
Error detected while processing BufReadPost Autocommands for "*":
Error executing lua callback: /usr/share/nvim/runtime/filetype.lua:35: Error executing lua: /usr/share/nvim/runtime/f
iletype.lua:36: BufReadPost Autocommands for "*"..FileType Autocommands for "*"..function <SNR>1_LoadFTPlugin[20]..sc
ript /usr/share/nvim/runtime/ftplugin/lua.lua: Vim(runtime):E5113: Error while calling lua chunk: /usr/share/nvim/run
time/lua/vim/treesitter/language.lua:104: no parser for 'lua' language, see :help treesitter-parsers
stack traceback:
[C]: in function 'error'
/usr/share/nvim/runtime/lua/vim/treesitter/language.lua:104: in function 'add'
/usr/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:111: in function 'new'
/usr/share/nvim/runtime/lua/vim/treesitter.lua:41: in function '_create_parser'
/usr/share/nvim/runtime/lua/vim/treesitter.lua:108: in function 'get_parser'
/usr/share/nvim/runtime/lua/vim/treesitter.lua:416: in function 'start'
/usr/share/nvim/runtime/ftplugin/lua.lua:2: in main chunk
[C]: in function 'nvim_cmd'
/usr/share/nvim/runtime/filetype.lua:36: in function </usr/share/nvim/runtime/filetype.lua:35>
[C]: in function 'nvim_buf_call'
/usr/share/nvim/runtime/filetype.lua:35: in function </usr/share/nvim/runtime/filetype.lua:10>
stack traceback:
[C]: in function 'nvim_cmd'
/usr/share/nvim/runtime/filetype.lua:36: in function </usr/share/nvim/runtime/filetype.lua:35>
[C]: in function 'nvim_buf_call'
/usr/share/nvim/runtime/filetype.lua:35: in function </usr/share/nvim/runtime/filetype.lua:10>
stack traceback:
[C]: in function 'nvim_buf_call'
/usr/share/nvim/runtime/filetype.lua:35: in function </usr/share/nvim/runtime/filetype.lua:10>
gpanders commented on 2024-04-01 00:38 (UTC) (edited on 2024-04-01 00:54 (UTC) by gpanders)
-
libtermkey has been vendored as of https://github.com/neovim/neovim/commit/404043e74c523bff049558685bd88213cc71ed7a so no longer needs to be listed as a dependency.
-
tree-sitter 0.22.2 is now packaged in Arch as well, so per @xiota's earlier comment you should be able to switch back from using tree-sitter-git.
-
ninja is included in makedepends, but is not used. You need to add
-G Ninja
to the cmake invocation inbuild()
.
Pinned Comments
fwalch commented on 2016-07-04 19:52 (UTC) (edited on 2016-07-04 19:54 (UTC) by fwalch)