Page MenuHomeFreeBSD

devel/youcompleteme: Code-completion engine for Vim

Authored by ultima on Dec 13 2017, 2:28 AM.



YouCompleteMe is a fast, as-you-type, fuzzy-search code completion
engine for Vim. It has several completion engines:

  • an identifier-based engine that works with every programming language,
  • a Clang-based engine that provides native semantic code completion for

C/C++/Objective-C/Objective-C++ (from now on referred to as "the C-family

  • a Jedi-based completion engine for Python 2 and 3 (using the JediHTTP wrapper)
  • an OmniSharp-based completion engine for C#
  • a combination of Gocode and Godef semantic engines for Go
  • a TSServer-based completion engine for TypeScript
  • a Tern-based completion engine for JavaScript
  • a racer-based completion engine for Rust
  • an omnifunc-based completer that uses data from Vim's omnicomplete system

to provide semantic completions for many other languages (Ruby, PHP etc.)


Todo, need suggestion or ideas:

Test Plan

Diff Detail

rP FreeBSD ports repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

27 ↗(On Diff #36539)

Don't these python dependencies need @{$FLAVOR} appended nowadays?

Like so:

${PYTHON_PKGNAMEPREFIX}argparse>0:devel/py-argparse@{$FLAVOR} \

Also, isn't py-argparse part of the standard Python install nowadays?

34 ↗(On Diff #36539)

Mixing GH_ACCOUNT+GH_TAGNAME with GH_TUPLE is not good -- you should choose one or other of these mechanisms. See the examples 5.15 and 5.16 in the PH section 5.4.

18–26 ↗(On Diff #36539)

All these need @${PY_FLAVOR}

28 ↗(On Diff #36539)

Have you tested that this work with all Python versions ?

34 ↗(On Diff #36539)

Using GH_ACCOUNT/GH_PROJECT/GH_TAGNAME for the default distfile is the prefered way.

45 ↗(On Diff #36539)

Commenting the description makes no sense.

Commenting the option from OPTIONS_DEFINE would make more sense.

Test build shows plist problems -- seems there are files left over:

=>> Checking for extra files and directories
=>> Error: Files or directories left over:
@dir share/vim/vimfiles
@dir share/vim/vimfiles/doc
build of devel/youcompleteme | YouCompleteMe-g20171203 ended at Wed Dec 13 12:43:26 GMT 2017
build time: 00:04:55
ultima marked 6 inline comments as done.
  • Fixed PY_FLAVORS
  • Limited to python 2.7
  • Added MONO Support
  • Added deinstall script to cleanup files on removal

Thanks for the feedback.

If you don't mind, can you also give a little feedback on D13472. I'm not sure if the package is installed in the right place. Does it look acceptable?

18–26 ↗(On Diff #36539)

Thanks, I was having trouble with this item.

27 ↗(On Diff #36539)

This is what I thought, but it causes build errors.

Removing py-argparse results in not being installed.

28 ↗(On Diff #36539)

I thought python3 was supported, but after doing a test it seems to have failed. Added 2.7 as highest supported version.

This revision was not accepted when it landed; it landed in state Needs Review.Dec 14 2017, 6:42 PM
This revision was automatically updated to reflect the committed changes.