Commit Graph

1622 Commits

Author SHA1 Message Date
Strahinja Val Markovic
2a443cd300 Updating to latest ycmd 2015-06-29 16:15:01 -07:00
Homu
66dcc9581c Auto merge of #1545 - micbou:echom-redraw, r=Valloric
Redraw the screen before displaying a message

There has been several complaints about the message "ValueError: File is less than 5 lines long; not compiling". See issues #814, #1364, #1544. In fact, I believe the issue is not the message itself but the infamous "Press ENTER or type command to continue" prompt when editing a new C-family file.

For example, if I create the file `foo.c`, Vim will display the line `"foo.c" [New file]` and then YouCompleteMe will display `ValueError: File is less than 5 lines long; not compiling`. Since there are now two lines, the hit-enter message is prompted. By redrawing the screen just before displaying the message from YouCompleteMe, only one line appears and we avoid this behavior.

Tested on Linux and Windows.

CLA signed.
2015-06-23 06:08:37 +09:00
micbou
69eee2097f Redraw the screen before displaying a message
This avoids the infamous "Press ENTER or type command to continue"
prompt when editing a new C-family file.
2015-06-20 05:57:01 +02:00
Homu
a24cc3c662 Auto merge of #1542 - vheon:fix-completer-available, r=Valloric
Fix check condition for setting omnifunction

I had the check for the omnifunc set backwards. I will start to see if we can start testing the vimscript layer as well. I have signed the CLA.
2015-06-19 05:30:28 +09:00
Andrea Cedraro
7bc05a37b5 Fix check condition for setting omnifunction 2015-06-18 14:08:06 +02:00
Homu
bc5f581b2d Auto merge of #1538 - vheon:fix-completer-available, r=Valloric
Fix completer available

Sorry, I deleted the branch on github by mistake. Here is the same changes from #1530 plus a buffer local variable, so we don't try to set the `omnifunc` everytime we enter insert mode. I signed the CLA.
2015-06-16 07:21:21 +09:00
Andrea Cedraro
fbdf7cc85e Reverse if logic in UpdateDiagnosticInterface 2015-06-15 16:08:56 +02:00
Andrea Cedraro
3dd24201f3 Revert "Revert "Check the server end point for available completer""
This reverts commit f5e2fc6958.
2015-06-15 16:08:56 +02:00
Andrea Cedraro
4104f7be82 Push check for NativeFiletypeCompletionUsable down
Another way in which the commit d768447 forced the client to wait for
the server to start was the UpdateDiagnosticNotifications call from the
FileReadyToParse which is called right after a buffer is loaded. In any
way if we don't have any previous FileReadyToParse request done for the
current file we bail out, so we we can wait for a FileReadyToParse
response to be available before asking if a completer is usable for the
current filetype.

ref: #1529
2015-06-15 16:08:56 +02:00
Andrea Cedraro
30036ca8e2 Defer setting the omnifunc.
When we enter a new buffer we need to know if the ycmd server has a
native completer for the current filetype, this means that when we start
vim we need to know if the server has a completer available for the
buffer which means that we have to wait for the server to be up and
running. To mitigate this defer the setting of the omnifunction closer
to its need which is when we enter insert mode; this should give room
for the ycmd server to start before we ask for anything or at least
should reduce the time waiting.

ref: #1529
2015-06-15 16:08:50 +02:00
Val Markovic
d77ef96ebc Merge pull request #1532 from vheon/fix-disable-filetype
Disable completion if any of current filetypes is disable
2015-06-12 10:02:18 -07:00
Andrea Cedraro
77947accf3 Disable completion if any of current filetypes is disable
Fixes #1531
2015-06-12 13:04:03 +02:00
Strahinja Val Markovic
f5e2fc6958 Revert "Check the server end point for available completer"
This reverts commit d7684470a2.

Fixes #1529
2015-06-11 12:37:40 -07:00
Val Markovic
1f073b122f Merge pull request #1524 from vheon/fix-completer-available
Check the server end point for available completer
2015-06-10 10:36:47 -07:00
Andrea Cedraro
d7684470a2 Check the server end point for available completer
Previously we were checking if the `hook.py` file existed for the given
filetype. ycmd has an endpoint for checking if given a filetype a
semantic completer is available. To avoid redundant requests we cache
those requests for every filetype. A semantic engine cannot be added
*after* the ycmd server is started so to avoid redundant requests we
cache those requests for every filetype and we clear the cache at server
setup, in this way if we issue a `YcmRestartServer` command the server
will be setup again and if a semantic completer is available we can use
it. Should fix #1284.
2015-06-09 13:09:25 +02:00
Val Markovic
9d63dc2bb6 Merge pull request #1517 from frankier/nul-c-space-neovim
Remap <Nul> to <C-Space> regardless of gui_running since it is an unreliable way of detecting terminals in neovim
2015-06-08 15:32:59 -07:00
Val Markovic
ed7f778a39 Merge pull request #1521 from The-Compiler/patch-1
Don't link to specific clang version
2015-06-08 15:27:13 -07:00
Florian Bruhin
12930708bb Don't link to specific clang version 2015-06-05 10:31:20 +02:00
Strahinja Val Markovic
6d6e2344f8 Updating to latest ycmd 2015-06-03 14:13:27 -07:00
Frankie Robertson
63a7aa9daf Remap <Nul> to <C-Space> regardless of gui_running since it is an unreliable way of detecting terminals in neovim 2015-06-03 14:33:56 +03:00
Strahinja Val Markovic
c2d962dddb Updating to latest ycmd 2015-05-29 10:13:28 -07:00
Strahinja Val Markovic
62c3608551 Updating to latest ycmd 2015-05-28 16:36:13 -07:00
Strahinja Val Markovic
aebcda3bd9 Updating to latest ycmd 2015-05-20 12:45:18 -07:00
Val Markovic
dfe7405cfd Merge pull request #1508 from micbou/pip
Remove deprecated --use-mirrors argument from pip
2015-05-19 21:44:14 -07:00
micbou
c989cfc78c Remove deprecated --use-mirrors argument from pip
Pip no longer supports --use-mirrors since version 1.5. See
https://github.com/pypa/pip/pull/1098.
2015-05-18 13:33:41 +02:00
Strahinja Val Markovic
295769ccfd Updating to latest ycmd 2015-05-07 12:55:16 -07:00
Strahinja Val Markovic
31e5fa6d28 Updating to latest ycmd 2015-04-24 14:21:54 -07:00
Strahinja Val Markovic
ac242e2fa4 Updating to latest ycmd
Fixes #1476
2015-04-24 14:19:18 -07:00
Strahinja Val Markovic
b4627a8106 Updating to latest ycmd 2015-04-21 15:39:46 -07:00
Strahinja Val Markovic
6ba88ccce5 Updating docs from README 2015-04-17 15:39:09 -07:00
Strahinja Val Markovic
a70bf21d29 Updating to latest ycmd
This required changing the HMAC calculation logic.
2015-04-17 15:01:29 -07:00
Val Markovic
8e30a02d4f Merge pull request #1459 from GuillaumeSeren/NeoBundleInstall
Add installation with NeoBundle in the FAQ.
2015-04-17 10:47:16 -07:00
Guillaume Seren
1331c13611 Add installation with NeoBundle in the FAQ. 2015-04-17 09:15:45 +02:00
Strahinja Val Markovic
b1c701afef Bump Requests to v2.6.0 2015-04-16 16:15:56 -07:00
Strahinja Val Markovic
d1586a95d8 Updating to latest ycmd 2015-04-16 16:15:10 -07:00
Strahinja Val Markovic
83fb8b8a15 Updating to latest ycmd 2015-04-15 17:42:38 -07:00
Strahinja Val Markovic
ede37d0231 Updating to latest ycmd 2015-04-15 12:19:55 -07:00
Val Markovic
038cc3b648 Merge pull request #1457 from ekfriis/gocode-docs
Update README for Gocode support in ycmd.
2015-04-15 12:10:27 -07:00
Evan Friis
9c6b181f92 Add short blurb for native completers.
Remove missing TOC entries.
2015-04-15 10:13:15 -07:00
Val Markovic
68ac03a70d Merge pull request #1455 from Sidnicious/patch-1
Fix spurious warning about missing newline at EOF
2015-04-15 10:09:10 -07:00
Evan Friis
9a2bfbfd4a Improve Gocode documentation. 2015-04-15 10:01:58 -07:00
Evan Friis
16163609ac Fix typo. 2015-04-15 10:00:44 -07:00
Evan Friis
6996a26fb2 Update docs for Gocode support. 2015-04-15 10:00:44 -07:00
Evan Friis
12a0f72896 Bump ycmd version for Gocode support. 2015-04-15 09:59:04 -07:00
Sidney San Martín
0e9324d012 Fix spurious warning about missing newline at EOF
C requires a newline at the end of any file, and clang may warn if it's
missing. Vim always saves one to disk, and we should mimic this.
2015-04-15 00:38:05 -07:00
Strahinja Val Markovic
ec4da3c1af Removing obsolete sections from the README
No need to mention semantic engine submodule conf because correct
submodule checkout is mandatory (and has been for years) for YCM to work
correctly. Not to mention that ycmd is what has the Jedi/OmniSharp
submodules now, not YCM itself.
2015-04-14 16:21:17 -07:00
Strahinja Val Markovic
bcfc4f006d Updating to latest ycmd 2015-04-08 10:59:08 -07:00
Strahinja Val Markovic
2f81090206 Updating to latest ycmd 2015-03-27 12:59:19 -07:00
Strahinja Val Markovic
9bfdb98b0d Updating to latest ycmd 2015-03-26 16:12:59 -07:00
Val Markovic
56dc60ddc8 Merge pull request #1417 from vheon/feature-new-or-existing-tab
Add new-or-existing-tab as ycm_goto_buffer_command method
2015-03-26 10:31:31 -07:00