Commit Graph

2512 Commits

Author SHA1 Message Date
zzbot
29f7acf068
Auto merge of #3388 - smeredith:patch-1, r=micbou
Specify python3 in the README

If the user has both python 2 and 3, and 2 is the configured alternative, the instructions will fail with missing headers. This change makes it clear that python3 is needed for this step (because a previous step installed python3-dev.)

# PR Prelude

Thank you for working on YCM! :)

**Please complete these steps and check these boxes (by putting an `x` inside
the brackets) _before_ filing your PR:**

- [x] I have read and understood YCM's [CONTRIBUTING][cont] document.
- [x] I have read and understood YCM's [CODE_OF_CONDUCT][code] document.
- [x] I have included tests for the changes in my PR. If not, I have included a
  rationale for why I haven't.
- [x] **I understand my PR may be closed if it becomes obvious I didn't
  actually perform all of these steps.**

# Why this change is necessary and useful

If the user has both python 2 and 3, and 2 is the configured alternative, the instructions will fail with missing headers. This change makes it clear that python3 is needed for this step (because a previous step installed python3-dev.)

README.md change only--no tests needed.
I successfully followed the instructions with the new command.

[Please explain **in detail** why the changes in this PR are needed.]

[cont]: https://github.com/Valloric/YouCompleteMe/blob/master/CONTRIBUTING.md
[code]: https://github.com/Valloric/YouCompleteMe/blob/master/CODE_OF_CONDUCT.md

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/3388)
<!-- Reviewable:end -->
2019-05-06 04:15:45 -07:00
zzbot
293deb4ba3
Auto merge of #3391 - micbou:macos-instructions, r=micbou
[READY] Instruct users to install MacVim with Homebrew

Update the link to the MacVim installer and clarify the instructions on how to start Vim or MacVim from a terminal on macOS.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/3391)
<!-- Reviewable:end -->
2019-05-05 09:13:02 -07:00
micbou
efdf6e034d
Instruct users to install MacVim with Homebrew
Replace Mac and Mac OS X with macOS and remove outdated entries about
Homebrew in the FAQ.
2019-05-05 13:32:41 +02:00
zzbot
2e67594efc
Auto merge of #3390 - micbou:goto-normcase, r=micbou
[READY] Ignore case when comparing paths on Windows and macOS

There is an issue on Windows where jumping to a file that is already open in a window doesn't go to that window if the case differs between the path of the file and the path of the buffer in the window (with `g:ycm_goto_command_buffer` sets to `'split-or-existing-window'`). This shouldn't happen since paths are case-insensitive on this platform. We need to ignore the case when comparing paths on Windows.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/3390)
<!-- Reviewable:end -->
2019-05-05 02:51:35 -07:00
micbou
5e3dd1d9b8
Ignore case when comparing paths on Windows and macOS 2019-05-04 16:32:06 +02:00
Steve Meredith
c86dc9a977
Specify python3 in the README
If the user has both python 2 and 3, and 2 is the configured alternative, the instructions will fail with missing headers. This change makes it clear that python3 is needed for this step (because a previous step installed python3-dev.)
2019-05-02 09:27:42 -07:00
zzbot
d691404ae2
Auto merge of #3384 - micbou:update-ycmd, r=bstaletic
[READY] Update ycmd

Include the following changes:

 - PR Valloric/ycmd#1201: add `RestartServer` command to Clangd completer;
 - PR Valloric/ycmd#1203: reject any server to client requests in LSP completer;
 - PR Valloric/ycmd#1204: ignore any null or empty values and use our defaults in LSP completer;
 - PR Valloric/ycmd#1205: improve cache in LSP completer;
 - PR Valloric/ycmd#1207: drop Python 3.4 support;
 - PR Valloric/ycmd#1210: search custom Clangd in PATH;
 - PR Valloric/ycmd#1213: improve Clangd completer logging;
 - PR Valloric/ycmd#1214: fix off-by-one error in LSP Initialize request;
 - PR Valloric/ycmd#1215: update Clang to 8.0.0;
 - PR Valloric/ycmd#1216: support LSP declaration, typeDefinition, and implementation;
 - PR Valloric/ycmd#1219: update Unicode Standard to 12.0.0;
 - PR Valloric/ycmd#1220: do not reset state at server start in Clangd completer;
 - PR Valloric/ycmd#1222: simplify creation of LSP clients;
 - PR Valloric/ycmd#1223: include settings in debug info for LSP;
 - PR Valloric/ycmd#1228: add numpydoc to Jedi dependencies;
 - PR Valloric/ycmd#1232: fix Clangd `GetType` response;
 - PR Valloric/ycmd#1233: update to Boost 1.70;
 - PR Valloric/ycmd#1235: use move semantics in C++ code.

Add the `GoToType` and `GoToImplementation` commands for Java and increase the Clang requirement to 8.0.0 in the docs.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/3384)
<!-- Reviewable:end -->
2019-04-27 13:46:14 -07:00
micbou
2708c6210a
Increase Clang requirement to 8.0.0 in the docs 2019-04-27 22:06:04 +02:00
micbou
8b07bd14b8
Add GoToType and GoToImplementation for Java in the docs 2019-04-27 22:04:59 +02:00
micbou
9490ba3bad
Update ycmd
Include the following changes:
 - add RestartServer command to Clangd completer;
 - reject any server to client requests in LSP completer;
 - ignore any null or empty values and use our defaults in LSP completer;
 - improve cache in LSP completer;
 - drop Python 3.4 support;
 - search custom Clangd in PATH;
 - improve Clangd completer logging;
 - fix off-by-one error in LSP Initialize request;
 - update Clang to 8.0.0;
 - support LSP declaration, typeDefinition, and implementation;
 - update Unicode Standard to 12.0.0;
 - do not reset state at server start in Clangd completer;
 - simplify creation of LSP clients;
 - include settings in debug info for LSP;
 - add numpydoc to Jedi dependencies;
 - fix Clangd GetType response;
 - update to Boost 1.70;
 - use move semantics in C++ code.
2019-04-27 22:04:50 +02:00
zzbot
2ae00449e5
Auto merge of #3378 - micbou:visual-studio-build-tools, r=bstaletic
[READY] Instruct installing Visual Studio Build Tools 2017

As suggested by @bstaletic in https://github.com/Valloric/YouCompleteMe/issues/3376#issuecomment-485680582, Visual Studio Build Tools is sufficient to build YCM. Users are told to download the 2017 version since 2019 is not yet supported (require a change to the `build.py` script and [waiting for AppVeyor to release the image](https://github.com/appveyor/ci/issues/2907)).

Closes #3376.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/3378)
<!-- Reviewable:end -->
2019-04-24 11:11:41 -07:00
micbou
1efcfe4c48
Instruct installing Visual Studio Build Tools 2017
Visual Studio Build Tools is sufficient to build YCM. Version 2019 is
not yet supported.
2019-04-24 00:13:10 +02:00
zzbot
9dee2b4e3f
Auto merge of #3364 - micbou:completion-equal, r=micbou
[READY] Disable Vim filtering

[Patch 8.1.1123](73655cf0ca) added a new field `equal` to completion items that disable Vim filtering. Since we are using our own filtering, we should always set that field to `1`. This should in theory speed up completion and reduce flickering but I couldn't really notice a difference.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/3364)
<!-- Reviewable:end -->
2019-04-10 14:36:19 -07:00
micbou
93fd392ea2
Disable Vim filtering
Disable Vim filtering by setting the 'equal' field of completions to 1.
This should speed up completion and reduce flickering.
2019-04-09 16:50:52 +02:00
zzbot
151fa5765a
Auto merge of #3359 - micbou:fix-markdown, r=bstaletic
[READY] Fix bold rendering issue in docs

The text `GoTo*` is not rendered in bold because of the asterisk. Instead of escaping the character, we change the text to something more in line with the other bullet points.

In case you are wondering about the other changes in the Vim docs, [I added support for Python 3 to  the `html2vimdoc.py` script](2f763ac54f) and this required the change to not break lines on the hyphen character in order to get the same output on both versions of Python (this also has the benefit of not breaking inside a command-line flag like `--java-completer`).

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/3359)
<!-- Reviewable:end -->
2019-04-06 02:11:06 -07:00
micbou
65927fcd3d
Fix bold rendering issue in docs
Text is not rendered in bold because of the asterisk. Instead of
escaping the character, change the text to something more in line with
the other bullet points.
2019-04-06 01:27:15 +02:00
zzbot
72ed996089
Auto merge of #3344 - bstaletic:no-py34, r=micbou
[READY] Drop python 3.4

see Valloric/ycmd#1207 for details.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/3344)
<!-- Reviewable:end -->
2019-04-05 13:07:37 -07:00
Boris Staletic
54f5a9b1c1 Drop python 3.4 2019-04-05 22:04:15 +02:00
Val Markovic
25ebc0b9ab
Merge pull request #3345 from micbou/fix-clangd-docs
[READY] Fix Clangd link in docs
2019-03-18 19:30:00 -07:00
micbou
a47940d468
Fix Clangd link in docs 2019-03-17 21:02:45 +01:00
zzbot
299f8e48e7
Auto merge of #3325 - kadircet:update_clangd_docs, r=micbou
[READY] Update docs to represent new use_clangd flag

After merge of Valloric/ycmd#1191, `use_clangd` option has changed to binary, this patch updates docs to represent that change.

Needs to be merged after `third_party/ycmd` is updated to contain that PR.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/3325)
<!-- Reviewable:end -->
2019-03-14 06:48:15 -07:00
zzbot
1afc081415
Auto merge of #3339 - micbou:update-ycmd, r=Valloric
[READY] Update ycmd

Include the following changes:

 - PR Valloric/ycmd#1180: trigger semantic completion when instructed by server;
 - PR Valloric/ycmd#1184: simplify LSP completer API for starting server;
 - PR Valloric/ycmd#1187: improve Clangd completer initialization;
 - PR Valloric/ycmd#1191: ease Clangd completer initialization;
 - PR Valloric/ycmd#1193: fix system header search paths on macOS for Objective-C++;
 - PR Valloric/ycmd#1194: update Jedi to 0.13.3 and Parso to 0.3.4;
 - PR Valloric/ycmd#1195: ignore identifiers returned by TSServer in JavaScript;
 - PR Valloric/ycmd#1196: update TSServer to 3.3.3333;
 - PR Valloric/ycmd#1197: support -B flag in C-family languages.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/3339)
<!-- Reviewable:end -->
2019-03-11 20:15:57 -07:00
micbou
d5593c3b2d
Update ycmd
Include the following changes:
 - trigger semantic completion when instructed by server;
 - simplify LSP completer API for starting server;
 - improve Clangd completer initialization;
 - ease Clangd completer initialization;
 - fix system header search paths on macOS for Objective-C++;
 - update Jedi to 0.13.3 and Parso to 0.3.4;
 - ignore identifiers returned by TSServer in JavaScript;
 - update TSServer to 3.3.3333;
 - support -B flag in C-family languages.
2019-03-06 13:35:31 +01:00
zzbot
a4e2f6149a
Auto merge of #3335 - micbou:close-window-only-once, r=bstaletic
[READY] Ensure only loclist or quickfix windows are closed

Fixes #3334.

Note that `autocmd! * <buffer>` is required for location lists because we don't want to remove the autocommand in other location lists. It doesn't matter for the quickfix window since there is only one.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/3335)
<!-- Reviewable:end -->
2019-03-05 16:12:47 -08:00
micbou
98117cab69
Ensure only loclist or quickfix windows are closed 2019-03-05 23:36:00 +01:00
zzbot
66cd93e96f
Auto merge of #3316 - micbou:command-line-window, r=micbou
[READY] Allow completion in the command-line window

This implements @puremourning's suggestion from https://github.com/Valloric/YouCompleteMe/pull/1415#issuecomment-460197058 and adds an entry in the FAQ on how to override the `TAB` mapping in the command-line window. Since the `CmdwinEnter` event is triggered instead of `BufEnter` in that window, the `s:OnBufferEnter` function is called for that event too. Also, the contents of that window are empty when the filetype is set the first time so we ignore the `FileType` event in that window. Finally, the `qf` filetype is removed from the `g:ycm_filetype_blacklist` option since the quickfix window is always ignored.

This needs testing as these changes may not work well with plugins that create special buffers. We may have to blacklist the filetype of these buffers.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/3316)
<!-- Reviewable:end -->
2019-03-05 13:33:39 -08:00
zzbot
443356132e
Auto merge of #3315 - weirane:go-install-doc, r=micbou
Update Go's part in full installation guide

# PR Prelude

Thank you for working on YCM! :)

**Please complete these steps and check these boxes (by putting an `x` inside
the brackets) _before_ filing your PR:**

- [x] I have read and understood YCM's [CONTRIBUTING][cont] document.
- [x] I have read and understood YCM's [CODE_OF_CONDUCT][code] document.
- [x] I have included tests for the changes in my PR. If not, I have included a
  rationale for why I haven't.
- [x] **I understand my PR may be closed if it becomes obvious I didn't
  actually perform all of these steps.**

# Why this change is necessary and useful

- The original installation guide missed `go build` in `godef`'s directory, relating issue [here](https://github.com/Valloric/YouCompleteMe/issues/3071#issuecomment-403213723).
- The path of `gocode` and `godef` has been changed, update them in the doc.

I have tested this guide on my Manjaro laptop and it works fine, my go version is `1.11.4`.

(Since the path is too long, the vim help doc looks kind of ugly, maybe the formatting or the
path's presenting way should be changed so that it looks better. I used the `gq` command
in vim and it gave me this.)

[cont]: https://github.com/Valloric/YouCompleteMe/blob/master/CONTRIBUTING.md
[code]: https://github.com/Valloric/YouCompleteMe/blob/master/CODE_OF_CONDUCT.md

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/3315)
<!-- Reviewable:end -->
2019-02-25 06:40:11 -08:00
Wang Ruochen
c5b5d50056 update go's part in full installation guide 2019-02-19 17:03:16 +00:00
Kadir Cetinkaya
753d39f8da Update docs to represent new use_clangd flag 2019-02-18 16:38:09 +01:00
zzbot
032281307d
Auto merge of #3296 - kadircet:master, r=micbou
[READY] Add instructions for clangd into README

# PR Prelude

Thank you for working on YCM! :)

**Please complete these steps and check these boxes (by putting an `x` inside
the brackets) _before_ filing your PR:**

- [x] I have read and understood YCM's [CONTRIBUTING][cont] document.
- [x] I have read and understood YCM's [CODE_OF_CONDUCT][code] document.
- [ ] I have included tests for the changes in my PR. If not, I have included a
  rationale for why I haven't.
- [x] **I understand my PR may be closed if it becomes obvious I didn't
  actually perform all of these steps.**

# Why this change is necessary and useful

clangd-based completer has been introduced into ycmd for a while now. I believe it is time to let users know about it as well. We are also updating clangd's docs and it would be nice to point people using vim into YCM docs for integration. You can see the patch for that one in https://reviews.llvm.org/D56718.

Also you can have a look at the end product of the changes at https://kadircet.github.io/YouCompleteMe

[cont]: https://github.com/Valloric/YouCompleteMe/blob/master/CONTRIBUTING.md
[code]: https://github.com/Valloric/YouCompleteMe/blob/master/CODE_OF_CONDUCT.md

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/3296)
<!-- Reviewable:end -->
2019-02-16 01:54:52 -08:00
Kadir Cetinkaya
f9b26a066c Add clangd into docs 2019-02-16 10:46:29 +01:00
zzbot
cbaf8134e9
Auto merge of #3313 - micbou:debug-info-test, r=Valloric
[READY] Relax regular expression in DebugInfo test

This makes the `YouCompleteMe_DebugInfo_ServerRunning` test pass whether the libclang completer or the Clangd one are enabled. The `[\w\W]` pattern is used to match everything including newlines.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/3313)
<!-- Reviewable:end -->
2019-02-10 18:48:58 -08:00
micbou
f3ce1d12bd
Allow completion in the command-line window 2019-02-05 20:48:06 +01:00
micbou
eaa53f25c0
Relax regexp in DebugInfo test 2019-01-30 14:12:24 +01:00
zzbot
c25e449f4e
Auto merge of #3312 - micbou:update-ycmd, r=bstaletic
[READY] Update ycmd

Include the following changes:

 - PR Valloric/ycmd#1095: allow users to configure LSP servers through extra conf;
 - PR Valloric/ycmd#1118: add Clangd completer;
 - PR Valloric/ycmd#1130: do not default to 32-bit when downloading libclang;
 - PR Valloric/ycmd#1132: update requests;
 - PR Valloric/ycmd#1149: do not include Clangd with `--all`;
 - PR Valloric/ycmd#1151: add `GetType` command to Python completer;
 - PR Valloric/ycmd#1152: update Boost to 1.69;
 - PR Valloric/ycmd#1153: only detail filtered candidates in Python completer;
 - PR Valloric/ycmd#1154: include signature to Python candidates;
 - PR Valloric/ycmd#1155: only detail filtered candidates in TypeScript completer;
 - PR Valloric/ycmd#1156: update Jedi to 0.13.2;
 - PR Valloric/ycmd#1157: only detail filtered candidates in Go completer;
 - PR Valloric/ycmd#1161: only resolve filtered candidates in LSP completer;
 - PR Valloric/ycmd#1164: do not find CMake and Python if not needed;
 - PR Valloric/ycmd#1167: do not read LSP settings on every file parse;
 - PR Valloric/ycmd#1172: fix system headers search on macOS;
 - PR Valloric/ycmd#1174: report Java server startup status correctly;
 - PR Valloric/ycmd#1177: make LSP debug info consistent;
 - PR Valloric/ycmd#1178: improve LSP project directory detection;
 - PR Valloric/ycmd#1179: determine simple subcommands automatically in LSP completer;
 - PR Valloric/ycmd#1181: fix LSP server startup when UnknownExtraConf is thrown.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/3312)
<!-- Reviewable:end -->
2019-01-27 23:33:26 -08:00
zzbot
10f7dea123
Auto merge of #3302 - micbou:highlight-lines-without-gutter, r=puremourning
[READY] Add instruction on how to highlight lines without Vim gutter

Closes https://github.com/Valloric/YouCompleteMe/issues/765.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/3302)
<!-- Reviewable:end -->
2019-01-27 12:46:23 -08:00
zzbot
c1895e7138
Auto merge of #3301 - micbou:unlimited-diagnostics-docs, r=puremourning
[READY] Update g:ycm_max_diagnostics_to_display docs

Update the documentation with the complete list of languages affected by the `g:ycm_max_diagnostics_to_display` option and mention that the number of diagnostics is unlimited if the option is set to `0` .

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/3301)
<!-- Reviewable:end -->
2019-01-27 12:31:38 -08:00
micbou
9bf53fba7e
Add GetType subcommand for Python in docs
Be consistent in the order of features between languages.
2019-01-27 16:16:41 +01:00
micbou
7548b209f5
Update ycmd
Include the following changes:
 - allow users to configure LSP servers through extra conf;
 - add Clangd completer;
 - do not default to 32-bit when downloading libclang;
 - update requests;
 - do not include Clangd with --all;
 - add GetType command to Python completer;
 - update Boost to 1.69;
 - only detail filtered candidates in Python completer;
 - include signature to Python candidates;
 - only detail filtered candidates in TypeScript completer;
 - update Jedi to 0.13.2;
 - only detail filtered candidates in Go completer;
 - only resolve filtered candidates in LSP completer;
 - do not find CMake and Python if not needed;
 - do not read LSP settings on every file parse;
 - fix system headers search on macOS;
 - report Java server startup status correctly;
 - make LSP debug info consistent;
 - improve LSP project directory detection;
 - determine simple subcommands automatically in LSP completer;
 - fix LSP server startup when UnknownExtraConf is thrown.
2019-01-27 14:35:08 +01:00
zzbot
48c3bcc491
Auto merge of #3306 - bstaletic:neovim_has_python_compiled, r=micbou
[READY] Restore neovim support

# PR Prelude

Thank you for working on YCM! :)

**Please complete these steps and check these boxes (by putting an `x` inside
the brackets) _before_ filing your PR:**

- [x] I have read and understood YCM's [CONTRIBUTING][cont] document.
- [x] I have read and understood YCM's [CODE_OF_CONDUCT][code] document.
- [x] I have included tests for the changes in my PR. If not, I have included a
  rationale for why I haven't.
- [x] **I understand my PR may be closed if it becomes obvious I didn't
  actually perform all of these steps.**

# Why this change is necessary and useful

[Please explain **in detail** why the changes in this PR are needed.]

[cont]: https://github.com/Valloric/YouCompleteMe/blob/master/CONTRIBUTING.md
[code]: https://github.com/Valloric/YouCompleteMe/blob/master/CODE_OF_CONDUCT.md

Turns out neovim doesn't have `has('python_compiled')`, so we need to check if the user is running neovim before checking `has('python_compiled')`.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/3306)
<!-- Reviewable:end -->
2019-01-23 01:19:16 -08:00
zzbot
d4e3d85fc0
Auto merge of #3307 - micbou:complete-done-allowed, r=bstaletic
[READY] Do not call OnCompleteDone on blacklisted filetypes

Fixes #3305.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/3307)
<!-- Reviewable:end -->
2019-01-23 00:13:39 -08:00
Boris Staletic
63bcaf30f0 Restore neovim support 2019-01-23 07:56:43 +01:00
micbou
f58d9d607e
Do not call OnCompleteDone on blacklisted filetypes 2019-01-23 00:49:59 +01:00
zzbot
b26ba2681e
Auto merge of #3303 - micbou:python-check, r=micbou
[READY] Improve error message when unable to load Python

The current error when Python cannot be loaded
> YouCompleteMe unavailable: requires Vim compiled Python (2.7.1+ or 3.4+) support.

is misleading if Vim has been dynamically compiled against Python but is unable to find the library. See issue https://github.com/Valloric/YouCompleteMe/issues/3300 for instance. We should only return that error if `has( 'python_compiled' )` and `has( 'python3_compiled' )` are both false. Furthermore, we should check if Python 3 is available before Python 2 because on some platforms, only one Python library can be loaded at a time so if Python 2 is loaded first, Python 3 cannot be used.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/3303)
<!-- Reviewable:end -->
2019-01-22 11:58:10 -08:00
micbou
616c2a2964
Improve error message when unable to load Python
Check explicitely that Vim is compiled with Python support.
Attempt to load Python 3 before Python 2 since only one can be loaded at
a time on some platforms. Return an appropriate error if unable to load
both.
2019-01-22 13:25:06 +01:00
micbou
c8530d0622
Add instruction on how to highlight lines without Vim gutter 2019-01-20 15:16:55 +01:00
micbou
1c11508782
Update g:ycm_max_diagnostics_to_display docs 2019-01-20 13:16:54 +01:00
zzbot
113787cc20
Auto merge of #3292 - yan12125:fix-PollServerReady-errors, r=bstaletic
[READY] Workaround "Invalid channel" errors when NeoVim exits immediately after started

# PR Prelude

Thank you for working on YCM! :)

- [x] I have read and understood YCM's [CONTRIBUTING][cont] document.
- [x] I have read and understood YCM's [CODE_OF_CONDUCT][code] document.
- [ ] I have included tests for the changes in my PR. If not, I have included a
  rationale for why I haven't.
   Dunno how to write a test for such an _intermittent_ issue, sorry
- [x] **I understand my PR may be closed if it becomes obvious I didn't
  actually perform all of these steps.**

# Why this change is necessary and useful

The issue was originally reported at https://github.com/neovim/neovim/issues/6840.

If I exit neovim immediately after it starts, there are error messages like this:
```
Error detected while processing function <SNR>96_PollServerReady[1]..<SNR>96_Pyeval[2]..provider#python3#Call:
line   18:
Invalid channel: 3
Error detected while processing function <SNR>96_PollServerReady[7]..<SNR>96_Pyeval[2]..provider#python3#Call:
line   18:
Invalid channel: 3
```
The issue is not always reproducible. Usually I get once in 5 neovim runs. With this patch I don't get these message in 20 neovim runs.

In https://github.com/neovim/neovim/issues/6840#issuecomment-309960751, @micbou mentions that

> Stopping the timers on the `VimLeave` event seems to fix that issue

So, here's my attempt!

[cont]: https://github.com/Valloric/YouCompleteMe/blob/master/CONTRIBUTING.md
[code]: https://github.com/Valloric/YouCompleteMe/blob/master/CODE_OF_CONDUCT.md

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/3292)
<!-- Reviewable:end -->
2019-01-16 09:50:17 -08:00
Chih-Hsuan Yen
67c39a3330
Workaround "Invalid channel" errors when NeoVim exits immediately after started
The idea is from https://github.com/neovim/neovim/issues/6840#issuecomment-309960751

Thanks micbou!
2019-01-17 01:36:22 +08:00
zzbot
ccc06c2c42
Auto merge of #3284 - micbou:requests, r=bstaletic
[READY] Update requests URL

See PR https://github.com/Valloric/ycmd/pull/1169.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/3284)
<!-- Reviewable:end -->
2019-01-05 14:18:10 -08:00