Hi Dominique
I don't use omnicppcomplete-0.41, I use vim's default omnicomplete function.
These is my .vimrc setting about omnicomplete function:
set completeopt=menu,longest
set omnifunc=ccomplete#Complete
My vim version is 7.2.0 in Windows and 7.2.245 in Slackware 13.0.
Ctags is 5.7. I just run "ctags -R ." in working dir.
In your screenshot, you inserted a space before "sA.", which changed to
"pb-> sA.", not "pb->sA.".
My problem is that if I don't insert space before "sA.", just "pb->sA.",
then put cursor behind "sA.", press C-X C-O,
omnicomplete's completion information is members of struct tagBBB,
but not members of struct tagAAA.
Thanks!
B.R.



2009/10/1 Dominique PellĂ© <[email protected]>

>
> jason wrote:
>
> > I found ccomplete function is not OK for every time.
> > As first_level_ok.jpg shows, I have generated tags by ctags.
> > When I press C-X C-O after "pb->", it completed OK, and I selected "sA".
> > Now I press C-X C-O again, it show error completion info.
> > It just the same as first one. Second_level_error.jpg shows the error
> info.
> > If I input a space before "sA", and put the cursor behind of "sA.",
> > then press C-X C-O again, it show right completion info.
> > As second_level_ok.jpg shows.
> > I am no sure whether you can see these pictures.
> > Thanks.
> > B.R.
>
> Hi Jason
>
> I could not reproduce this bug using Linux x86, Vim-7.2.262,
> ctags-5.7 and omnicppcomplete-0.41 plugin.
>
> Completion works fine for me as shown in this screenshot:
>
>  http://dominique.pelle.free.fr/pic/tag-ok.png
>
> But I see different information in the pum than what you
> show in your screenshot.  So I must not be using the
> same options.
>
> I created the tag file as follows:
>
> :!ctags -R --c++-kinds=+p --fields=+iaSn --extra=+q .
>
> And in my ~/.vimrc, I have:
>
> " OmniCppComplete
> if version >= 700
>  if has('insert_expand')
>    let OmniCpp_NamespaceSearch   = 1
>    let OmniCpp_GlobalScopeSearch = 1
>    let OmniCpp_ShowAccess        = 1
>    let OmniCpp_MayCompleteDot    = 1
>    let OmniCpp_MayCompleteArrow  = 1
>    let OmniCpp_MayCompleteScope  = 1
>    let OmniCpp_DefaultNamespaces = ["std", "_GLIBCXX_STD"]
>
>    if has('autocmd')
>      " Automatically open/close the preview window.
>      au CursorMovedI,InsertLeave * if pumvisible() == 0 | sil! pclose |
> endif
>      set completeopt=menuone,longest,preview
>    endif
>  endif
> endif
>
> set tags=tags
> set wildmode=longest,list
> set wildmenu
>
>
> Some questions:
> - which version of Vim, ctags, and omni completion plugin are you using?
> - how did you create the tag file?
>
> Regards
> -- Dominique
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to