Ben Jackon
2215bcdeb5
Support completer commands that return text …
...
This is required to allow the ycmd GetType and GetParent subcommands to echo
their reults in vim. The apporach is to display any text returned from a
subcommand in the 'message' property assuming that the command is not a known
'GoTo' command.
2015-03-19 13:31:24 +00:00
Strahinja Val Markovic
74668373f8
Updating to latest ycmd
2015-03-06 17:07:58 -08:00
Strahinja Val Markovic
4436d515d3
Updating to latest ycmd
2015-01-30 10:21:35 -08:00
Strahinja Val Markovic
ba6e1408fd
Updating to latest ycmd
2015-01-22 10:14:28 -08:00
Strahinja Val Markovic
2fafab88c4
Ignoring the new "already being parsed" message
...
This exception comes from ycmd and is not something the user can do
anything about, so let's rather not show it.
2014-12-10 13:46:10 -08:00
Strahinja Val Markovic
def392d24c
Fix Vim E885: not possible to change sign
...
Clang will sometimes give a diagnostic for line 0, and Vim borks on
placing signs for line 0.
2014-10-29 10:16:38 -07:00
Strahinja Val Markovic
fe24f02005
Minor refactoring
2014-10-29 10:02:41 -07:00
Strahinja Val Markovic
ecd2041d9b
Updating to latest ycmd
...
Also required an ABI version bump (some internal names were changed).
2014-10-13 15:14:56 -07:00
Strahinja Val Markovic
33b5b1eb02
Minor refactoring & stylistic changes.
2014-09-19 12:30:15 -07:00
Stanislav Seletskiy
3fcc63127f
Fix handling of signs placed by other plugins
...
It appears to address numerous amount of issues, including: #812 , #801 , #887 .
Proposed solution uses dummy sign which is placed before updating
diagnostic signs and unplaced afterwards, which eliminates any
flickering. Also, it not just unplace all, it unplaces only that marks
that are changed, so performance should not be an issue in case of many
diagnostic messages.
It's common solution that can be found in some vim plugins that manage
signatures.
Signed-off-by: Stanislav Seletskiy <s.seletskiy@gmail.com>
2014-09-19 03:38:10 +07:00
Strahinja Val Markovic
24bbcf8811
Fix KeyError on no 'no_proxy' env var
2014-09-11 15:19:26 -07:00
Matthias Bilger
d3adb3faf1
Append to no_proxy instead of overwrite
...
Overwriting no_proxy may cause some trouble for other plugins using network in environments with proxy exceptions, e.g. vim-fugitive
2014-09-11 07:22:27 +02:00
Strahinja Val Markovic
feca403431
Now extracting PHP functions.
...
Needed special support because of 'contained' syntax arg.
Fixes #1143
Related #1058
2014-09-02 10:53:38 -07:00
Strahinja Val Markovic
15d305ab11
'Function' syntax group now correctly configured
2014-09-02 10:34:26 -07:00
Strahinja Val Markovic
2a704bc668
Custom identifier support now done.
...
This commit is the YCM-client part of the support. The ycmd support is
already done.
We now need per-language identifier regexes in ycmd (see
identifier_utils.py). There's some for HTML, CSS and the generic regex
that was used for everything until now. Pull requests welcome for other
languages.
Fixes #86 .
2014-08-28 11:39:10 -07:00
Strahinja Val Markovic
57b1ae129c
Added a unicode test for OverlapLength()
2014-08-28 11:39:10 -07:00
Strahinja Val Markovic
c032cf30c0
Removing default server_location.
2014-08-22 11:25:58 -07:00
Strahinja Val Markovic
32e3494d6e
Handling os.getcwd() throwing an exception.
...
This can happen if the CWD has been deleted.
Fixes #1129
2014-08-20 13:40:17 -07:00
Strahinja Val Markovic
a5b750703f
Comment update
2014-08-19 13:59:33 -07:00
Strahinja Val Markovic
f1ebf51fcb
Fix traceback on quote in filename
...
Fixes #1109
2014-07-31 10:30:03 -07:00
Val Markovic
fd324cbcbb
Merge pull request #1070 from evansb/master
...
Fix unicode-character filename bug.
2014-07-21 15:31:45 -07:00
Evan Sebastian
d18d515b29
Fix unicode-character filename bug.
...
Issued here https://github.com/Valloric/YouCompleteMe/issues/1069
To reproduce:
1. Create any file with unicode character on its filename, e.g `Ω.c`
2. Open the file and start adding codes until >5 lines (i.e ycm start compiling)
3. YCM will crash due to unicode encoding error. See issue referenced above for complete log.
2014-07-07 22:52:17 +07:00
Alexandre Fonseca
09379b3ff6
Allow '*' in ycm_filetype_specific_completion_to_disable.
...
I love YCM's auto popup with keyword completion when power typing but
would rather not have semantic completion activate unless I really want
it to (most semantic completers are somewhat slow and sometimes end up
breaking my flow). When in API exploration mode, I don't mind having
to press C-Space to force completion and wait a bit more.
Unless I'm mistaken, the current code does not allow wildcards in the
specification of filetypes on which to disable automatic semantic
completion. This change allows the use of '*' to disable automatic
semantic completion in all files.
2014-06-30 15:36:37 +02:00
Strahinja Val Markovic
6cd929c829
Further support for diag line_num < 1
...
Fixes #1028
2014-06-09 10:18:03 -07:00
Strahinja Val Markovic
afbc7869a7
Fix off-by-one error with location list diags
2014-06-09 10:04:07 -07:00
Strahinja Val Markovic
0cdb588207
Updating to latest ycmd
...
Diagnostic & completion 'kind' changed in the REST API.
2014-06-03 14:49:53 -07:00
Strahinja Val Markovic
e9a318fc7c
Update to latest ycmd
...
Upstream completions API changed.
2014-06-02 15:15:45 -07:00
Strahinja Val Markovic
748afecc4a
Handle libclang diags for line_num 0
...
Fixes #978
2014-05-29 13:25:43 -07:00
Strahinja Val Markovic
09d4723fcc
Updating to latest ycmd
...
Top-level 'filetypes' property not needed in request data anymore.
2014-05-29 10:42:46 -07:00
Strahinja Val Markovic
666cf3859a
Better detection of shortmess 'c' availability
...
Also noting that the annoying messages during completion go away with Vim
7.3.314.
Related to #642 .
2014-05-28 15:48:49 -07:00
Strahinja Val Markovic
8615e408b4
Updating to latest ycmd
2014-05-28 11:24:33 -07:00
Strahinja Val Markovic
5d647fec99
Removing erroneous whitespace
2014-05-28 10:20:54 -07:00
Strahinja Val Markovic
6fa49582ed
Fix missing param in OmniCompletionRequest
2014-05-28 00:05:50 -07:00
Strahinja Val Markovic
9100044afc
Refactored completion request creation
...
- OmniCompleter is now more similar to other Completers.
- CompletionRequest doesn't store start_column anymore.
- Calling BuildRequestData only once per request.
2014-05-27 17:38:34 -07:00
Strahinja Val Markovic
876eaf9c33
OmniCompleter requests now have buffer data
...
RequestWrap needs buffer data to produce computed properties.
2014-05-27 15:34:46 -07:00
Strahinja Val Markovic
4cf9cfcdff
Updating to latest ycmd
...
Since ycmd doesn't need 'query', 'start_column' and 'line_value' params, we
don't send them anymore.
2014-05-27 14:30:22 -07:00
Strahinja Val Markovic
3d733dca2d
:YcmCompleter<TAB> now won't print traceback
...
If there's no semantic completer set for the current filetype,
:YcmCompleter<TAB> would print an ugly traceback. Ugh.
Fixes #989 .
2014-05-22 14:12:51 -07:00
Jan Vcelak
5916226f06
use IPv4 to connect to ycmd
2014-05-21 22:40:47 +02:00
David\ Beitey
3bef7977a9
Enable Function syntax for keyword seeding
2014-05-21 13:33:45 +10:00
Strahinja Val Markovic
ec6966236c
GoTo commands now work when spaces in filenames
...
Fixes #977
2014-05-19 12:37:30 -07:00
Strahinja Val Markovic
68f3577b87
Faster drawing of red diagnostic underlines
...
The new version of the regex executes faster.
Fixes #968 .
2014-05-19 11:10:03 -07:00
Strahinja Val Markovic
d7195f6f19
Fixing race condition on server crash
...
Crash handling code tried to read stderr log file, but the file can be deleted
by the server befor we get to look at it. In such a case, we post a different
error message (without the log output).
Point is we do our best to get the error output if the user doesn't have
g:ycm_server_keep_logfiles set. If we can't get the logfile, oh well. We tell
the user to set that flag if they care.
Fixes #974 .
2014-05-16 19:26:46 -07:00
Strahinja Val Markovic
a69bbb3009
Updating code to work with new ycmd location
2014-05-13 13:09:19 -07:00
Strahinja Val Markovic
abfba7a1aa
Moved ycmd-related files to third_party/ycmd
...
This is in preparation of splitting ycmd into a separate project.
2014-05-12 17:00:43 -07:00
Strahinja Val Markovic
7eaafd7ff8
Using OmniSharp from new directory
2014-05-12 16:30:54 -07:00
Strahinja Val Markovic
ea8ef9c34a
Moved OmniSharpServer to third_party folder
2014-05-12 16:14:29 -07:00
Strahinja Val Markovic
1ead914c4e
Fixing OmniCompleter to use 1-based start_column
...
Fixes #963 .
2014-05-12 12:54:19 -07:00
Strahinja Val Markovic
d56ec1ea7a
ycmd's JSON interface now uses 1-based indices
...
This makes far more sense because editors manipulate user-level errors/warnings
on a 1-based system, not a 0-based one.
2014-05-09 15:57:04 -07:00
Strahinja Val Markovic
4529bda5c2
Remove unused import
2014-05-09 12:36:36 -07:00
Strahinja Val Markovic
8fd6296f49
Refactored cs_completer tests some more
...
Common server-wait code is in a helper func now.
2014-05-09 12:19:22 -07:00
Strahinja Val Markovic
52fdf2d09f
Formatting fixes
2014-05-09 12:08:29 -07:00
Strahinja Val Markovic
a4da9ee686
Refactoring tests to use new helper methods
...
Plus minor formatting fixes.
2014-05-09 12:06:56 -07:00
Strahinja Val Markovic
72d91957fc
Formatting fixes
2014-05-09 12:04:15 -07:00
Val Markovic
7aa68d93b6
Merge pull request #956 from mispencer/CsharpErrorDisplay
...
Support for diagnostic for C#
2014-05-09 12:01:43 -07:00
Strahinja Val Markovic
9691bd9236
Encoding the x-ycm-hmac header value as base64.
...
We need to respect RFC 5987.
2014-05-09 10:37:20 -07:00
Strahinja Val Markovic
ec65950a9b
Fixing tests
...
Tests read the default hmac_secret from default_settings.json, and that value is
read as a unicode object by the json parser, not str.
2014-05-09 10:22:00 -07:00
Strahinja Val Markovic
8e40315258
Helper test func for stopping OmniSharp server.
2014-05-08 15:41:07 -07:00
Spencer G. Jones
465019b197
Support for SyntaxErrors in CSharp completer
2014-05-08 15:40:50 -06:00
Strahinja Val Markovic
a1feadece0
indentation fix
2014-05-05 11:11:57 -07:00
Strahinja Val Markovic
ccf0a2ed4d
More secure comparison of HMAC strings
...
To avoid timing attacks. The implementation of SecureCompareStrings is pulled
directly from python 3.4 sources.
2014-05-05 10:35:31 -07:00
Strahinja Val Markovic
b56858d2b0
Error handler now also sets HMAC header.
2014-04-25 12:03:39 -07:00
Strahinja Val Markovic
e965e02847
Client/server communication now uses HMAC for auth
...
This is to prevent a convoluted exploit that can trigger remote code execution.
2014-04-25 11:07:08 -07:00
Strahinja Val Markovic
479ad62555
Prevent setsid() failure from taking down ycmd
2014-04-10 13:02:49 -07:00
Strahinja Val Markovic
e17be2f81c
Revert "Don't pass extra include path to libclang"
...
This reverts commit 7bdff8941c
.
2014-04-02 15:41:48 -07:00
Val Markovic
f054fcfc0a
Merge pull request #910 from nickhutchinson/fix-libclang-includes
...
Fix libclang's #include search path
2014-04-01 21:16:09 -07:00
Marc Burns
6df96fcccf
Use OnWindows from utils instead of ad-hoc platform check.
2014-04-01 20:29:20 -04:00
Marc Burns
8f116b849a
Detach from controlling terminal to avoid receiving SIGINT.
2014-04-01 04:18:22 -04:00
Spencer G. Jones
439450d3bd
CSharp GoTo was off by one column and line
2014-03-31 08:54:46 -06:00
Nicholas Hutchinson
7bdff8941c
Don't pass extra include path to libclang
2014-03-27 08:07:56 +00:00
Val Markovic
136b80cd88
Merge pull request #903 from Valloric/watchdog-fix
...
ycmd watchog timer now wiser about machine sleep
2014-03-26 12:52:56 -07:00
Val Markovic
9d388ef4b3
Merge pull request #845 from davits/master
...
Added options to choose GoTo commands buffer...
2014-03-24 12:59:35 -07:00
Davit Samvelyan
b4b94429dd
reverted back to the GetBufferOption
2014-03-23 12:33:27 +04:00
Davit Samvelyan
b9109af709
Added check for Vim 'hidden' option when trying to open result in the same buffer
2014-03-22 14:24:16 +04:00
Strahinja Val Markovic
90e097efa4
Implementing the new GoToImprecise command
...
Same as GoTo, but trades correctness for speed. See the docs for details.
2014-03-21 12:37:01 -07:00
Strahinja Val Markovic
9cf566bd8f
Renamed GoToDefinitionElseDeclaration to GoTo
...
The old name still works for the sake of backwards compatibility.
2014-03-21 11:34:00 -07:00
Strahinja Val Markovic
4adf71969d
ycmd watchog timer now wiser about machine sleep
...
We now make sure we don't terminate ycmd if we skipped a watchdog wakeup
time. If we skipped a check, that means the machine probably went to sleep and
the client might still actually be up. In such cases, we give it one more wait
interval to contact us before we die.
2014-03-20 15:44:35 -07:00
Spencer G. Jones
81973caf05
Call OmniSharpServer correctly in Cygwin
...
Cygwin should not call OmniSharpServer with mono
Update OmniSharpServer submodule for new client path mode parameter
Pass client path mode to OmniSharpServer on run
2014-03-20 08:40:43 -06:00
Strahinja Val Markovic
bf0a499093
Fixing more unicode-related issues.
...
This is getting really tedious really fast.
2014-03-19 15:13:35 -07:00
Strahinja Val Markovic
2f051ee9f1
YCM client now sends utf-8 encoded JSON.
...
Previously, we'd just use json.dumps() to dump out JSON. By default,
ensure_ascii is set to true and non-ASCII chars are encoded as \uXXXX.
Problems seem to happen with other text in the data then not being utf8. I'm not
sure why, still can't repro. This should go away now that we explicitly build a
unicode string which we then encode as utf8.
Hopefully fixes #821 .
2014-03-19 13:16:49 -07:00
Strahinja Val Markovic
7a4f5a4a53
Minor var naming changes
2014-03-19 10:27:34 -07:00
Val Markovic
321355b041
Merge pull request #860 from aslater/master
...
Revised fix for ycmd terminate race condition
2014-03-05 17:02:19 -08:00
unknown
b4728f3f93
fixed some comments and opened the logfiles in ascii rather than binary mode
2014-03-04 22:59:34 -06:00
Strahinja Val Markovic
bdec814af9
Resolving a minor lint error
2014-03-04 10:24:21 -08:00
davits
40dc235136
Combined same_buffer and buffer_command options.
2014-03-04 14:47:43 +04:00
unknown
875d6cf282
fix Travis-CI failures
2014-03-03 20:18:44 -06:00
davits
8c6857bf91
missing space
2014-03-03 10:26:06 +04:00
unknown
404c167525
Removed communicate call. Moved log file handling to the server daemon
2014-03-02 00:14:14 -06:00
Strahinja Val Markovic
0d9c11d329
Adding 'mail' filetype (mutt) to blacklist
...
Fixes #847
2014-03-01 10:15:25 -08:00
Spencer G. Jones
2d9c41f527
Expose OmniSharp's ReloadSolution command
2014-02-28 11:46:55 -07:00
unknown
a4e28157c4
Added call to communicate() after terminating server
2014-02-26 22:23:29 -06:00
davits
0102d23bfe
Added options to choose whether GoTo commands result should be opened in the new buffer and in which one.
2014-02-23 17:50:51 +04:00
Val Markovic
55663847ba
Merge pull request #824 from mispencer/OmnisharpServerUpdate
...
Update OmniSharpServer to latest to resolve port issues on windows as non-admin
2014-02-19 13:40:52 -08:00
Spencer G. Jones
ec96a021a4
Refactor cs_completer to reduce complexity
2014-02-19 11:32:00 -07:00
Spencer G. Jones
5b5e182194
Use new Omnisharp Server ready command
2014-02-19 10:45:01 -07:00
Spencer G. Jones
2bf3bd5cac
Update OmniSharpServer to latest to pickup cf35aeab and 53ea4d7fb5
2014-02-19 10:41:11 -07:00
Val Markovic
784ebd68b5
Merge pull request #776 from davits/master
...
Fix for Issue #630
2014-02-18 12:20:20 -08:00
Strahinja Val Markovic
18be5c254a
Increasing worker thread count to 30
...
If it takes a while to compile the user's C++ file, the YCM client/server may
run out of threads. Vim gets laggy then.
This is a stopgap measure until I think of something better.
2014-02-07 12:46:45 -08:00
davits
00ae628443
Added ordering of system path completion entries
2014-02-03 11:43:30 +04:00
davits
8619099756
Fixed completions ordering, this time for real :)
2014-02-01 17:32:09 +04:00
davits
8520c5f5ac
Added tests for filename_completer, fixed ordering of completions
2014-02-01 17:14:45 +04:00