ycm-core / YouCompleteMe

A code-completion engine for Vim
http://ycm-core.github.io/YouCompleteMe/
GNU General Public License v3.0
25.44k stars 2.81k forks source link

User defined completion (^U^N^P) Pattern not found II. #1562

Closed norbertklar closed 9 years ago

norbertklar commented 9 years ago

Hello guys! I keep getting this error message(I read the older issues, but upgrading my vim is not solution, bacause I already have that): screenshot_2015-07-01_10-55-38

I have the lastest vim:

screenshot_2015-07-01_10-56-24

Issue 2: Sometimes for first try, ycm doesn't want to autocomplete on dot: screenshot_2015-07-01_11-01-00

But for a second try, it does(maybe there's a way to increase timeout, but I didn't find any options): screenshot_2015-07-01_11-01-23

micbou commented 9 years ago

Could you add the line set shortmess+=c to your .vimrc? It should solve the first issue.

norbertklar commented 9 years ago

Nope, that's not solve my first issue.

vheon commented 9 years ago

The second issue is not really an issue: jedi sometimes at the first request need a little time. The first one is really strange :/

micbou commented 9 years ago

Could you check the output of the command :echo has("patch-7.4.314") in Vim? It should return 1. Check also the result of the command :set shortmess?. The flag c should be present.

puremourning commented 9 years ago

Closing because no response.

Please feel free to respond with answers to @micbou's questions.

staycreativedesign commented 8 years ago

Adding set shortmess+=c works perfectly thank you

vheon commented 8 years ago

@staycreativedesign is strange that you had to use it manually. YCM should set it if vim is new enough :confused:

lethargi commented 8 years ago

I am getting this message in my vim. further, I cannot append shortmess with c either. It says illegal character

:h shortmess shows that it does not take c as a command.

micbou commented 8 years ago

Your version of Vim is probably too old. Which version are you using?

lethargi commented 8 years ago

in the starting screen it says vim 7.4.52; i did the patch echo, it returned 0. also did a sudo apt-get update and sudo apt-get install vim; that said vim is latest version

micbou commented 8 years ago

That's unfortunate. You should upgrade to a more recent version.

lethargi commented 8 years ago

isn't 7.4.52 more recent than 7.4.314? also if i have to upgrade could you tell me how?

micbou commented 8 years ago

No, the third number start to 0 and is incremented for each patch.

lethargi commented 8 years ago

Had to build vim from source (7.4.1265). The guides were quite followable. Think its working now.

Appreciate the responses. Great plugin!

EDIT: (10-2-2016) I am still getting this message from time to time, but a great less frequently than before. I think it only happens with latex-box. If I look into this deeper, I will post back.