Saturday, February 15, 2014

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

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/groups/opt_out.

No comments:

Post a Comment