Package Details: vim-youcompleteme-git r2668.8965a46b-1

Git Clone URL: (read-only, click to copy)
Package Base: vim-youcompleteme-git
Description: A code-completion engine for Vim
Upstream URL:
Keywords: completion engine neovim vim ycm
Licenses: GPL3
Groups: vim-plugins
Submitter: thestinger
Maintainer: artafinde
Last Packager: artafinde
Votes: 154
Popularity: 2.38
First Submitted: 2013-02-05 21:32
Last Updated: 2020-04-28 17:17

Pinned Comments

staletic commented on 2019-07-19 13:11

Hello, I'm one of YCM maintainers. I'll be happy to help with packaging YCM.

Regarding git submodules, instead of pulling from git, just purge them and install the dependencies from official repos.

This is the list of direct YCM/ycmd dependencies (let's leave ycmd bundled for now and let's hope this board supports markdown):

  • python-bottle
  • python-jedi
  • python-regex
  • python-waitress
  • python-future
  • python-requests
  • python-frozendict
  • aur/python-requests-futures

As for completers, TSServer can be installed as an optional dependency and YCM will pick it up if there's no TSServer in third_party.

If this package moves to clangd completer over libclang completer, it could be decoupled too, but the user would need to specify the following

let g:ycm_use_clangd = 1
let g:ycm_clangd_binary_path = 'clangd'

Let's fix those before we dive into decoupling all completers.

Latest Comments

1 2 3 4 5 6 ... Next › Last »

raucao commented on 2020-05-11 12:11

@artafinde That was it. Thanks a lot!

I updated all my plugins and whatever was still loading Python 2 now loads Python 3 apparently.

artafinde commented on 2020-05-11 11:07

@raucao: could be something in the lines of this. See if you disable other plugins solves the issue and then enable one by one to find the culprit.

raucao commented on 2020-05-11 10:57

@artafinde It's the extra/vim 8.2.0717-2 package, and the version command's output confirms the same version:

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled May 8 2020 23:37:13) Included patches: 1-717
Compiled by Arch Linux

artafinde commented on 2020-05-11 10:53

@raucao what version of vim are you using? vim --version

raucao commented on 2020-05-11 10:40

@artafinde I have the same in my vimrc. And the package builds fine (I didn't report a build failure). The problem is that it doesn't work with the system vim anymore, throwing the aforementioned error when opening vim.

artafinde commented on 2020-05-11 10:37

@raucao the package builds fine as is (no changes in PKGBUILD) on an up to date system in a clean-chroot (see_wiki). I am using it with vim not neovim (although it works fine with neovim also) and with the below on my .vimrc

let g:ycm_server_python_interpreter = '/usr/bin/python3'

raucao commented on 2020-05-11 10:20

After a recent system upgrade YCM stopped working, so I tried to update this package. Unfortunately, it doesn't work anymore, and complains about missing Python when launching vim:

YouCompleteMe unavailable: unable to load Python.

I re-installed vim, and it does have support for Python. Unfortunately, over on the YCM repo, the response is that it needs Python 3 support, and everyone just says to install Neovim to get that, but I do not wish to use Neovim. Also, it does look like the system/Arch Vim has both Python 2 and 3 support.

So, as this package is supposed to work with the normal Arch vim dependency, I am reporting it as a bug now.

(I also tried compiling my own vim with Python 3, but I couldn't figure out how this package even inserts YCM into the vim loading process in the first place. So that didn't help either.)

artafinde commented on 2020-04-28 17:00

@staletic I tried to understand what you mean with the pinned message regarding the removal of submodules and even tried to create a PKGBUILD without them but it seems more complicated than it seems (at least to me). Using submodules it's a pain for packaging it.

artafinde commented on 2020-04-20 12:36

Updated without version bump

edacval commented on 2020-04-20 10:53

I would like to suggest one more patch - this will strips reference to $srcdir from gopls and cleans go modcache after build:

diff --git a/PKGBUILD b/PKGBUILD
index 2e500ff..42a935c 100644
@@ -192,7 +192,8 @@ build() {
                local _local_GOPATH="$srcdir"/YouCompleteMe/third_party/ycmd/third_party/go
                mkdir ${_local_GOPATH} || exit
                cd ${_local_GOPATH} || exit
-               GO111MODULE=on GOPATH=${_local_GOPATH} go get
+               GO111MODULE=on GOPATH=${_local_GOPATH} go get -trimpath
+               GO111MODULE=on GOPATH=${_local_GOPATH} go clean -modcache
                echo 'Skipping Gocode completer...'