Strahinja Val Markovic
ed47a8c2a1
Updating vimdoc from readme
2013-10-26 16:29:12 -07:00
Strahinja Val Markovic
6e782508b3
Now possible to sent Vim data to FlagsForFile func
...
Fixes #612 .
2013-10-26 16:22:43 -07:00
Strahinja Val Markovic
dda1a83c09
Turning off the omnisharp server after test
2013-10-26 12:30:49 -07:00
Strahinja Val Markovic
63534e1a6f
Fixing some cs completer subcommands failing
...
The subcommand would execute correctly, but since there would be no return
statement, it would hit the bottom of the function and raise an error.
2013-10-26 12:28:10 -07:00
Strahinja Val Markovic
3795f4f11c
Split server tests into multiple files
2013-10-26 12:15:56 -07:00
Strahinja Val Markovic
17d149e899
ycmd loads default options when none provided
2013-10-25 13:26:33 -07:00
Strahinja Val Markovic
2b8ee37bf5
ycmd uses a random free port when running vim-free
...
Previously the default was 6666, which was temporary.
2013-10-25 13:11:13 -07:00
Strahinja Val Markovic
f20448d89e
Fix rare issue with static initialization
...
ycmd would sometimes crash on startup with a coredump and a message from glibc
on how free() was called for an invalid pointer. A gdb session pointed out that
the problem was with static initialization order.
2013-10-25 13:03:00 -07:00
Strahinja Val Markovic
77b8adf0a9
Minor refactoring for readability
2013-10-24 20:24:08 -07:00
Strahinja Val Markovic
2a42e2ccdf
Better way of locating the Python 2.6/2.7 bin
...
It appears we can't trust sys.executable on some Unix machines as well.
Fixes #607 .
2013-10-24 20:21:03 -07:00
Strahinja Val Markovic
4c88ea5249
Adding submodule rationale to docs
2013-10-24 16:00:00 -07:00
Strahinja Val Markovic
d6b2331d41
Mentioning submodule init in full install guide
2013-10-24 15:58:45 -07:00
Val Markovic
87f1ec4bbb
Formatting fix for CONTRIBUTING.md
2013-10-24 14:37:07 -07:00
Val Markovic
88d2171a16
Merge pull request #578 from Valloric/ycmd
...
YCM rewritten to have a client-server architecture
2013-10-24 12:43:02 -07:00
Strahinja Val Markovic
1aa3a12293
Updating vimdoc from README
2013-10-24 12:41:56 -07:00
Strahinja Val Markovic
d35832da61
Updating README with ycmd info
...
Lots of things changed on the ycmd branch!
2013-10-24 12:31:38 -07:00
Strahinja Val Markovic
cb939dd8e2
Adding a check for third_party libs present
...
If the user forgot to checkout the submodules, then we bork during install.sh.
2013-10-24 11:16:36 -07:00
Strahinja Val Markovic
a0f85f0b6c
The ycm_temp dir is now accessible by all
...
Fixes #606
2013-10-24 10:26:55 -07:00
Strahinja Val Markovic
4af2ba0faa
Option "shutdown_secs" is now "suicide_secs"
...
Calling the option server_idle_suicide_seconds should be easier to understand.
2013-10-23 12:33:27 -07:00
Strahinja Val Markovic
b2aa5e3d3f
Moving client-only settings out of settings JSON
...
Since these options are only used on the client, they shouldn't be in
default_settings.json.
2013-10-23 12:30:13 -07:00
Strahinja Val Markovic
262d8aad03
New ycmd watchdog kills server when idle too long
...
Defaults are kill server after 12 hours of inactivity; the reason why it's 12
hours and not less is because we don't want to kill the server when the user
just left his machine (and Vim) on during the night.
2013-10-23 12:21:33 -07:00
Strahinja Val Markovic
78107361b3
Killing some dead code
2013-10-22 13:48:15 -07:00
Strahinja Val Markovic
5b76bcf8b7
GetDetailedDiagnostic actually takes 2 params
...
The Completer class version of the func only took 1 by mistake.
2013-10-22 13:46:24 -07:00
Strahinja Val Markovic
ce96a47098
Printing server PID in YcmDebugInfo
2013-10-22 10:53:31 -07:00
Strahinja Val Markovic
6d9969fa9c
Surfacing ycmd server PID to user scripts
...
To get the PID, call function youcompleteme#ServerPid().
2013-10-22 10:51:37 -07:00
Strahinja Val Markovic
5719a5e080
Updating to latest upstream Jedi (dev branch)
...
This fixes #599 .
2013-10-21 12:49:34 -07:00
Strahinja Val Markovic
9d8fdac518
Minor cleanup of Completer comments
2013-10-18 12:35:40 -07:00
Strahinja Val Markovic
f6ca040cf7
Nth attempt at correct shutdown procedure.
...
If we install an explicit signal handler for SIGTERM and SIGINT and then call
sys.exit ourselves, atexit handlers are run. If we don't call sys.exit from the
handler, ycmd never shuts down. So fixed... I think. We'll see.
Fixes #577... again.
2013-10-17 22:15:17 -07:00
Strahinja Val Markovic
a5fb6b7509
Removing unsupported signal() calls on Windows
...
SIGQUIT and SIGHUP are not supported.
For details, see Python docs: http://docs.python.org/2/library/signal.html#signal.signal
2013-10-17 20:16:44 -07:00
Strahinja Val Markovic
6e9a16e90e
Signal handler must take 2 params
...
Otherwise we get a TypeError
2013-10-17 20:14:56 -07:00
Strahinja Val Markovic
acae8e4e9d
Tweaked the request retries logic.
...
We now send more retry requests that are less spaced apart.
2013-10-17 14:45:53 -07:00
Strahinja Val Markovic
40464f6e0d
Resolving issues with event requests timing out
...
It appears that the issue comes from sending a None timeout to Requests. It
seems it's a bug in Requests/urllib3. So we just pick an arbitrary long timeout
of 30s as the default.
2013-10-17 14:21:37 -07:00
Strahinja Val Markovic
5070835d01
Ensuring server cleanup on OS signals
...
atexit won't run registered functions for SIGTERM which we send to the server.
This prevents clean shutdown.
Also making sure that the server logfiles are deleted as well.
2013-10-17 12:21:59 -07:00
Strahinja Val Markovic
b4d5b4ffbb
More logging for extra conf store
2013-10-17 12:21:33 -07:00
Strahinja Val Markovic
5b37a2e36d
Don't print traceback when no detailed diagnostic
...
We should only print the message.
2013-10-16 14:37:42 -07:00
Strahinja Val Markovic
e20c88a4b5
install.sh script works again
...
Fixes #589
2013-10-16 09:55:57 -07:00
Val Markovic
5edb0be951
Merge pull request #588 from vheon/patch-1
...
Fix error on startup caused by malformed expression
2013-10-16 09:54:12 -07:00
Andrea Cedraro
aadb93e889
Fix error on startup caused by malformed expression
2013-10-16 12:25:25 +02:00
Strahinja Val Markovic
18002e17df
Better handling of crashed ycmd; restart command
...
Previously the YCM Vim client would go bonkers when ycmd crashed. Now the user
can continue using Vim just without YCM functionality.
Also added a :YcmRestartServer command to let the user restart ycmd if it
crashed. With a little luck, this will be rarely necessary.
2013-10-15 15:27:54 -07:00
Strahinja Val Markovic
436017bd4d
Now using new ycm_client_support shared lib
...
This means we can now load just ycm_client_support (which is a much smaller
library) into Vim and ycm_core into ycmd. Since ycm_client_support never depends
on libclang.so, we never have to load that into Vim which makes things much,
much easier.
2013-10-15 14:15:04 -07:00
Strahinja Val Markovic
016434e846
Deleting some dead code
2013-10-14 20:46:42 -07:00
Strahinja Val Markovic
98f549aeae
More robust way of picking an unused local port
...
Fixes #584 .
2013-10-14 20:38:45 -07:00
Strahinja Val Markovic
b903867cdd
ycm_core now imported after extra conf preload
2013-10-14 15:29:00 -07:00
Strahinja Val Markovic
bc607724f0
Ensuring ident completion works always
...
A bug turned it off when omni completion was available.
Fixes #583 .
2013-10-14 13:29:28 -07:00
Strahinja Val Markovic
a534a58477
Checking if ultisnips data present before using it
...
Mentioned in issue #583 , but it's not the root cause.
2013-10-14 12:32:18 -07:00
Strahinja Val Markovic
c3fcaf2b29
Strict 0.5s time budget for completion requests
...
Vim still loves to block the main GUI thread on occasion when asking for
completions... to counteract this stupidity, we enforce a hard budget of 0.5s
for all completion requests. If the server doesn't respond by then (it should,
unless something really bad happened), we give up.
2013-10-14 11:08:15 -07:00
Strahinja Val Markovic
6331df95cc
compilation db caller can now know if db busy
2013-10-14 10:22:57 -07:00
Strahinja Val Markovic
a04ae37ead
Client & server threads increased from 4 to 10
2013-10-11 20:12:04 -07:00
Strahinja Val Markovic
f6432e1498
Releasing Python's GIL in C++ code where possible
...
Without this, all requests to the server become effectively serialized.
2013-10-11 19:27:04 -07:00
Strahinja Val Markovic
3ae10395ea
Preventing Vim thread block on file save
...
Syntastic would run SyntasticCheck on file save, which would unconditionally
call _latest_file_parse_request.Response() and thus block until the request
returned from the server. We don't want that, so we throw in an explicit check
for the request being ready.
2013-10-11 19:09:21 -07:00