Commit Graph

1059 Commits

Author SHA1 Message Date
Strahinja Val Markovic
38f571db1f C-family filetypes now Syntastic passive mode
This is needed so that Syntastic doesn't call :SyntasticCheck (and thus YCM
code) on file save unnecessarily. We call :SyntasticCheck ourselves often
enough.
2013-10-29 13:00:36 -07:00
Strahinja Val Markovic
9734c473e2 Upping ycmd max request size to 500kb
Fixes #624
2013-10-29 12:16:46 -07:00
Strahinja Val Markovic
f46bc7335e Setting Syntastic option to work around a vim bug
See https://github.com/scrooloose/syntastic/issues/834 for details.
2013-10-29 11:33:08 -07:00
Strahinja Val Markovic
4b6b5709bd Bumping the suicide timer to 24 hours 2013-10-29 11:12:55 -07:00
Strahinja Val Markovic
e14ffadbd2 Suicide timer docs now state 0 turns off timer 2013-10-29 10:51:27 -07:00
Strahinja Val Markovic
3a6b87bf6d Making global string constants actually constant
Well this is embarrasing.
2013-10-28 13:28:00 -07:00
Strahinja Val Markovic
f3b1233e3c Clarify error about Vim without python 2 support
Should be less confusing to some users. Related to issue #619.
2013-10-28 12:31:31 -07:00
Strahinja Val Markovic
f91790e2ee Only importing ycm_core in ycmd
I'm not sure, but it seems that loading both ycm_client_support and ycm_core
into the same process is causing random ycmd crashes.
2013-10-28 12:17:18 -07:00
Strahinja Val Markovic
b288dce5ba Minor docs rewording 2013-10-27 10:22:08 -07:00
Strahinja Val Markovic
b04684b8ee Clarifying docs for FlagsForFile client_data 2013-10-27 10:19:22 -07:00
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