Chiel92
485457af5d
Apparently tested an unsaved file -_-
2013-07-16 16:12:40 +02:00
Chiel92
3617ce69db
style fixes
2013-07-16 12:33:07 +02:00
Spencer G. Jones
1a7da1650c
Find a free port for OmniSharp if another OmniSharp is using the default port
2013-07-15 09:12:32 -06:00
Chiel92
e15ec6ee93
minor refactoring PR #2
2013-07-13 20:11:59 +02:00
Spencer G. Jones
3737ca2ef4
Optionally write OmniSharp stdout and stderr to log files
2013-07-12 14:46:33 -06:00
Chiel92
a6a9fa10c3
pointed submodule to newest commit
2013-07-10 11:27:55 +02:00
Strahinja Val Markovic
ddd0287436
Code style fixes
2013-07-08 16:00:06 -07:00
Strahinja Val Markovic
a011eb6aa0
Fix duplicate entries in filename completion
...
We could just remove the "dup: 1" part in the completion dict, but that would
leave the duplicate removal up to Vim which would be slow. Also, we might not
end up returning the correct number of results then.
2013-07-08 15:56:54 -07:00
Chiel92
3227e6dc73
checkalivestatus rename
2013-07-08 14:39:43 +02:00
Chiel92
9250f55952
minor fix
2013-07-08 11:44:06 +02:00
Chiel92
bdd95ff43f
variable for csharp server port added
2013-07-08 11:39:17 +02:00
Chiel92
6ec038870b
ServerIsRunning fixed and variable defaults set
2013-07-08 11:22:17 +02:00
Chiel92
34c24129d2
Merge https://github.com/Valloric/YouCompleteMe
2013-07-07 22:37:10 +02:00
Chiel92
2f207cb4c6
autostart/stop server
2013-07-07 22:36:05 +02:00
Val Markovic
f7ef1aa041
Merge pull request #424 from beards/master
...
fix jedi DeprecationWarning
2013-07-07 11:13:22 -07:00
Strahinja Val Markovic
451acc0073
Adding OnVimLeave support to Completer class
2013-07-07 11:00:45 -07:00
Chiel92
d2a7fe9c0e
choice for multiple solutionfiles implemented
2013-07-07 13:28:28 +02:00
Chiel92
2743f96529
Starting subprocess is working now
2013-07-07 13:06:07 +02:00
simon_hsiung
a95195c8e8
fix jedi DeprecationWarning
2013-07-05 08:52:53 +00:00
Strahinja Val Markovic
cbc6c07a1a
Encouraging the user to read the docs even more
...
Apparently we weren't encouraging enough before. Related to issue #415 .
2013-07-01 11:34:25 -07:00
Strahinja Val Markovic
5496984931
Option to set min length for suggestions
...
Only works with the identifier completer. Fixes #387 .
2013-06-29 15:43:10 -07:00
Strahinja Val Markovic
04ca6ec4de
g:ycm_semantic_triggers now only adds new triggers
...
Fixes #164 .
2013-06-29 11:53:16 -07:00
Chiel92
e453c2b772
bugfix in solutionfile detector
2013-06-29 10:41:45 +02:00
Chiel92
faa6cf3f36
several fixes
2013-06-28 21:15:05 +02:00
Chiel92
37eb1b7521
added omnisharp server as submodule
2013-06-26 11:51:52 +02:00
Chiel92
a69d827934
solution file detection ported
2013-06-21 22:26:11 +02:00
Strahinja Val Markovic
280c704814
Using the new clang 3.3 headers
2013-06-19 21:58:53 -07:00
Chiel92
6dc4b38625
first throw
2013-06-13 23:34:34 +02:00
Strahinja Val Markovic
18ef728742
Updating the error message for ycm_core loading
2013-06-12 10:38:49 -07:00
Strahinja Val Markovic
e740bac1f6
Better completion in the middle of a word
...
For instance (`|` represents the cursor):
1. Buffer state: `foo.|bar`
2. A completion candidate of `zoobar` is shown and the user selects it.
3. Buffer state: `foo.zoobar|bar` instead of `foo.zoo|bar` which is what the
user wanted.
This commit resolves that issue.
It could be argued that the user actually wants the final buffer state to be
`foo.zoobar|` (the cursor at the end), but that would be much more difficult
to implement and is probably not worth doing.
Fixes #374 .
2013-06-09 19:00:49 -07:00
Strahinja Val Markovic
8fe41c7c73
Clarifying a comment.
2013-06-09 17:31:17 -07:00
Chiel92
48a4b324f4
moved vim.eval to init
2013-06-09 11:22:11 +02:00
Chiel92
1f91c59938
echoerr replaced by postvim message
2013-06-08 10:16:22 +02:00
Chiel92
a6424c22d8
displaytext and description swapped
2013-06-07 11:45:36 +02:00
Chiel92
7d7349142c
completer rewritten to fit in the changed api
2013-06-04 12:14:12 +02:00
Strahinja Val Markovic
3948b6efe2
Check for empty flags list
...
IndexErrors are not fun.
2013-05-28 09:43:13 -07:00
Strahinja Val Markovic
973064d0bd
Can now seed identifier database with keywords
...
By toggling the g:ycm_seed_identifiers_with_syntax option, the user can now tell
YCM to seed the identifier database with the language's keywords.
This is off by default because it can be noisy. Since the identifier completer
collects identifiers from buffers as the user visits them, the keywords that the
user cares about will already be in the database, regardless of the state of the
new option. So the only keywords added will be the ones the user is not using.
Meh. But people want it so there.
Fixes #142 .
2013-05-27 00:08:21 -07:00
Strahinja Val Markovic
454a961318
The identifier completer now reads tags files
...
See the docs for details. Fixes #135 .
2013-05-26 13:33:40 -07:00
Strahinja Val Markovic
38faa0e94e
Adding the ClearCompilationFlagCache subcommand
...
With this command the user can clean the in-memory cache of the compilation
flags that the clang completer uses.
2013-05-24 14:48:46 -07:00
Strahinja Val Markovic
d9f45d576f
Fix breakage of some compile_commands.json users
...
Depending on the user, the PrepareClangFlags rewrite of a few commits ago could
break users with an extra "clang: 'linker' input not used" (or similar) error
message because the compiler executable string was not removed from flags
upstream if the user prepended some flags to the output of PrepareClangFlags
before returning it to the caller of FlagsForFile.
Since the rewrite was supposed to be backwards compatible, this needs
to be handled.
2013-05-24 14:29:33 -07:00
Strahinja Val Markovic
11a7746753
Preventing possible TypeError with StringVec
...
It was possible to get a traceback if results[ 'flags' ] was a StringVec; the
code would try to perform results[ 'flags' ] += self.special_clang_flags and
this would then fail because the clang flags would be a Python list.
2013-05-22 15:47:30 -07:00
Strahinja Val Markovic
4389b1f1d8
API docs for ThreadedCompleter
2013-05-20 09:40:04 -07:00
Strahinja Val Markovic
381b86d595
Fixing python tests broken in rename
2013-05-19 20:06:14 -07:00
Strahinja Val Markovic
087cadcfaf
Adding back the Jedi submodule
2013-05-19 19:47:34 -07:00
Strahinja Val Markovic
faa225fdc4
Moving everything under pytho/ycm
2013-05-19 19:44:42 -07:00
Strahinja Val Markovic
acb9099bb9
Removing jedi submodule
2013-05-19 19:37:43 -07:00
Strahinja Val Markovic
357fd98747
Tests for helper functions in flags.py
2013-05-19 14:20:13 -07:00
Strahinja Val Markovic
45cbc7da7f
Calling PrepareClangFlags is not needed anymore
...
ycm_extra_conf.py files used to import clang_helpers and then use the
PrepareClangFlags function; this is now unnecessary since the logic from that
function has been moved to flags.py. The old PrepareClangFlags function is still
there (it just returns the flags it gets) for the sake of backwards
compatibility with old ycm_extra_conf.py files.
2013-05-19 10:48:23 -07:00
Strahinja Val Markovic
4978546e62
Refactoring out some pointless sys.path changes
2013-05-19 10:35:42 -07:00
Stanislav Golovanov
df7d51aeda
Use new Jedi API for keyword checking in goto funcs
...
Fixes #320
2013-05-18 23:47:49 +04:00
Stanislav Golovanov
9f1f329823
switch to upstream Jedi API
...
This replaces deprecated API calls to the new ones. Also this
partially fixes #320 .
2013-05-18 09:40:08 +04:00
Strahinja Val Markovic
4b039e2102
Using BufUnload instead of BufDelete
...
Seems to be more robust. This should help with memory consumption when using the
clang_completer. See issue #184 .
2013-05-11 13:49:48 -07:00
Strahinja Val Markovic
7bb7e20f8d
Revert "[filename_completer] Append '/' to [DIR] automatically"
...
This reverts commit 48d6a5378c
.
2013-05-11 12:24:35 -07:00
Zhao Cai
48d6a5378c
[filename_completer] Append '/' to [DIR] automatically
2013-05-11 02:21:19 -04:00
Strahinja Val Markovic
2b23245422
Minor refactoring & style cleanup
2013-05-09 20:28:04 -07:00
Val Markovic
48281d1379
Merge pull request #304 from JazzCore/subcommand_complete
...
Add subcommand completion for :YcmCompleter command
2013-05-09 20:21:26 -07:00
Val Markovic
3a984f938e
Merge pull request #308 from JazzCore/fix_307
...
fix IndexError when min_num_of_chars is set to 0
2013-05-09 20:15:40 -07:00
Strahinja Val Markovic
0c19ee4fa7
Updating to latest Jedi
2013-05-09 11:08:11 -07:00
Stanislav Golovanov
e5c99428f3
fix IndexError when min_num_of_chars is set to 0
...
Fixes #307 . Error is thrown when g:ycm_min_num_of_chars_for_completion
option is set to 0 user tries to delete an identifier which starts at
the beginning of the line.
2013-05-09 22:02:47 +04:00
Stanislav Golovanov
0edec9c95a
Add subcommand completion for YcmCompleter command
2013-05-09 21:55:55 +04:00
Stanislav Golovanov
54fabc1816
style fixes
2013-05-05 13:27:23 +04:00
Stanislav Golovanov
54e6a9f594
Add GoToDefinitionElseDeclaration for python
2013-05-04 22:48:27 +04:00
Stanislav Golovanov
f246f5b8c6
remove not needed type casting
2013-05-04 22:47:37 +04:00
Stanislav Golovanov
c2024edbaa
Add GoTo features for python
...
This adds a Go To Definition and Go To Declaration features for
python.
2013-05-04 03:11:10 +04:00
Strahinja Val Markovic
df7026e9b6
Fix error on YcmDebugInfo in quickfix window
...
Fixes #283
2013-04-28 15:52:22 -07:00
Strahinja Val Markovic
209f2fd777
Minor refactoring for simplicity
2013-04-26 22:32:22 -07:00
Strahinja Val Markovic
5207918432
Fix bug with [File] being shown instead of [Dir]
...
This is for filename completion in the case of C-family include completion. The
path was being assembled incorrectly so os.isdir() was getting the wrong path
and then could not see was it a directory.
2013-04-26 14:10:48 -07:00
Strahinja Val Markovic
840930ce09
Fixing minor regressions from general store commit
...
A few Completer methods that should have been forwarded to general completers
were not. This broke the identifier completer picking up the current identifier
right after it's typed in.
2013-04-25 15:36:56 -07:00
Stanislav Golovanov
4d138b2b7f
fix UnicodeEncodeError in ultisnips_completer
...
Fix a rare exception when a description of UltiSnips snippet contains
unicode symbols.
Fixes #274
2013-04-26 00:42:02 +04:00
Strahinja Val Markovic
a9215f10fe
Including current file dir for #include "" form
...
Relevant to issue #273
2013-04-25 12:56:32 -07:00
Strahinja Val Markovic
663873255f
Filename completer now uses include paths
...
It's also smart enough to trigger filename completion right after '#include "'.
Fixes #261
2013-04-24 22:51:53 -07:00
Strahinja Val Markovic
3ae9764451
Force filename completer on #include
2013-04-24 19:59:14 -07:00
Strahinja Val Markovic
7500a94cda
Use OnBufferVisit in ultisnips completer
...
This is instead of OnFileReadyToParse which is called every time the users stops
typing.
2013-04-24 13:31:28 -07:00
Strahinja Val Markovic
8c0a9bc90e
Fixing rare hang issue with ultisnips completer
...
The issue was that AsyncCandidateRequestReady in the ultisnips completer would
always return false if there were no snippets for the current filetype, leading
to an infinite loop in CompletionsForQuery.
Fixes #270 .
2013-04-24 13:07:56 -07:00
Strahinja Val Markovic
3258f324dd
Merge branch 'JazzCore-general_completers'
...
Conflicts:
python/ycm.py
2013-04-22 22:37:32 -07:00
Strahinja Val Markovic
196228217f
Filename completer now uses threads
...
This was done by introducing a new ThreadedCompleter class that descends from
Completer. Both JediCompleter and FilenameCompleter descend from
ThreadedCompleter.
2013-04-22 22:30:10 -07:00
Strahinja Val Markovic
8d20637295
User can now pick the root for relative paths
2013-04-22 22:30:10 -07:00
Strahinja Val Markovic
aa9127e3dc
Rewriting the code from the pull request
...
This implements the filename completer and introduces integration with
UltiSnips. The user will now see snippets in the completion menu. After
selecting a snippet, the user should invoke the UltiSnips trigger key
(which should be changed from the default of TAB) to trigger the snippet
expansion.
Fixes #77 , Fixes #36
2013-04-22 22:26:35 -07:00
Stanislav Golovanov
bb5839dd74
Add general filename completer & other stuff
2013-04-22 22:24:38 -07:00
Strahinja Val Markovic
14b2220f01
Supporting YcmCorePreload logic
...
Now the user has the option of writing custom logic before ycm_core.so is
loaded. This can be used to dynamically change the location of where ycm_core.so
is loaded by prepending paths to sys.path.
Very, very few people will need this feature, but I'm one of them so there.
2013-04-22 10:31:16 -07:00
Strahinja Val Markovic
aea154e829
Refactoring ycm_extra_conf handling into module
2013-04-22 10:31:16 -07:00
Stanislav Golovanov
5d37c40fea
Add general UltiSnips snippet completer
2013-04-21 01:28:37 +04:00
Stanislav Golovanov
48cda3bb8f
Add general completers support
2013-04-21 01:28:37 +04:00
Strahinja Val Markovic
93ed6f7db7
Fix bug with removing flag after "-c"
...
-c does not take an argument. Why did I think it did?
2013-04-19 10:31:55 -07:00
Thomas Refis
dad08df71b
checking if a key is in a dict is done with 'key in dict' not 'hasattr(dict, key)'
2013-04-13 14:29:57 +02:00
Jacek Lach
1b4eb6122c
Make caching optional in the omnicompleter
2013-04-11 10:22:16 +01:00
Strahinja Val Markovic
77fbd80c89
Refactoring out some vim.eval calls
...
s:completion_start_column should not be evaled in Python code. That was a
stopgap measure that ended up lasting far longer than intended.
2013-04-09 19:32:48 -07:00
Strahinja Val Markovic
27d73e0d51
Removing some dead code
2013-04-09 18:43:29 -07:00
Strahinja Val Markovic
085df7e8af
Fix traceback print on None for |location|
...
This happens when the user invokes a GoTo* command on a file with no compilation
flags.
2013-04-08 11:15:27 -07:00
Strahinja Val Markovic
a75c92bb6a
Using event.is_set to be compatible with Python2.6
...
Fixes #227
2013-04-03 19:14:46 -07:00
Strahinja Val Markovic
8e4a2e24f8
Ignoring mappings in our vim 'normal' invocation
2013-03-31 21:01:38 -07:00
Strahinja Val Markovic
1f094e50d0
GoToDefinition/Declaration commands for C-family
...
These are accessible through the :YcmCompleter command. The docs have more
information.
2013-03-31 20:38:29 -07:00
Strahinja Val Markovic
b4837c81fe
Handling exceptions in jedi_completer thread
2013-03-24 18:52:50 -07:00
Strahinja Val Markovic
edbcb3abfe
More cleanup for correctness and simplicity
...
The jedi completer now won't hang on <C-Space>
2013-03-24 18:42:31 -07:00
Strahinja Val Markovic
9845d81fb0
More style fixes
2013-03-24 15:22:31 -07:00
Strahinja Val Markovic
6fb784e61b
Making the python thread not hang Vim on exit
...
As the Pytho docs say, "The entire Python program exits when no alive non-daemon
threads are left." Basically, the daemon threads are safely killed.
2013-03-24 15:04:00 -07:00
Strahinja Val Markovic
1c78971acd
More style fixes
2013-03-24 14:57:25 -07:00
Strahinja Val Markovic
8f2715c1a4
Posting an error message when jedi import fails
2013-03-24 14:52:11 -07:00
Strahinja Val Markovic
4d95e32a1e
Python code style fixes
2013-03-24 14:41:22 -07:00
Strahinja Val Markovic
0954ff31d9
Bug fixes for the new python semantic completer
2013-03-24 14:38:55 -07:00