-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestions about the YouCompleteMe plugin #2
Comments
Forget about this. I thought we were but we don't. That's something we could easily implement though. |
@gribozavr as I'm out on leave.
This was meant to imply it won't be updated as part of the usual distro-based update process - as I understand YCM has no auto-update process that will cause newer versions of clangd to be installed. If this is correct, we can clarify the wording here.
I'm not sure what neutral here would look like - there's lots of vim LSP clients, and listing them all without suggestion or descriptions doesn't seem to do users any favours. YCM works the best of the clients we tried, but is the hardest to install - seems useful to mention?
Sadly, the github copy of the docs are not the source of truth here - we haven't yet worked out a plan to sync them. |
So the comment is only targeting rolling Linux distributions? I think that's a mistake considering that YCM also officially supports other kind of Linux distributions, macOS, and Windows. It would be less biased towards a category of users to just say "Set this option to use a custom Clangd instead of the YCM bundled one".
We asked to change it because it was the default behavior. The suggestion here is to search the value of
Fair enough. I guess this gives us an incentive to ease our installation process. |
I believe you misunderstood Sam's point. We know you update your bundled third_party binaries as soon as newer versions with none or small regressions are available. The problem is even if you update that binary inside ycmd repo, it won't be updated on user's machine, unless user goes into installed plugin directory and re-performs install step. Most of the users simply won't care/know about this step. Which is not the case with distro-based updates. If a user has clang-tools installed, everytime he/she updates her system it will be updated along with other packages implicitly.
Definitely that sounds good to me. |
Why not explaining that then? If users want to update Clangd, they should run again the
I'll send a PR for that. |
I am not sure people would be familiar with something they only did once a few months ago, but even if that's the case; an LLVM release happens once every 6 months, so saying "you should also update YCM every 6 months to get latest features" on this page, where they would (hopefully) only look once, would persist in their minds for such a long time.
The assumption is rather on the users that landed on our page to setup clangd for their workflow without any prior setup, not all vim users, therefore we start with instructions on installing clangd. So if they followed the instructions it is safe to assume that they have clangd in their path. I also see your point, it is unfortunate that text can be interpreted as |
In that case, I would suggest to say that YCM can be configured to work with Clangd by simply adding the following to vimrc: let g:ycm_clangd_binary_path = exepath('clangd') (which will become |
ycm-core/ycmd#1210 has been merged a long time ago. We've just had a user with installation troubles because the clangd website recommends
Can we do anything to get this issue resolved? |
Another user today following the advice on clangd.github.io was broken because their clangd was too old for YCM. Can we remove this recommendation please ? |
I'd like to make two suggestions to the docs about YCM.
First, there is a mention that
g:ycm_clangd_binary_path
should be set toclangd
because the bundled one won't be updated. That's not true. As one of the maintainers of YCM, I assure you that it will be updated as soon as a new version of LLVM is released so I would suggest to remove the comment "which doesn't get updates". By the way, theexepath
call is not needed when setting that option since YCM already searches the executable in the PATH.Second, the "and may be easier to install than YouCompleteMe" statement in the LanguageClient-neovim section should be removed. Docs should stay as neutral as possible especially when talking about editors and plugins.
I can prepare a PR if you agree with these suggestions.
The text was updated successfully, but these errors were encountered: