Commit Graph

1654 Commits

Author SHA1 Message Date
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
Val Markovic
abfc3ee36a Merge pull request #932 from RedBeard0531/master
Only adjust updatetime if above 2000.
2014-04-17 10:05:09 -07:00
Mathias Stearn
a1be7dc64c Only adjust updatetime if above 2000.
Goal is to lower it so don't raise it if already low.

Closes #834
2014-04-16 14:50:20 -04:00
Strahinja Val Markovic
479ad62555 Prevent setsid() failure from taking down ycmd 2014-04-10 13:02:49 -07:00
Strahinja Val Markovic
1721597f0c GoTo commands now work with C-family macros
Fixes #758
2014-04-07 10:52:46 -07:00
Strahinja Val Markovic
e48c5b7f9a Revert "Remove clang_includes folder"
This reverts commit cca4785fb6.
2014-04-02 15:41:51 -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
Strahinja Val Markovic
9865d479e1 Revert "Add libclang builtin headers for LLVM release 3.3 and 3.4"
This reverts commit 2f84503a99.
2014-04-02 15:41:45 -07:00
Strahinja Val Markovic
cc488d6e3c Revert "Add builtin includes for AppleClang 5.1"
This reverts commit c62bb98f4f.
2014-04-02 15:41:41 -07:00
Strahinja Val Markovic
5ed486b8d3 More strongly condemn use of system libclang 2014-04-02 14:30:39 -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
Val Markovic
3350459ec8 Merge pull request #918 from m4burns/master
Detach from controlling terminal to avoid receiving SIGINT.
2014-04-01 20:59:55 -07:00
Marc Burns
6df96fcccf Use OnWindows from utils instead of ad-hoc platform check. 2014-04-01 20:29:20 -04:00
Nicholas Hutchinson
c62bb98f4f Add builtin includes for AppleClang 5.1
Copied from Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib
2014-04-01 21:27:54 +01:00
Nicholas Hutchinson
2f84503a99 Add libclang builtin headers for LLVM release 3.3 and 3.4
Copied from the ./lib/clang/3.X/include directories of the prebuilt binary releases at llvm.org, specifically
http://llvm.org/releases/3.3/clang+llvm-3.3-amd64-Ubuntu-12.04.2.tar.gz and http://llvm.org/releases/3.4/clang+llvm-3.4-x86_64-linux-gnu-ubuntu-13.10.tar.xz.

These headers don't appear to be arch dependent, so we should be good.
2014-04-01 19:34:52 +01:00
Marc Burns
8f116b849a Detach from controlling terminal to avoid receiving SIGINT. 2014-04-01 04:18:22 -04:00
Val Markovic
833d3b968c Merge pull request #917 from mispencer/CsGotoOffOneLineColumn
CSharp GoTo is off by one column and line
2014-03-31 10:38:56 -07: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
Nicholas Hutchinson
cca4785fb6 Remove clang_includes folder 2014-03-26 10:03:20 +00: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
9d3258df19 Updating vimdoc from readme 2014-03-21 12:40:35 -07: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
Val Markovic
f0bbe22fe4 Merge pull request #901 from mispencer/CygwinDllNameLocation
Cygwin dll extension and installation
2014-03-20 13:55:39 -07:00
Spencer G. Jones
aa719665da Explicitly disable cygwin win32 legacy mode to avoid warnings 2014-03-20 14:29:48 -06:00
Spencer G. Jones
ae150fbfd3 Windows cmake puts the dlls in RUNTIME_OUTPUT_DIRECTORY 2014-03-20 14:29:40 -06:00
Spencer G. Jones
e5d7c363da Cygwin should build compiled Python modules as dll 2014-03-20 12:12:17 -06:00
Val Markovic
5619c00487 Merge pull request #900 from mispencer/CygwinClientChanges
Call OmniSharpServer correctly in Cygwin
2014-03-20 09:41:18 -07:00
Val Markovic
a590f51fb7 Merge pull request #902 from mispencer/CheckForMsbuildExe
Check for the existence of msbuild.exe as well.
2014-03-20 09:40:32 -07:00
Spencer G. Jones
f5cbeacdb2 Check for the existence of msbuild.exe as well. 2014-03-20 09:03:04 -06: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
999a1902eb Adding a note about small pull requests. 2014-03-19 15:51:44 -07:00
Strahinja Val Markovic
28663c191d Revert "Always use python_finder on install"
This reverts commit 38a84d2b9f.
2014-03-19 15:24:35 -07:00
Val Markovic
80b4647009 Merge pull request #882 from cehoffman/patch-1
Always use python_finder on install
2014-03-19 15:20:09 -07: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
50b3b1efd4 Moved a comment around & rephrased it 2014-03-19 14:37:21 -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
36436d03b6 Update Jedi to latest upstream dev branch 2014-03-19 10:29:49 -07:00
Strahinja Val Markovic
7a4f5a4a53 Minor var naming changes 2014-03-19 10:27:34 -07:00