Skip to content

Instantly share code, notes, and snippets.

diff --git a/ycmd/tests/java/conftest.py b/ycmd/tests/java/conftest.py
index fdb3ff4f..0e3edc52 100644
--- a/ycmd/tests/java/conftest.py
+++ b/ycmd/tests/java/conftest.py
@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with ycmd. If not, see <http://www.gnu.org/licenses/>.
+import contextlib
import os
pycompletionserver will start
pycompletionserver connecting to java server on 127.0.0.1 (1111)
pycompletionserver Connected to java server
diff --git a/ycmd/completers/cs/cs_completer.py b/ycmd/completers/cs/cs_completer.py
index 43ad87f3..13703e3b 100644
--- a/ycmd/completers/cs/cs_completer.py
+++ b/ycmd/completers/cs/cs_completer.py
@@ -589,6 +589,8 @@ class CsharpSolutionCompleter:
result = self._GetResponse( '/typelookup', request )
message = result[ "Type" ]
+ if not message:
+ raise RuntimeError( 'No type info found.' )
@bstaletic
bstaletic / pytest.ini
Last active January 10, 2020 18:08
Ycmd migration to pytest
[pytest]
python_functions = *_test
Traceback (most recent call first):
<built-in method __enter__ of _thread.lock object at remote 0x7f75b6e4b930>
File "/home/bstaletic/.vim/pack/bundle/start/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 642, in Shutdown
with self._stdout_lock:
File "/home/bstaletic/.vim/pack/bundle/start/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 377, in Close
self.Shutdown()
File "/home/bstaletic/.vim/pack/bundle/start/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 923, in Shutdown
self._connection.Close()
File "/home/bstaletic/.vim/pack/bundle/start/YouCompleteMe/third_party/ycmd/ycmd/completers/java/java_completer.py", line 483, in StartServer
self.Shutdown()
==21597== Invalid read of size 8
==21597== at 0x4B4B7CE: ??? (in /usr/lib/libpython3.8.so.1.0)
==21597== by 0x4BE3223: _PyImport_Fini (in /usr/lib/libpython3.8.so.1.0)
==21597== by 0x4C5795C: Py_FinalizeEx (in /usr/lib/libpython3.8.so.1.0)
==21597== by 0x4C58EA2: Py_RunMain (in /usr/lib/libpython3.8.so.1.0)
==21597== by 0x4C59328: Py_BytesMain (in /usr/lib/libpython3.8.so.1.0)
==21597== by 0x488E152: (below main) (in /usr/lib/libc-2.30.so)
==21597== Address 0x586fb90 is 0 bytes inside a block of size 104 free'd
==21597== at 0x4839EAB: operator delete(void*) (vg_replace_malloc.c:586)
==21597== by 0x4C0D29A: ??? (in /usr/lib/libpython3.8.so.1.0)
FUNCTION traces#cmdl_leave()
Defined: ~/.vim/pack/bundle/start/traces/autoload/traces.vim:762
Called 2 times
Total time: 0.001325
Self time: 0.001130
count total (s) self (s)
2 0.000050 let s:nr = bufnr('%')
2 0.000046 if !exists('s:buf[s:nr]')
return
diff --git a/python/ycm/signature_help.py b/python/ycm/signature_help.py
index 90b1d225..0e23575d 100644
--- a/python/ycm/signature_help.py
+++ b/python/ycm/signature_help.py
@@ -20,6 +20,8 @@ import json
from ycm import vimsupport
from ycm.vimsupport import GetIntValue
+SIGNATURE_SUPPORTED = None
+
2019-11-11 20:29:31,035 - DEBUG - Starting ycmd with: ['/home/bstaletic/.vim/pack/bundle/start/YouCompleteMe/third_party/ycmd/venv/bin/python', '-m', 'ptvsd', '--host', 'localhost', '--port', '1238', '--wait', '--no-subprocesses', '/home/bstaletic/.vim/pack/bundle/start/YouCompleteMe/python/ycm/../../third_party/ycmd/ycmd', '--port=52373', '--options_file=/tmp/tmplvshblov', '--log=debug', '--idle_suicide_seconds=1800', '--stdout=/tmp/ycmd_52373_stdout_c0mjnote.log', '--stderr=/tmp/ycmd_52373_stderr_pe8q8v0e.log']
2019-11-11 20:29:31,138 - DEBUG - GET b'http://127.0.0.1:52373/ready'
{'content-type': 'application/json', 'x-ycm-hmac': b'29r6AVD9gOCZL9jhy0jVZNYR/jCzjdrEYUpyvWZSowE='}
2019-11-11 20:29:31,183 - ERROR - HTTPConnectionPool(host='127.0.0.1', port=52373): Max retries exceeded with url: /ready (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f0c2c7f0ca0>: Failed to establish a new connection: [Errno 111] Connection refused'))
2019-11-11 20:29:31,284 - ERROR - The ycmd serve
@bstaletic
bstaletic / Vec.log
Last active November 9, 2019 15:27
rust-src debug
[2019-11-09T15:21:35Z TRACE rls_analysis::lowering] record def: Id(4294968620)/Id { krate: 0, index: 1324 } (1): Def { kind: Struct, span: Span { file: "/home/bstaletic/.vim/pack/bundle/start/YouCompleteMe/third_party/ycmd/third_party/rls/lib/rustlib/src/rust/src/libcore/ptr/unique.rs", range: Range { row_start: Row(33, PhantomData), row_end: Row(33, PhantomData), col_start: Column(11, PhantomData), col_end: Column(17, PhantomData) } }, name: "Unique", qualname: "core::ptr::unique::Unique", distro_crate: true, parent: None, value: "Unique { }", docs: " A wrapper around a raw non-null `*mut T` that indicates that the possessor\n of this wrapper owns the referent. Useful for building abstractions like\n `Box<T>`, `Vec<T>`, `String`, and `HashMap<K, V>`." }
[2019-11-09T15:21:35Z TRACE rls_analysis::lowering] record def: Id(38654705873)/Id { krate: 0, index: 209 } (9): Def { kind: Field, span: Span { file: "/cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs", range: Range { row_start: Row(