Thursday, February 12, 2015

Re: javacomplete omni-completion not working for my own classes

Hi,

I just ran into the to same issue.

My workaround was to manipulate 'javacomplete.vim':
------------------------------------------------------------------------
--- autoload/javacomplete.vim 2015-02-12 20:16:20.530893534 +0100
+++ autoload/javacomplete.vim 2015-02-12 19:44:51.274324939 +0100
@@ -2596,6 +2596,8 @@
" To obtain information of the class in current file or current folder, or
" even in current project.
function! s:DoGetClassInfoFromTags(class)
+ " doak: Deactivate ctags feature as this does not work. It seems that I am unable to build an accepted tags file.
+ return
"let ci = {'name': a:class}
"return
" find tag of a:class declaration
------------------------------------------------------------------------
(Please have a look at http://stackoverflow.com/a/28487997 )


Regards,
doak



On 02/16/2014 07:46 AM, theuser51@gmail.com wrote:
> I solved the problem of javacomplete not completing my own classes by deleting the tags file generated by ctags!
>
> Now the problem is I can't use a (exuberant) ctags file within vim. I have tried generating the tags file using most of the options provided by ctags and using both absolute and relative paths with no success. I have even tried the easy_tags plugin that auto-generates the tag file. But it seems as soon as I set a tags file in .vimrc javacomplete prefers that and can't complete my own classes.
>
> There are two solutions to this:
> 1. Use cscope instead
> 2. Use ':set tags=' after vim is open rather than in the .vimrc file. It seems javacomplete only reads the tag file at vim startup and doing it this way bypasses it.
>
> Any ideas about how I can have both ctags and javacomplete play nice?
>
> Thanks!
>

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment