[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.
VIM - Vi IMproved 8.1 (2018 May 17, compiled Jun 8 2018 07:36:04)
(Full output attached)
[X] If filing a bug report, I have included the output of :YcmDebugInfo.
[X] If filing a bug report, I have attached the contents of the logfiles using
the :YcmToggleLogs command.
See attached
[X] If filing a bug report, I have included which OS (including specific OS
version) I am using.
[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] If filing a installation failure report, I have included the entire output
of install.py (or cmake/make/ninja) including its invocation
[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?
Installed MacVim using home-brew, and also tried from the Release page on the macvim git page, both v8.1.x had this issue. Downgrading to v8.0 from the macvim site resolved the issue (however I would like to run the latest from home-brew, and this will likely affect others as well).
Freshly installed Mac (in the last 2 days), and another fairly clean Mac had the same issue.
Installed Vundle, and the single additional thing installed is YouCompleteMe (ie: no other plugins). The install was run with just ./install.py (ie: no options, but I have also tried it with ./install.py --clang-completer with the same result.
Include steps to reproduce here.
Open a simple python file, eg test.py, containing:
import os
os.syste
Go to the end of the second line, wait for the autocomplete options, and press tab. You won't be able to enter insert mode again, and get the error "Now allowed here".
Include description of a minimal test case, including any actual code required
to reproduce the issue.
What did you expect to happen?
I can enter insert mode again in the file.
Include description of the expected behavior.
What actually happened?
Unable to enter insert mode. This has happened in the past from what I have seen, but could see nothing relating to the v8.1 release of MacVim (ie: something current).
Adding set completeopt-=preview to my .vimrc stops this issue from happening.
Include description of the observed behaviour, including actual output,
screenshots, etc.
During my testing I noticed the connection errors, however using nc locally I was able to connect, and the autocompletion did sort of work. As mentioned above, it did also work fine with MacVim 8.0.
Add let g:ycm_log_level = 'debug' to vimrc, restart Vim, reproduce the
issue, and include link here to a gist containing the entire logfiles for
ycm, ycmd and any completer logfiles listed by :YcmToggleLogs.
OS version, distribution, etc.
ProductName: Mac OS X
ProductVersion: 10.13.5
BuildVersion: 17F77
This is caused by a Vim bug introduced in 8.1.0035 but fixed in 8.1.0042. You need to either downgrade Vim to a version older than 8.1.0035 or wait for Homebrew to release a new version.
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
. VIM - Vi IMproved 8.1 (2018 May 17, compiled Jun 8 2018 07:36:04) (Full output attached)[X] If filing a bug report, I have included the output of
:YcmDebugInfo
.[X] If filing a bug report, I have attached the contents of the logfiles using the
:YcmToggleLogs
command. See attached[X] If filing a bug report, I have included which OS (including specific OS version) I am using.
[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] If filing a installation failure report, I have included the entire output of
install.py
(orcmake
/make
/ninja
) including its invocation[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
Installed MacVim using home-brew, and also tried from the Release page on the
macvim
git page, both v8.1.x had this issue. Downgrading to v8.0 from themacvim
site resolved the issue (however I would like to run the latest from home-brew, and this will likely affect others as well).Freshly installed Mac (in the last 2 days), and another fairly clean Mac had the same issue.
Installed Vundle, and the single additional thing installed is YouCompleteMe (ie: no other plugins). The install was run with just
./install.py
(ie: no options, but I have also tried it with./install.py --clang-completer
with the same result.Open a simple python file, eg
test.py
, containing:Go to the end of the second line, wait for the autocomplete options, and press tab. You won't be able to enter insert mode again, and get the error "Now allowed here".
I can enter insert mode again in the file.
Adding
set completeopt-=preview
to my.vimrc
stops this issue from happening.Diagnostic data
Output of
vim --version
https://gist.github.com/sillyfrog/108cb1245966d2b45b65b3ce1846a2ec
Output of
YcmDebugInfo
https://gist.github.com/sillyfrog/7571c937e145e8d2148939a211ceec89
Contents of YCM, ycmd and completion engine logfiles
YcmLogs: https://gist.github.com/sillyfrog/85ed00849d61d7f8c5331d7be4843e3b
Jedi server logs: https://gist.github.com/sillyfrog/6c5b12e2ea774b56cc7ab35b6549e6f9 stdout was empty.
Server logs: https://gist.github.com/sillyfrog/70d75ba9204ee9cee36459a5c16bbff9 https://gist.github.com/sillyfrog/e9aa3d094d162057ae4c95eaa00dc6e0
During my testing I noticed the connection errors, however using
nc
locally I was able to connect, and the autocompletion did sort of work. As mentioned above, it did also work fine with MacVim 8.0.Server logs: https://gist.github.com/sillyfrog/ce8dc7c500f42b5665c0ce672999ca50
OS version, distribution, etc.
ProductName: Mac OS X ProductVersion: 10.13.5 BuildVersion: 17F77
Output of build/install commands
https://gist.github.com/sillyfrog/32a04f327c25b2ad4fd712e3b3601445