[ x ] I have searched YCM's issue tracker to find issues similar to the one I'm
about to report and couldn't find an answer to my problem. (Example Google
search.)
[ x ] If filing a bug report, I have included the output of vim --version.
[ x ] If filing a bug report, I have included the output of :YcmDebugInfo.
[ x ] If filing a bug report, I have included which OS (including specific OS
version)
[ x ] If filing a bug report, I have included a minimal test case that reproduces
my issue, including what I expected to happen and what actually happened.
[ x ] I understand this is an open-source project staffed by volunteers and
that any help I receive is a selfless, heartfelt gift of their free time. I
know I am not entitled to anything and will be polite and courteous.
[ x ] I understand my issue may be closed if it becomes obvious I didn't
actually perform all of these steps.
Thank you for adhering to this process! It ensures your issue is resolved
quickly and that neither your nor our time is needlessly wasted.
Issue Details
Provide a clear description of the problem, including the following key
questions:
What did you do?
Perform simple completion, the suggestions seems to be working fine.
But when I invoke completion, extra texts appear along with the selected completion.
I tried check key mapping & remove all suspected collision of key mapping also.
But with no avail, the problem stills occur.
Include steps to reproduce here.
Do a completion
Invoke completion
Results: unexpected comes out together with completion
<va< prepare(for: <#T##UIStoryboardSegue#>, sender: <#T##Any?#>)
notice the <va<
Expected Results: just the completion texts, not the extra
prepare(for: <#T##UIStoryboardSegue#>, sender: <#T##Any?#>)
Include description of a minimal test case, including any actual code required
to reproduce the issue.
This is invoke inside a view controller class
import UIKit
import RxSwift
class ViewController: UIViewController {
var object = Waitable()
let disposeBag = DisposeBag()
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.:
<va< prepare(for: <#T##UIStoryboardSegue#>, sender: <#T##Any?#>)
}
@IBAction func first() {
object.nextNumber().subscribe(onSuccess: {
print($0)
}).disposed(by: disposeBag)
}
@IBAction func second() {
print("Second is called")
object.nextNumber().subscribe(onSuccess: {
print("Second is executed from watiing first \($0)")
}).disposed(by: disposeBag)
}
}
* What did you expect to happen?
> Include description of the expected behaviour.
Only completion texts with placeholder tokens
`prepare(for: <#T##UIStoryboardSegue#>, sender: <#T##Any?#>)`
* What actually happened?
> Include description of the observed behaviour, including actual output,
> screenshots, etc.
There is a extra text *<va<*
`<va< prepare(for: <#T##UIStoryboardSegue#>, sender: <#T##Any?#>)`
# Diagnostic data
## Output of `vim --version`
> Place the output here, or a link to a [gist][].
My vim is neovim with below info
Features: +acl +iconv +jemalloc +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/local/Cellar/neovim/0.2.2_1/share/nvim"
Run :checkhealth for more info
## Output of `YcmDebugInfo`
> Place the output here, or a link to a [gist][].
Printing YouCompleteMe debug information...
-- Client logfile: /var/folders/lc/r4cdcx610yl61m8pjrt7p9yw0000gn/T/ycm_99lxulj9.log
-- Server Python interpreter: /usr/local/opt/python@2/bin/python2.7
-- Server Python version: 2.7.14
-- Server has Clang support compiled in: True
-- Clang version: clang version 6.0.0 (tags/RELEASE_600/final)
-- No extra configuration file found
-- Server running at: http://127.0.0.1:50173
-- Server process ID: 51561
-- Server logfiles:
-- /var/folders/lc/r4cdcx610yl61m8pjrt7p9yw0000gn/T/ycmd_50173_stdout_qn68et8w.log
-- /var/folders/lc/r4cdcx610yl61m8pjrt7p9yw0000gn/T/ycmd_50173_stderr_h3ffck90.log
- [ x ] If filing a bug report, I have attached the contents of the logfiles using the `:YcmToggleLogs` command.
Contents of YCM, ycmd and completion engine logfiles
Include link here to a gist containing the entire logfiles for ycm, ycmd
and any completer logfiles listed by :YcmToggleLogs.
2018-03-15 13:30:07,355 - ERROR - Unable to connect to server
Traceback (most recent call last):
File "/Users/Myste1tainn/.vim/bundle/icompleteme/third_party/icmd/third_party/requests/requests/packages/urllib3/connection.py", line 137, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
File "/Users/Myste1tainn/.vim/bundle/icompleteme/third_party/icmd/third_party/requests/requests/packages/urllib3/util/connection.py", line 91, in create_connection
raise err
File "/Users/Myste1tainn/.vim/bundle/icompleteme/third_party/icmd/third_party/requests/requests/packages/urllib3/util/connection.py", line 81, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 61] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/Myste1tainn/.vim/bundle/icompleteme/third_party/icmd/third_party/requests/requests/packages/urllib3/connectionpool.py", line 559, in urlopen
body=body, headers=headers)
File "/Users/Myste1tainn/.vim/bundle/icompleteme/third_party/icmd/third_party/requests/requests/packages/urllib3/connectionpool.py", line 353, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/bin/pyenvi/versions/3.6.4/lib/python3.6/http/client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/bin/pyenvi/versions/3.6.4/lib/python3.6/http/client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/bin/pyenvi/versions/3.6.4/lib/python3.6/http/client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/bin/pyenvi/versions/3.6.4/lib/python3.6/http/client.py", line 1026, in _send_output
self.send(msg)
File "/usr/local/bin/pyenvi/versions/3.6.4/lib/python3.6/http/client.py", line 964, in send
self.connect()
File "/Users/Myste1tainn/.vim/bundle/icompleteme/third_party/icmd/third_party/requests/requests/packages/urllib3/connection.py", line 162, in connect
conn = self._new_conn()
File "/Users/Myste1tainn/.vim/bundle/icompleteme/third_party/icmd/third_party/requests/requests/packages/urllib3/connection.py", line 146, in _new_conn
self, "Failed to establish a new connection: %s" % e)
requests.packages.urllib3.exceptions.NewConnectionError: <requests.packages.urllib3.connection.HTTPConnection object at 0x10acc9320>: Failed to establish a new connection: [Errno 61] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/Myste1tainn/.vim/bundle/icompleteme/third_party/icmd/third_party/requests/requests/adapters.py", line 376, in send
timeout=timeout
File "/Users/Myste1tainn/.vim/bundle/icompleteme/third_party/icmd/third_party/requests/requests/packages/urllib3/connectionpool.py", line 609, in urlopen
_stacktrace=sys.exc_info()[2])
File "/Users/Myste1tainn/.vim/bundle/icompleteme/third_party/icmd/third_party/requests/requests/packages/urllib3/util/retry.py", line 273, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=50173): Max retries exceeded with url: /ready (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x10acc9320>: Failed to establish a new connection: [Errno 61] Connection refused',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/Myste1tainn/.vim/plugged/youcompleteme/autoload/../python/ycm/client/base_request.py", line 223, in HandleServerException
yield
File "/Users/Myste1tainn/.vim/plugged/youcompleteme/autoload/../python/ycm/youcompleteme.py", line 248, in CheckIfServerIsReady
'ready' )
File "/Users/Myste1tainn/.vim/plugged/youcompleteme/autoload/../python/ycm/client/base_request.py", line 69, in GetDataFromHandler
timeout ) )
File "/Users/Myste1tainn/.vim/plugged/youcompleteme/autoload/../python/ycm/client/base_request.py", line 189, in JsonFromFuture
response = future.result()
File "/usr/local/bin/pyenvi/versions/3.6.4/lib/python3.6/concurrent/futures/_base.py", line 432, in result
return self.get_result()
File "/usr/local/bin/pyenvi/versions/3.6.4/lib/python3.6/concurrent/futures/_base.py", line 384, in get_result
raise self._exception
File "/Users/Myste1tainn/.vim/plugged/youcompleteme/autoload/../python/ycm/unsafe_thread_pool_executor.py", line 43, in run
result = self.fn(*self.args, self.kwargs)
File "/Users/Myste1tainn/.vim/bundle/icompleteme/third_party/icmd/third_party/requests/requests/sessions.py", line 468, in request
resp = self.send(prep, send_kwargs)
File "/Users/Myste1tainn/.vim/bundle/icompleteme/third_party/icmd/third_party/requests/requests/sessions.py", line 576, in send
r = adapter.send(request, **kwargs)
File "/Users/Myste1tainn/.vim/bundle/icompleteme/third_party/icmd/third_party/requests/requests/adapters.py", line 437, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=50173): Max retries exceeded with url: /ready (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x10acc9320>: Failed to establish a new connection: [Errno 61] Connection refused',))
OS version, distribution, etc.
I am using.
macOS High Sierra Version 10.13.3, with iTerm2
Issue Prelude
Please complete these steps and check these boxes (by putting an
x
inside the brackets) before filing your issue:[ x ] I have read and understood YCM's CONTRIBUTING document.
[ x ] I have read and understood YCM's CODE_OF_CONDUCT document.
[ x ] I have read and understood YCM's README, especially the Frequently Asked Questions section.
[ x ] I have searched YCM's issue tracker to find issues similar to the one I'm about to report and couldn't find an answer to my problem. (Example Google search.)
[ x ] If filing a bug report, I have included the output of
vim --version
.[ x ] If filing a bug report, I have included the output of
:YcmDebugInfo
.[ x ] If filing a bug report, I have included which OS (including specific OS version)
[ x ] If filing a bug report, I have included a minimal test case that reproduces my issue, including what I expected to happen and what actually happened.
[ x ] I understand this is an open-source project staffed by volunteers and that any help I receive is a selfless, heartfelt gift of their free time. I know I am not entitled to anything and will be polite and courteous.
[ x ] I understand my issue may be closed if it becomes obvious I didn't actually perform all of these steps.
Thank you for adhering to this process! It ensures your issue is resolved quickly and that neither your nor our time is needlessly wasted.
Issue Details
Results: unexpected comes out together with completion
<va< prepare(for: <#T##UIStoryboardSegue#>, sender: <#T##Any?#>)
notice the <va<Expected Results: just the completion texts, not the extra
prepare(for: <#T##UIStoryboardSegue#>, sender: <#T##Any?#>)
class ViewController: UIViewController { var object = Waitable() let disposeBag = DisposeBag()
}
NVIM v0.2.2 Build type: Release LuaJIT 2.0.5 Compilation: /usr/local/Homebrew/Library/Homebrew/shims/super/clang -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -I/tmp/neovim-20180209-92407-udkzoo/neovim-0.2.2/build/config -I/tmp/neovim-20180209-92407-udkzoo/neovim-0.2.2/src -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/gettext/include -I/usr/include -I/tmp/neovim-20180209-92407-udkzoo/neovim-0.2.2/build/src/nvim/auto -I/tmp/neovim-20180209-92407-udkzoo/neovim-0.2.2/build/include Compiled by brew@HighSierra.local
Features: +acl +iconv +jemalloc +tui See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/usr/local/Cellar/neovim/0.2.2_1/share/nvim"
Run :checkhealth for more info
Contents of YCM, ycmd and completion engine logfiles
File "/Users/Myste1tainn/.vim/bundle/icompleteme/third_party/icmd/third_party/requests/requests/packages/urllib3/connectionpool.py", line 353, in _make_request conn.request(method, url, **httplib_request_kw) File "/usr/local/bin/pyenvi/versions/3.6.4/lib/python3.6/http/client.py", line 1239, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/local/bin/pyenvi/versions/3.6.4/lib/python3.6/http/client.py", line 1285, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/local/bin/pyenvi/versions/3.6.4/lib/python3.6/http/client.py", line 1234, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/local/bin/pyenvi/versions/3.6.4/lib/python3.6/http/client.py", line 1026, in _send_output self.send(msg) File "/usr/local/bin/pyenvi/versions/3.6.4/lib/python3.6/http/client.py", line 964, in send self.connect() File "/Users/Myste1tainn/.vim/bundle/icompleteme/third_party/icmd/third_party/requests/requests/packages/urllib3/connection.py", line 162, in connect conn = self._new_conn() File "/Users/Myste1tainn/.vim/bundle/icompleteme/third_party/icmd/third_party/requests/requests/packages/urllib3/connection.py", line 146, in _new_conn self, "Failed to establish a new connection: %s" % e) requests.packages.urllib3.exceptions.NewConnectionError: <requests.packages.urllib3.connection.HTTPConnection object at 0x10acc9320>: Failed to establish a new connection: [Errno 61] Connection refused
File "/Users/Myste1tainn/.vim/bundle/icompleteme/third_party/icmd/third_party/requests/requests/packages/urllib3/connectionpool.py", line 609, in urlopen _stacktrace=sys.exc_info()[2]) File "/Users/Myste1tainn/.vim/bundle/icompleteme/third_party/icmd/third_party/requests/requests/packages/urllib3/util/retry.py", line 273, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=50173): Max retries exceeded with url: /ready (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x10acc9320>: Failed to establish a new connection: [Errno 61] Connection refused',))
File "/Users/Myste1tainn/.vim/plugged/youcompleteme/autoload/../python/ycm/client/base_request.py", line 189, in JsonFromFuture response = future.result() File "/usr/local/bin/pyenvi/versions/3.6.4/lib/python3.6/concurrent/futures/_base.py", line 432, in result return self.get_result() File "/usr/local/bin/pyenvi/versions/3.6.4/lib/python3.6/concurrent/futures/_base.py", line 384, in get_result raise self._exception File "/Users/Myste1tainn/.vim/plugged/youcompleteme/autoload/../python/ycm/unsafe_thread_pool_executor.py", line 43, in run result = self.fn(*self.args, self.kwargs) File "/Users/Myste1tainn/.vim/bundle/icompleteme/third_party/icmd/third_party/requests/requests/sessions.py", line 468, in request resp = self.send(prep, send_kwargs) File "/Users/Myste1tainn/.vim/bundle/icompleteme/third_party/icmd/third_party/requests/requests/sessions.py", line 576, in send r = adapter.send(request, **kwargs) File "/Users/Myste1tainn/.vim/bundle/icompleteme/third_party/icmd/third_party/requests/requests/adapters.py", line 437, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=50173): Max retries exceeded with url: /ready (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x10acc9320>: Failed to establish a new connection: [Errno 61] Connection refused',))
OS version, distribution, etc.
I am using. macOS High Sierra Version 10.13.3, with iTerm2